• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to come back after many years

 
Paul Ralph
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded and installed jdk-6u37-windows-i586.exe, but I must be doing something wrong (like downloading the wrong thing) because my computer doesn't recognize javac.

So what should I do?
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely you just need to set your PATH to include Java's bin directory. There are instructions for setting paths on various OSes here: http://java.com/en/download/help/path.xml It says that it shouldn't be necessary for Windows, but I'm not sure why. It might mean the installer was supposed to do it, or maybe it's only talking about java (the runtime), not javac (the compiler). In any case, my recommendation is to set an environment variable called JAVA_HOME to the root folder of your installation, and then add %JAVA_HOME%\bin to your PATH environment variable.
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More details in our FAQ.
 
Paul Ralph
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! It's working now.
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You’re welcome
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm curious -- why Java 6 and not the latest and greatest Java 7, now in update 13?
 
Paul Ralph
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I jumped off of the Cattle Drive page instead of How to create your first program. Java 6 was the highest build on the linked page.

Is there any difference for a beginner like me?

If so, should I just download the latest JDK (and will it copy over Java 6 nicely)?
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You won’t notice any difference until you try writing numbers in binary.
Yes, you can download the latest JDK7.
Yes, it will work atop a JDK6 installation, as long as you adjust the PATH.
 
Paul Ralph
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK! Java 7 is installed.

Thanks for your help.
 
Bob Scott
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Ralph wrote:OK! Java 7 is installed.

Thanks for your help.


Welcome, Paul! I am also coming back after many years.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic