[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception when installing on Win2000
Michele,
Depending on which JDK you are using, this is either tools.jar or
rc.jar(?) and is usually in the <jdk>/lib directory, but not in your
classpath.
Anyway... the directories or files I give you might not be the correct
name, however, it's the tools that sun includes with their JDK. Add it
to your classpath and you should be ok. Ant requires them to compile
java from within the Ant process.
Bill
Michele Mendel wrote:
>
> Hello,
>
> I get this exception while installing (using build.bat) Ozone on win2000:
>
> ----------------------------------------------------------------------------
> ----
> Buildfile: build.xml
> Project base dir set to: D:\Ozone
> Executing Target: init
> Executing Target: prepare
> Executing Target: DxLib
> Compiling 62 source files to D:\Ozone
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> sun/tools/javac/Main
> at
> org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:421)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:218)
> at org.apache.tools.ant.Target.execute(Target.java:120)
> at org.apache.tools.ant.Project.runTarget(Project.java:658)
> at org.apache.tools.ant.Project.executeTarget(Project.java:407)
> at org.apache.tools.ant.Main.runBuild(Main.java:240)
> at org.apache.tools.ant.Main.main(Main.java:191)
> ----------------------------------------------------------------------------
> ----
>
> I've set OZONE_HOME and the parameters in path. I tried different settings
> with OZONE_JVM and OZONE_JAVAC but then removed these parameters (I didn't
> really understand what values to set for them).
>
> michele