ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arti Singh <arti_sing...@yahoo.ca>
Subject Re: Java.home changing
Date Thu, 05 Jan 2006 03:03:49 GMT
Hi Elana,
                  Questions regarding JAVA_HOME should be posted to a java newbie users  list.Never
the less I will help since I was using Eclipse ans had the  same problem a few years back.
  
  You need to set  your path to your J2SDK-j2sdk/bin directory in the auto exec.bat file.Try
sysedit:run sysecit
  set path=C:/j2sdk1.5_2/bin
  and then set your JAVA_HOME  in your environment variables to the name of the  folder which
contains the java sdk

"Peterson, Elena S" <elena@pnl.gov> wrote:  Hello all,

I've searched and searched through the archive and cannot find an answer
to this particular question.  I have a simple build file with a javac
command.  I get this message when it runs:

BUILD FAILED
C:\eclipse\workspace\PQuad\build.xml:131: Unable to find a javac
compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

So I checked to see what the value of java.home is and that's the part
that's confusing me.  Before any of the targets run it points to my jdk
(which is what the JAVA_HOME environment variable points to).  However
as soon as any target is called it points to a jre.

As you can tell from the error message I'm running this in eclipse 3.1.1
on a windows box.  I have none of the "other" ant environment variables
set.  Java is in my path (in the windows directory) but javac is not.

Any help/guidance you could provide me would be greatly appreciated.

Thanks,

Elena  

Elena S. Peterson
Senior Research Scientist II
Pacific Northwest National Laboratory
Elena@pnl.gov



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




		
---------------------------------
Find your next car at Yahoo! Canada Autos
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message