Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Quick eclipse build question

I'm trying to build eclipse for my first time, am having a problem that
I've not seen a solution to on the web, and so was hoping someone here
might be able to point me towards where I'm going wrong?

I'd like to build all of eclipse (I'm investigating some source code
style changes) and have downloaded eclipse-sourceBuild-srcIncluded-3.1.
When I run ./build for linux,gtk,x86 it builds ecj.jar, but fails with
the printout at end of this email. I've also attached compilelog2.log.

Thoughts on where I've gone wrong? In my build env might play a role, I'm on
linux (debian sarge) using j2sdk 1.4.2 and ant 1.6.2. Is there bootstrapping
one needs to do?

...
    [javac] [total 19056ms]
     [echo] UPDATE ecj.jar

BUILD SUCCESSFUL
Total time: 25 seconds
     [echo] TARGET: compiler2
     [echo] compilerArg -encoding ISO-8859-1
     [echo] build compiler org.eclipse.jdt.core.JDTCompilerAdapter

BUILD FAILED
/home/chris/school/archive/grad/1/spring/cs239-4/eclipse/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter org.eclipse.jdt.core.JDTCompilerAdapter caused an interesting exception.

Total time: 2 seconds

BUILD FAILED
/home/chris/school/archive/grad/1/spring/cs239-4/eclipse/build.xml:238: The Eclipse compiler (ecj.jar) cannot be found.

Total time: 2 seconds


thanks,
-- 
Chris Frost  |  <http://www.frostnet.net/chris/>
-------------+----------------------------------
Public PGP Key:
   Email chris@xxxxxxxxxxxx with the subject "retrieve pgp key"
   or visit <http://www.frostnet.net/chris/about/pgp_key.phtml>
    [javac] Compiling 297 source files to /home/chris/school/archive/grad/1/spring/cs239-4/eclipse/jdtcoresrc/compiler2

BUILD FAILED

/home/chris/school/archive/grad/1/spring/cs239-4/eclipse/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter org.eclipse.jdt.core.JDTCompilerAdapter caused an interesting exception.
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:173)
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:130)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:162)
	... 13 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:162)
	at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:130)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.Main.runBuild(Main.java:673)
	at org.apache.tools.ant.Main.startAnt(Main.java:188)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Back to the top