ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject Re: java.home
Date Fri, 24 Aug 2001 13:01:46 GMT
My first question (relating to java.home) was answered, but not 
my second (which is the more embarrassing of the two).  I 
currently am using jikes as my compiler, but recently I tried 
switching back to javac (by altering "build.compiler" in a property 
file).  Ant choked, saying:

d:\dev\scripts\_build.xml:84: javac can't be found.
--- Nested Exception ---
java.lang.ClassNotFoundException: javac
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:136)
        at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:122)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:450)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

What would cause it to do this?  I can run javac from the command line just fine.

Kyle

>>> bodewig@apache.org 08/23/01 01:38AM >>>
On Wed, 22 Aug 2001, Kyle Adams <kadams@gfs.com> wrote:

> How is java.home set?  

Your Java VM sets this property.  For JDK 1.1 it would point to the
directory where the JDK has been installed, starting with 1.2 it
points to the installation dir of the JRE, usually ${JAVA_HOME}/jre
for a JDK.

> What's going on here?

JAVA.EXE in some Win32 system directory getting called?

Stefan

Mime
View raw message