I need help still with running jikes using ant on Win2K
I get this error when I run my build.xml file. What is error 2?
I can run the command in a cmd.exe window with no problems and I checked to
make sure that
the command is getting the correct environment.
I have ant 1.3, jikes 1.12, as well as jdk 1.3.0_02.
H:\work\java\at\syslog\jzorro\build.xml:105: Error running jikes compiler
--- Nested Exception ---
java.io.IOException: CreateProcess: jikes -d H:\work\java\classes -classpath
H:\
work\java\classes;C:\jdk1.3.0_02\jre\lib\rt.jar;H:\work\java +E
H:\work\java\at\
syslog\JZorro.java error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at
org.apache.tools.ant.taskdefs.Execute$CommandLauncher.exec(Execute.ja
va:447)
at
org.apache.tools.ant.taskdefs.Execute$CommandLauncherProxy.exec(Execu
te.java:562)
at
org.apache.tools.ant.taskdefs.Execute$WinNTCommandLauncher.exec(Execu
te.java:587)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.execut
eExternalCompile(DefaultCompilerAdapter.java:329)
at
org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:201)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:461)
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.taskdefs.Ant.execute(Ant.java:213)
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.taskdefs.Ant.execute(Ant.java:213)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
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)
Total time: 7 seconds
-----
Attached is the build file.
Clueless.
Sean
<?xml version="1.0" encoding="UTF-8" ?>
<!-- _________________________________________________________________________
| ___ ___ ___ ___ |
| /__ /__//__ / / // _ | $Author: sean $
| __/ / __//__ /__//__/ | $Date: 2001/03/08 17:33:35 $
| www.syslog.at | $Id: build.xml,v 1.2 2001/03/08 17:33:35 sean Exp $
| | $Revision: 1.2 $
| (c) Systemlogistik GmbH |
| ____________________________________________________________________________
| |
| The copyright to the computer program(s) herein is the property of SYSLOG. |
| The program(s) may be used and/or copied only with the written permission |
| of SYSLOG or in accordance with the terms and conditions stipulated in the |
| agreement/contract under which the program(s) have been supplied. |
| |
______________________________________________________________________________
|
| $Log: build.xml,v $
| Revision 1.2 2001/03/08 17:33:35 sean
| soo, Many changes and new comments.
|
|
__________________________________________________________________________ -->
<!--
========================================================================
ANT XML build file to build the JZorro program.
========================================================================
-->
<project name="JZorro" default="recompile" basedir="../../..">
<!-- Set properties. -->
<!-- classesDir is the directory into which all class files are loaded. This
includes unjaring and compiling. -->
<property name="classesDir" value="classes" />
<!-- sourceDir is the base of the source code tree. -->
<property name="sourceDir" value="." />
<!-- mainDir is the directory containing the file with the main() method. -->
<property name="mainDir" value="at/syslog/jzorro" />
<!-- deployDir is the directory into which the final product is stored. This
will include property and other resource files, class files, and jar
files. -->
<property name="deployDir" value="deploy/applets/jzorro" />
<!-- The name of the final output jar. -->
<property name="outputJar" value="jzorro.jar" />
<!-- Use the jikes compiler and make the output formatted for Emacs. -->
<property name="build.compiler" value="jikes" />
<property name="build.compiler.emacs" value="true" />
<!-- The classpath to use when compiling. You do not need to put the normal
rt.jar file in this path because Ant does that for you. It also appears
to append your normal CLASSPATH environment variable to the classpath
which it uses for compiling. -->
<path id="compile_class_path" >
<pathelement path="${classesDir}" />
</path>
<!-- This patternset identifies all of the source files which should be used
to build a dependency tree. Normally this is simply the file containing
the main() method but it the program uses dynamic class loading or
introspection then there may be other files necessary. -->
<patternset id="source_files" >
<include name="at/syslog/JZorro.java" />
</patternset>
<!-- This target will unjar all of the appropriate third party jar files into
the classes directory. -->
<target name="setup_third_party" depends="clean" >
<unjar src="jars/log4j.jar" dest="${classesDir}" />
<unjar src="jars/jaxp.jar" dest="${classesDir}" />
<unjar src="jars/parser.jar" dest="${classesDir}" />
</target>
<!-- Completely deletes all of the files generated from the original source
files. This target may need some work. -->
<target name="clean">
<delete dir="${classesDir}" quiet="true" />
<delete dir="${deployDir}" quiet="true" />
</target>
<!-- Prepare a new classes directory. -->
<target name="prepare" >
<mkdir dir="${classesDir}" />
</target>
<!-- Do a full compile making no assumptions about existing files. -->
<target name="compile" depends="clean,setup_third_party,recompile" />
<!-- Recompile the sources. -->
<target name="recompile" depends="prepare" >
<delete >
<fileset dir="${classesDir}" >
<patternset >
<include name="at/syslog/JZorro.class" />
</patternset>
</fileset>
</delete>
<javac destdir="${classesDir}"
srcdir="${sourceDir}"
includeAntRuntime="no" >
<patternset refid="source_files" />
<classpath refid="compile_class_path" />
</javac>
</target>
<!-- Build deployment. -->
<target name="deploy" depends="clean,compile" >
<mkdir dir="${deployDir}/jar" />
<jar
jarfile="${deployDir}/jar/${outputJar}"
basedir="${classesDir}"
includes="**/*.class"
/>
<mkdir dir="${deployDir}/cfg" />
<copy todir="${deployDir}/cfg" >
<fileset dir="${sourceDir}/at/syslog" >
<include name="JZorro.properties" />
<include name="JZorro-log4j.properties" />
</fileset>
</copy>
<mkdir dir="${deployDir}/txt" />
<copy todir="${deployDir}/txt" >
<fileset dir="${sourceDir}/at/syslog/jzorro" >
<include name="JZorro_text*.properties" />
</fileset>
</copy>
</target>
</project>
<!-- EOF -->