[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

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
0
gudii9
Asked:
gudii9
3 Solutions
 
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
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now