"Brian M. Long" wrote:
>
> Hi folks. Running the build with the compiler switch set to 'classic'
> gives:
>
> <begin build trace>
> Buildfile: build.xml
> Detected Java Version: 1.2
> Project base dir set to: D:\Jetspeed-1.1\build
> Executing Target: core
> Compiling 308 source files to D:\Jetspeed-1.1\bin\classes
> Exception in thread "main" java.lang.NoClassDefFoundError:
> sun/tools/javac/Main
> at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java,
> Compiled Code)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled
> Code)
> at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
> at org.apache.tools.ant.Project.runTarget(Project.java)
> at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
> Code)
> at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
> at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
> <end build trace>
>
> But the weird thing is that if I switch the compiler to jikes, it works
> fine. Any clues?
> (I know the short answer is "use jikes").
>
add <jdk>\lib\tools.jar in your classpath
--
Rapha�l Luta - [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]