This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
....I think I have everything installed correctly but I don't know how open up and stuff... can somebody give me a DETAILED instruction on how to install it in the right directory save my stuff the right way AND open it correctly -if you can do this it'd be a lifesaver
Originally posted by bra nbain: ....... can somebody give me a DETAILED instruction on how to install it in the right directory save my stuff the right way AND open it correctly -if you can do this it'd be a lifesaver
I've read some of those. I really need help Installing it properly, none of those tutororials explain that, then saving files -it doesn't talk about that either; I'm having a hard time. Could someone Just give me some steps to get me started, Please?
The download page is here and the installation instructions here. Download what is called Java SE Development Kit (JDK) 6 Update 11 and when you install it make sure to record the name of the folder/directory you installed it into; you will need that when you set the PATH.
Follow the instructions for setting the PATH, which begins with the drive letter on Windows (usually C:\) or / on Linux/Unix. The PATH ends with bin. Setting the PATH is described in the installation instructions; for Windows it is section 4.
The Java Tutorials link quoted earlier has sections on "getting started," which includes a "common problems" page, with all sorts of useful information in.
Joined: Oct 13, 2005
For saving files: open a shell/terminal/command prompt, and note which directory it opens first. Execute this pair of commands (I think they are the same on Windows and on Linux):You now have a directory called java (or any other title you choose) in a convenient location, so you can find it by opening a shell/terminal/command line and writing "cd java". Create your files with a decent text editor (not NotePad; for Windows download NotePad++ or NotePad2 or both, which are far better), then save your files in the java folder with "save as" as usual. There are step-by-step instructions for running a Hello World application in the Java Tutorials as previously mentioned.
If your PATH isn't correctly set up it won't work.
The tiniest spelling error and it won't work.
There are some instances where you can write Java instead of java on Windows, but not on other operating systems. Windows is case-insensitive and Java is case-sensitive.
Read very carefully when you do and when you don't use extensions on your file names.
Some people will tell you to set your system CLASSPATH: that is a mistake. Don't do anything with CLASSPATH.