To check, on the Windows command line do:. For linux users, it is almost certainly not the same directory that you get if you do " which java " from the command line, because that would be too easy. Just do this from the command line:. If your Java version is fairly recent, there's a useful command option that lists out a whole windows 7 set path java_home free download of system property settings, including the value of java.
To see your Java version Windows or Linuxdo:. If the answer is 1. Scroll through the output to find the line about a dozen lines from the beginning of the listing containing " java. Note that java dumps this listing to stderr rather than stdoutso the usual pipe through more will not have the desired effect. You're windows 7 set path java_home free download to have to either scroll or, on linux-based systems, redirect error output to a file and then grep through that. The value needed is the value of the java.
A java programmer should be able to write a reasonably short program to print this value for you on demand, so you never have to bother him or her again. I'm not a java programmer, so if you happen to have a program like this you'd like to donate to the cause, please get in touch.
Alternately, if you have the privileges you can update your java installation to the most recent version and use the "Java Version 1. As a last windows 7 set path java_home free download, you'll have to dig through system directories, trying to find the java installation files. This can be tricky, since the installation might be for the Java Developers Kit look for directories starting with " jdk "or the Java Runtime Environment look for directories starting with " jre "or it might be referenced as the Java Virtual Machine look for directories starting with " jvm ".
Search functions are your friend, here. You should have permission to read any directories that might contain java libraries you'd reference, so you can ignore "Permission denied" messages. If all else fails, try buying your system administrator a decent cup of coffee and asking nicely. The syntax is roughly the same either way, but where you set the value changes.
The double quotes are required if your path contains any imbedded blanks. You will need to know what shell you're using and what the appropriate way to set environment variables in that shell is. The two most popular shells are the Bourne shell and its relatives, and different variations on the C-shell. We'll show syntax for both of those here. In Bourne-type shells, it takes two steps to set an environment variable windows 7 set path java_home free download can be seen by any programs you then run.
For example:. For example, in the C-shell:. We'll start with the easier procedures and work our way up the difficulty scale. Navigation menu Personal tools Log in Request account. Namespaces Page Discussion. Views Read View source View history. This page was last edited on 18 Mayat