|
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
>>> [EMAIL PROTECTED] 08/23/01 01:38AM >>> On Wed, 22 Aug 2001, Kyle Adams <[EMAIL PROTECTED]> 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 |
- java.home Kyle Adams
- RE: java.home Supriya Saha
- Re: java.home Stefan Bodewig
- Re: java.home Kyle Adams
- Re: java.home Stefan Bodewig
- Re: java.home Kyle Adams
