So, i'm 11 years old and I saved up on a book called "Headfirst Java" so I could learn it, obviously. The problem is that on the page that lists the things you need to do before you start there is this paragraph that I don't get.
"Once you've dowloaded and unpacked/unzipped/whatever (depends on which version and for which OS), you need to add an entry to your PATH enviroment variable that points to the /bin directory inside the main Java directory. For example, if the J2SDK put a directory on your drive called "j2sdk1.5.0", look inside that directory and you'll find the "bin" directory where the Java binaries (the tools) live. The bin directory is the one you need a PATH to, so that when you type:
at the command line, your terminal will know how to find the javac compiler."
I know how to add a PATH, but the problem is that I can't find the main Java directory, or anything like the "j2sdk1.5.0" directory (I use java v1.4.2, I can't find any directories for that), so I can't find the bin directory. I repeat, I use java v1.4.2, and my computer is windows 8. Please help.
Java 1.4 was released sometime in 2002. Java 5 (which uses 1.5 in the directory), was released sometime in 2004. Both of these versions of Java are older than you are! I don't even know where to find those versions of Java anymore. And BTW, the current version of Java is version 14.
It's worth noting that if the book talks about Java 1.4 or Java 5, then it's woefully out of date, and teaches a style of Java that is fast becoming obsolete. I strongly suggest to get a book that teaches at least Java 8.
Tim Moores wrote:It's worth noting that if the book talks about Java 1.4 or Java 5, then it's woefully out of date, and teaches a style of Java that is fast becoming obsolete. I strongly suggest to get a book that teaches at least Java 8.
Well, Head First Java hasn't been updated since 2005 (so 1.5).
It's still, apparently, a good book and gets recommended a lot even if it is out of date.
I can only guess it's good on the basics, and should still be usable with a newer version of Java.
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!