• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

I don't get this paragraph

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
% javac
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.
 
author
Posts: 23877
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 6443
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 69411
276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a disc with JDK1.3 on. Would you like to borrow it?

Please go here to download Java14. When you have installed it, remember you have to update your PATH (or JAVA_HOME and PATH together), but here are two things not to do:-
  • 1: Set a CLASSPATH environment variable
  • 2: Part with any money
  • .And . . . welcome to the Ranch
     
    Rancher
    Posts: 4576
    47
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    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!
    https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
      Bookmark Topic Watch Topic
    • New Topic