Cannot get to "first base" because on page xxvii I don't understand what is meant by "you ned to add an entry to your PATH environment variable that points to the/bin directory inside the main Java directory."
They then give example.
how do I do this? I really wanna get started this week.
Welcome to JavaRanch!
In Windows XP, you can edit the path as follows:
1) Right click My Computer
2) Click properties
3) Click on the advanced tab
4) Click the environment variables button
5) Edit the variable that says PATH as described in the book.
If you are using a different operating system, post which one as a reply to this thread.
Please let me know if this helps.
You can see what the current PATH is set to by openning a Command Prompt window and entering SET. This displays all the environment variable settings.
I think just entering PATH will do the same.
A quick way to see if Windows can find javac.exe is to enter javac.exe in the Command Prompt window. You'll either see a response from the javac.exe program (which you'll recognize) or a response from Windows that says something about an unknown or invalid command. If it's not found, try entering the path you have found to the javac.exe file and see what you get.
Some IDE's allow you to specify the full path to the compiler as one of their setup Options or Preferences. So you could give the IDE the full path to the compiler without having to set PATH.
BTW, ditch that book and be wary of cutsy marketing covers. If you want a beginners book that will really teach you from the ground up and prepare you for a career, no finer book was every published than this:
Agile Java is a beginner's bookd that consolidates the core aspects of writing software. If you are serious about learning Java and actually using it professionally, Agile Java is the book to get.
Originally posted by Rick O'Shay:
Too bad they gave you that advice without mentioning that 90% of installs automatically set the path....
That's a good point. (Although, I don't know where you get 90% from.)
With that said, Ginger, you should open a command line window (aka a DOS window) and type "java -version". Let us know what happens when you do this.
[ August 14, 2005: Message edited by: Layne Lund ]
I have not read the Head First series in all honesty I must reserve judgement. Better advice would be keep it and add the book I recommended.
BTW, I wonder if Ginger is related to Candy and Cookie? Perhaps not, they spell their last names with a single 'R'.
[ August 14, 2005: Message edited by: Rick O'Shay ]
Thanks for jumping in. The more opinions the better.
If you are on XP, you can also take a look at the control panel to see what versions of Java are installed. I've read Head First Java. It's an excellent beginners book. Of course you will want to read other books afterwards. I certainly wouldn't expect someone to become a professional program after reading just one book. This one prepares you well to read other books.
Oh, and these two statements are contradictory:
" in all honesty I must reserve judgement"
"BTW, ditch that book [Head First Java] and be wary of cutsy marketing covers." --(not a good example of reserving judgement)
Originally posted by Ginger Jarr:
Aha. The search turned up C:\Program Files\Java\jdk1.5.0_04\bin.
Does this mean the pointer to the bin is already there so I don't have to add an entry into the PATH environment?
1) Because you found the path to the bin directory does not mean that it is is your environment PATH.
2) "C:\Program Files\JavaSoft\JRE\1.3.1_03\lib\ext\QTJava.zip" is the path to your QuickTime executable.
3) You do not need to include this path in your PATH if you don't mind typing
C:\Program Files\Java\jdk1.5.0_04\bin\javac MyClass.java
each time you want to compile and
C:\Program Files\Java\jdk1.5.0_04\bin\java MyClass
each time you want to run your program.
If you put it into your PATH environment variable you can just type:
from whereever your source file is.
4) When I installed jdk1.5.0_04, it did not automatically set the path for me.
5) The way you set the path depends on which version of Windows you are using. In other words setting the path in Windows 98 is different from setting the path in Windows 2000 or Windows XP. Which version do you have, Ginger (or are you using Linux)?
[ August 16, 2005: Message edited by: Marilyn de Queiroz ]
BTW, when a person qualifies a remark or changes it they aren't contradicting themself, they are correcting themself. I agree with your sentiments for the most part but we have to be careful we are not imposing milquetoast rules on anybody who perhaps has more spark is more comfortable with direct opinion than wishy-washy wet dishrag prose. I know I'm careful not to do that.