Using Run [message #773788] |
Mon, 02 January 2012 14:40 |
Francisco Queirós Messages: 4 Registered: January 2012 |
Junior Member |
|
|
Hello, Eclipse Community.
I am here, hoping to get some help on a matter.
To start off, I'm sort of a noob looking to learn Java and for that, I'm using Eclipse.
I've encountered something that is *really* bugging me. The problem is that every time I try to run a .class file, I click run, but then, Eclipse tries to run something that isn't selected, or that doesn't even exist!
I've posted a picture, showing what I mean. In the picture I got my helloWorld.java file selected. I clicked to run it. But for some reason, Eclipse wants to run the whole project. And I really don't know how to change that. I really need some help here.
P.S.: I know that I already posted this on Newcomers forums, but I wasn't getting any answers, so, I decided to post here. I tried to just "forward" the post over here, but the forums doesn't let me use links yet. Sorry.
|
|
|
Re: Using Run [message #773899 is a reply to message #773788] |
Mon, 02 January 2012 21:01 |
|
Just right click on the java file and choose 'run as' select Java Application and it should default that execution for future clicks of the run button. Another tip is your classes should always start with a capital letter to follow the Java standard coding convention (java.sun.com/docs/codeconv/html/CodeConventions.doc.html#16712).
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02972 seconds