Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JAVA_HOME

Reply
Thread Tools

JAVA_HOME

 
 
chunji08@gmail.com
Guest
Posts: n/a
 
      07-11-2006

Hi,
is there an API in JDK library, that returns the value of "JAVA_HOME"
?


-cji

 
Reply With Quote
 
 
 
 
IchBin
Guest
Posts: n/a
 
      07-11-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi,
> is there an API in JDK library, that returns the value of "JAVA_HOME"
> ?
>
>
> -cji
>

Sure look at Class Properties "home"

System.getProperties();


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
Reply With Quote
 
 
 
 
Steve W. Jackson
Guest
Posts: n/a
 
      07-11-2006
In article <(E-Mail Removed)>, IchBin <(E-Mail Removed)>
wrote:

> (E-Mail Removed) wrote:
> > Hi,
> > is there an API in JDK library, that returns the value of "JAVA_HOME"
> > ?
> >
> >
> > -cji
> >

> Sure look at Class Properties "home"
>
> System.getProperties();


Make that System.getProperty("java.home").
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK Miss Michelle. Heigardt Java 8 04-09-2011 07:20 PM
problem setting java_home and j2ee_home Mohsen Java 1 12-09-2005 11:18 PM
Tomcat on Windows: JAVA_HOME & -Dsun.io.useCanonCaches' Paul Moloney Java 1 04-04-2005 11:31 AM
Re: Tomcat 5.0 and JAVA_HOME problem Bob Frank Java 0 08-20-2004 06:24 PM
q CATALINA_HOME and JAVA_HOME Jason Java 3 08-20-2003 09:42 PM



Advertisments