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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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
Bartender

Joined: Oct 01, 2001
Posts: 2542
    
  10

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Setting the JAVA_HOME and PATH environment variables.
 
Similar Threads
how to set path?
JRE and settings
UNABLE TO SET THE PATH
Setting CLASSPATH via batch file
New FAQ from a Newbie to Java!