?
Solved

JAVA_HOME use

Posted on 2014-03-25
6
Medium Priority
?
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 20

Assisted Solution

by:chaitu chaitu
chaitu chaitu earned 668 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
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!

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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 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