[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Daniel Andres wrote:I have never run any Java programs but I have knowledge on how Java works. I just need help setting it up to start programming.
Roel De Nijs wrote: To create, compile and run your first Java program, follow the steps from the "Hello World!" application lesson (of Oracle's Java Tutorials). Choose for the command-line instructions of either Microsoft or Linux (not NetBeans IDE).
Daniel Andres wrote:Roel, I installed and set up NetBeans and I was able to compile and run Hello World. If you use the same program, do you know why after I clicked run / Build Project (HelloWorldApp) it didn't open the output Hello_World_App window as you can see here
Daniel Andres wrote:If you looked back at the image of the page that I posted on my previous post, could you tell me what this means? What is that dollar symbol? I am currently reading that is an inner
$ javac Zoo.java
$ java Zoo
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Roel De Nijs wrote:Once more, I would not use an IDE at all. Not NetBeans, not Eclipse, no IDE at all.
The above commands will only work if both javac and java are on the PATH system variable. More info and a step-by-step guide can be found here.
Jeanne Boyarsky wrote:I have used NetBeans. It (annoyingly) insists that the project you want to run be designated as the main project. So yes, that's normal.
Daniel Andres wrote:Thank you so much! It took me a long time to set it up, more than it should have, but I am happy now that I can continue with the book
Don't get me started about those stupid light bulbs. |