Knute Snortum wrote:Have you read this? How to create your first program
Carey Brown wrote:Eclipse is an excellent tool but I caution against it for the short term. If you are just starting out with HelloWorld, using the command line will help you understand how the organization of a Java project works. Eclipse, of course, helps with this, but you may have trouble understanding errors in Eclipse without some of this background knowledge. Eclipse also has its own learning curve.
Chad Dunlosky wrote:Everything worked like it should, but I think I'll use Eclipse to better practice java, even though there's nothing wrong with the command prompt, all guides I read have Eclipse as recommended.
Campbell Ritchie wrote:Please indent your code correctly. You don't need the empty lines, and lines 33 and 5 should be farther to the right. It might not make much difference now, but once you get into longer classes, you can cause yourself no end of confusion if you haven't got the code indented properly.
What do you mean by a “new commend line”? Do you mean a new window opens, or simply that the display goes back to the prompt. If it means going back to the prompt, that is normal. That is what you get after invoking javac: stony silence if there aren't any error messages. That is good, but it is only half the procedure. You need to invoke the main method, which you do with the java tool. The instruction is
Note there is no extension: that bit often confuses beginners.
Norm Radder wrote:What is the .exe filename? Where did you get it?