How do I determine the Java_Home?

5 pts.
Tags:
Environment Variables
Java
Software installation
I am trying to develop an installation package for a piece of java software that calls the %JAVA_HOME% environment variable in order to call the libraries. I guess my real question would be how do I create the environment variable based on the highest version of java installed on the PC. Currently my software sets the JAVA_HOME, but it is becoming a pain to install the software because it is dependent on a specific version of java. The software calls the %JAVA_HOME%binjava in order to start the application. Thanks in advance for any responses!

Software/Hardware used:
Java

Answer Wiki

Thanks. We'll let you know when a new response is added.

It is best to set the JAVA_HOME path in Environment Variables.

Right click on My Computer > Properties > Advanced > Environment Variables and then show the path where the JDK is installed and also show the path like C:/Program…… upto bin folder

And restart the computer hope this will okay !

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following