-
September 4th, 2017, 02:09 PM
#1
Setting Environment Variables for the JDK location
I am a novice to Java (and pretty much programming languages in general).
After i downloaded Java I created the JAVA-HOME variable (under environment variables) and the I tested the JRE (using the command prompt) and everything came out fine. But I am do not know what to do to the environment variables in order for my JDK to be set up. I tried editing the path variable but it did not work for me. Please help!!
-
September 4th, 2017, 03:59 PM
#2
Re: Setting Environment Variables for the JDK location
Look at the tutorial about how to set the PATH variable:
http://docs.oracle.com/javase/tutori...ems/index.html
Please explain. What OS are you using?
The OS needs to be able to find commands that are entered. It uses the paths in the PATH variable to find them.
Norm
-
September 4th, 2017, 04:53 PM
#3
Re: Setting Environment Variables for the JDK location
-
September 4th, 2017, 04:56 PM
#4
Re: Setting Environment Variables for the JDK location
where to append the JDK location
As a new line at the end of the list.
Norm
-
September 7th, 2017, 12:16 PM
#5
Re: Setting Environment Variables for the JDK location
Originally Posted by Norm
As a new line at the end of the list.
I added this as a new line at the end of the list: C:\Program Files (x86)\Java\jdk1.8.0_144\bin\
Thank you so much!!
-
September 7th, 2017, 12:43 PM
#6
Re: Setting Environment Variables for the JDK location
Glad you got it working.
Now for some programming fun.
Norm
-
September 13th, 2017, 07:27 AM
#7
Re: Setting Environment Variables for the JDK location
Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts
-
September 20th, 2017, 01:22 AM
#8
Re: Setting Environment Variables for the JDK location
Set the following user environment variables (== environment variables of type user variables)
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_112
JDK_HOME : %JAVA_HOME%
JRE_HOME : %JAVA_HOME%\jre
CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.
Notice that these environment variables are derived from the "root" environment variable JAVA_HOME. This makes it easy to update your environment variables when updating the JDK. Just point JAVA_HOME to the fresh installation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|