Solved

JAVA_HOME use

Posted on 2014-03-25
6
211 Views
Last Modified: 2014-04-03
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
Comment
Question by:gudii9
6 Comments
 
LVL 20

Assisted Solution

by:chaitu chaitu
chaitu chaitu earned 167 total points
ID: 39955692
you can compile and run java programs from command prompt as well.
0
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 39955737
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
 
LVL 35

Expert Comment

by:girionis
ID: 39958277
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 7

Author Comment

by:gudii9
ID: 39973083
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
 
LVL 35

Assisted Solution

by:girionis
girionis earned 166 total points
ID: 39974301
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
 
LVL 12

Accepted Solution

by:
Sharon Seth earned 167 total points
ID: 39974351
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now