aspose file tools*
The moose likes Beginning Java and the fly likes Setting the JAVA_HOME and PATH environment variables. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Setting the JAVA_HOME and PATH environment variables." Watch "Setting the JAVA_HOME and PATH environment variables." New topic
Author

Setting the JAVA_HOME and PATH environment variables.

Nikki Sumnie
Greenhorn

Joined: Jan 02, 2013
Posts: 3
Hi,

How do I set the JAVA_HOME and PATH environment variables after downloading 1.5 Java 2 Standard Edition SDK? My Command Prompt does not recognize the compiler? JAVAC

How do I get to the install directory in Windows Vista after it is downloaded? Is there anything else that needs to be done so the Command Prompt recognizes programs that I type in and save?
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2861
    
  11

Hi Nikki,

Setting environment variables, including the path, is not a Java issue. It depends on your operating system. You say you're using Windows Vista (my condolences, by the way) so you can Google for "How to set environment variables on Windows Vista". Here's one site that looks pretty good: https://cwiki.apache.org/STONEHENGE/how-to-set-environment-variables.html

You're right that you will need to set the bin directory of the JDK into your path in order to run javac from the command line. Are you having trouble finding where it was installed? The easiest thing might be to search for javac.exe through your file explorer.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Setting the JAVA_HOME and PATH environment variables.