Hello Bharath,
I am intrigued by the class not def found error
"gnu/classpath/Configuration"
Are you using a GNU JDK ?
You might want to use a Sun JDK. Ant uses normally the JDK pointed to by
the environment variable JAVA_HOME.
It is possible that there is a bug or limitation of ant and that ant
does not work with the GNU JDK.
Regards,
Antoine
Bharath Vasudevan wrote:
Hi,
I tried building the 6.0.x tomcat source. From the installation looks like
we had to execute "ant download" and then "ant".
Executing "ant download" completed fine and said build successful. But
executing "ant" after it fails with this error:
Any idea if some envt variable is messed up ?
sudo ant
Buildfile: build.xml
build-prepare:
[delete] Deleting directory /usr/share/tomcat-trunk/
output/build/temp
[mkdir] Created dir: /usr/share/tomcat-trunk/output/build/temp
compile:
[javac] Compiling 1058 source files to
/usr/share/tomcat-trunk/output/classes
BUILD FAILED
java.lang.NoClassDefFoundError: gnu/classpath/Configuration
at com.sun.tools.javac.Main.<clinit>(Main.java:66)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:145)
at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:100)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1058)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: gnu.classpath.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 23 more
Total time: 1 second
Regards,
Bharath
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]