JAVA_HOME use

Hi,

I read

JAVA_HOME
is used by build tools like ANT and maven. Does it has any other use apart from this.

please advise
Any links resources ideas highly appreciated. Thanks in advance
LVL 7
gudii9Asked:
Who is Participating?
 
Sharon SethCommented:
There will some obvious things , like if the GUI is swing based . But otherwise you'll have to see the readme or config/startup exe files , that wld give you a hint on using resources like JAVA_HOME .
0
 
chaitu chaituCommented:
you can compile and run java programs from command prompt as well.
0
 
Sharon SethCommented:
JAVA_HOME is an env variable just like CLASSPATH,PATH and other env variables .
Say you have installed a java application , that needs to use JDK (for example) . There has to be a way for it to know where JDK is installed . It would then use JAVA_HOME to get that path.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
girionisCommented:
JAVA_HOME
is used by build tools like ANT and maven. Does it has any other use apart from this.

It's used to compile (be it from maven, ant or command line) and run java applications.
0
 
gudii9Author Commented:
Say you have installed a java application
How do we know if installed application depends on java or not. I rememeber installing many applications on my laptop but never bothered to find if is java application or not and if it is using java_home or not. Please advise.
0
 
girionisCommented:
How do we know if installed application depends on java or not.
If you have java installed you can't know. If you don't have java installed then the os will warn you that you need java, so you know.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.