Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Building Eclipse 3.4 From Sources Fails
Building Eclipse 3.4 From Sources Fails [message #330344] Fri, 25 July 2008 20:30 Go to next message
Eclipse UserFriend
Originally posted by: mailtocurious.rediffmail.com

Followed instructions.html inside eclipse-sourceBuild-srcIncluded-3.4.zip

Using:
eclipse-sourceBuild-srcIncluded-3.4.zip
apache-ant-1.7.1
Windows XP Professional SP2
AMD Sempron 2500+



Environment variables:
PATH=C:\WINDOWS\system32;C:\WINDOWS;D:\e\software\apache_ant \apache-ant-1.7.1\bin;C:\Program
Files\Java\jdk1.6.0_07\bin;D:\e\software\info_unzip;D:\e\sof tware\info_zip

D:\ec>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_07

D:\ec>echo %ANT_HOME%
D:\e\software\apache_ant\apache-ant-1.7.1

D:\ec>echo %CLASS_PATH%
%CLASS_PATH%

Above lines show that CLASS_PATH has not been defined as suggested in:
http://ant.apache.org/manual/install.html#installing

Changed build.properties file to contain:
J2SE-1.4="C:\\Program Files\\Java\\j2sdk1.4.2_17\\jre\\lib"
J2SE-1.5="C:\\Program Files\\Java\\jdk1.5.0_16\\jre\\lib"
JavaSE-1.6="C:\\Program Files\\Java\\jdk1.6.0_07\\jre\\lib"


To build Eclipse:
D:\ec>build -os win32 -ws win32 -arch x86 > buildlog.txt

The result in buildlog.txt:
[echo] TARGET: compiler
[echo] UPDATE ecj.jar

BUILD SUCCESSFUL
Total time: 12 seconds
[echo] TARGET: compiler2
[echo] compilerArg -enableJavadoc -nowarn -encoding ISO-8859-1
[echo] build compiler org.eclipse.jdt.core.JDTCompilerAdapter
[echo] UPDATE ecj.jar

BUILD SUCCESSFUL
Total time: 11 seconds
[echo] Deleting jars to recompile...
[echo] Compiling...
[javac] incorrect classpath:
D:\ec\plugins\org.eclipse.equinox.launcher\"C
[javac] incorrect classpath: D:\Program
Files\Java\j2sdk1.4.2_17\jre\lib"
[javac] ----------
[javac] 1. ERROR in
D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
(at line 1)
[javac]
/*********************************************************** ********************
[javac] ^
[javac] The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files
[javac] ----------
[javac] 2. ERROR in
D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
(at line 23)
[javac] public class Main {
[javac] ^^^^
[javac] Implicit super constructor Object() is undefined for default
constructor. Must define an explicit constructor
[javac] ----------
[javac] 3. ERROR in
D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
(at line 29)
[javac] public static void main(String[] args) {
[javac] ^^^^^^
[javac] String cannot be resolved to a type
[javac] ----------


.... and hundreds of such errors.


The result on console:
BUILD FAILED
D:\ec\build.xml:68: The following error occurred while executing this line:
D:\ec\build.xml:8: The following error occurred while executing this line:
D:\ec\features\org.eclipse.sdk\build.xml:39: The following error occurred
while executing this line:
D:\ec\features\org.eclipse.sdk\build.xml:17: The following error occurred
while executing this line:
D:\ec\features\org.eclipse.platform\build.xml:341: The following error
occurred while executing this line:
D:\ec\features\org.eclipse.platform\build.xml:327: The following error
occurred while executing this line:
D:\ec\features\org.eclipse.help\build.xml:95: The following error occurred
while executing this line:
D:\ec\features\org.eclipse.help\build.xml:82: The following error occurred
while executing this line:
D:\ec\features\org.eclipse.rcp\build.xml:314: The following error occurred
while executing this line:
D:\ec\features\org.eclipse.rcp\build.xml:15: The following error occurred
while executing this line:
D:\ec\plugins\org.eclipse.equinox.launcher\build.xml:137: The following
error occurred while executing this line:
D:\ec\plugins\org.eclipse.equinox.launcher\build.xml:95: Compile failed;
see the compiler error output for details.

Total time: 25 seconds



Tried with changed build.properties file:
J2SE-1.4=C:\Program Files\Java\j2sdk1.4.2_17\jre\lib
J2SE-1.5=C:\Program Files\Java\jdk1.5.0_16\jre\lib
JavaSE-1.6=C:\Program Files\Java\jdk1.6.0_07\jre\lib

Same result as above build fails so again tried with changed
build.properties file:
J2SE-1.4=C:\Program Files\Java\j2sdk1.4.2_17\jre\lib
J2SE-1.5=C:\Program Files\Java\jdk1.5.0_16\jre\lib
JavaSE-1.6='C:\Program Files\Java\jdk1.6.0_07\jre\lib'

Same result as above build fails..

- Have tried to edit build.bat and passed -debug to Ant but could not
figure out much from it.
- Have tried to build with org.eclipse.equinox.launcher\build.xml using
Ant and seems to build successfully.
Is it possible to somehow figure out the dependencies among all the
plugins so that as hinted in instructions.html inside
eclipse-sourceBuild-srcIncluded-3.4.zip one can build all the plugins
separately and get an eclipse build?
- Is it that eclipse uses its own complier to build all
modules/plugins except ecj.jar?


A related post but seems like nobody has responded.
http://dev.eclipse.org/newslists/news.eclipse.platform/msg58 967.html

Thank you very much for your patience.

Cheers.
Re: Building Eclipse 3.4 From Sources Fails [message #330569 is a reply to message #330344] Mon, 04 August 2008 00:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chenal.naritech.cn

exquisitus 写道:
> Followed instructions.html inside eclipse-sourceBuild-srcIncluded-3.4.zip
>
> Using: eclipse-sourceBuild-srcIncluded-3.4.zip
> apache-ant-1.7.1
> Windows XP Professional SP2
> AMD Sempron 2500+
>
>
>
> Environment variables:
> PATH=C:\WINDOWS\system32;C:\WINDOWS;D:\e\software\apache_ant \apache-ant-1.7.1\bin;C:\Program
> Files\Java\jdk1.6.0_07\bin;D:\e\software\info_unzip;D:\e\sof tware\info_zip
>
> D:\ec>echo %JAVA_HOME%
> C:\Program Files\Java\jdk1.6.0_07
>
> D:\ec>echo %ANT_HOME%
> D:\e\software\apache_ant\apache-ant-1.7.1
>
> D:\ec>echo %CLASS_PATH%
> %CLASS_PATH%
>
> Above lines show that CLASS_PATH has not been defined as suggested in:
> http://ant.apache.org/manual/install.html#installing
>
> Changed build.properties file to contain:
> J2SE-1.4="C:\\Program Files\\Java\\j2sdk1.4.2_17\\jre\\lib"
> J2SE-1.5="C:\\Program Files\\Java\\jdk1.5.0_16\\jre\\lib"
> JavaSE-1.6="C:\\Program Files\\Java\\jdk1.6.0_07\\jre\\lib"
>
>
> To build Eclipse:
> D:\ec>build -os win32 -ws win32 -arch x86 > buildlog.txt
>
> The result in buildlog.txt:
> [echo] TARGET: compiler
> [echo] UPDATE ecj.jar
>
> BUILD SUCCESSFUL
> Total time: 12 seconds
> [echo] TARGET: compiler2
> [echo] compilerArg -enableJavadoc -nowarn -encoding ISO-8859-1
> [echo] build compiler org.eclipse.jdt.core.JDTCompilerAdapter
> [echo] UPDATE ecj.jar
>
> BUILD SUCCESSFUL
> Total time: 11 seconds
> [echo] Deleting jars to recompile...
> [echo] Compiling...
> [javac] incorrect classpath:
> D:\ec\plugins\org.eclipse.equinox.launcher\"C
> [javac] incorrect classpath: D:\Program
> Files\Java\j2sdk1.4.2_17\jre\lib"
> [javac] ----------
> [javac] 1. ERROR in
> D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
> (at line 1)
> [javac]
> /*********************************************************** ********************
>
> [javac] ^
> [javac] The type java.lang.Object cannot be resolved. It is
> indirectly referenced from required .class files
> [javac] ----------
> [javac] 2. ERROR in
> D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
> (at line 23)
> [javac] public class Main {
> [javac] ^^^^
> [javac] Implicit super constructor Object() is undefined for default
> constructor. Must define an explicit constructor
> [javac] ----------
> [javac] 3. ERROR in
> D:\ec\plugins\org.eclipse.equinox.launcher\src\org\eclipse\c ore\launcher\Main.java
> (at line 29)
> [javac] public static void main(String[] args) {
> [javac] ^^^^^^
> [javac] String cannot be resolved to a type
> [javac] ----------
>
>
> ... and hundreds of such errors.
>
>
> The result on console:
> BUILD FAILED
> D:\ec\build.xml:68: The following error occurred while executing this line:
> D:\ec\build.xml:8: The following error occurred while executing this line:
> D:\ec\features\org.eclipse.sdk\build.xml:39: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.sdk\build.xml:17: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.platform\build.xml:341: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.platform\build.xml:327: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.help\build.xml:95: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.help\build.xml:82: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.rcp\build.xml:314: The following error
> occurred while executing this line:
> D:\ec\features\org.eclipse.rcp\build.xml:15: The following error
> occurred while executing this line:
> D:\ec\plugins\org.eclipse.equinox.launcher\build.xml:137: The following
> error occurred while executing this line:
> D:\ec\plugins\org.eclipse.equinox.launcher\build.xml:95: Compile failed;
> see the compiler error output for details.
>
> Total time: 25 seconds
>
>
>
> Tried with changed build.properties file:
> J2SE-1.4=C:\Program Files\Java\j2sdk1.4.2_17\jre\lib
> J2SE-1.5=C:\Program Files\Java\jdk1.5.0_16\jre\lib
> JavaSE-1.6=C:\Program Files\Java\jdk1.6.0_07\jre\lib
>
> Same result as above build fails so again tried with changed
> build.properties file:
> J2SE-1.4=C:\Program Files\Java\j2sdk1.4.2_17\jre\lib
> J2SE-1.5=C:\Program Files\Java\jdk1.5.0_16\jre\lib
> JavaSE-1.6='C:\Program Files\Java\jdk1.6.0_07\jre\lib'
>
> Same result as above build fails..
>
> - Have tried to edit build.bat and passed -debug to Ant but could not
> figure out much from it.
> - Have tried to build with org.eclipse.equinox.launcher\build.xml using
> Ant and seems to build successfully.
> Is it possible to somehow figure out the dependencies among all the
> plugins so that as hinted in instructions.html inside
> eclipse-sourceBuild-srcIncluded-3.4.zip one can build all the plugins
> separately and get an eclipse build?
> - Is it that eclipse uses its own complier to build all modules/plugins
> except ecj.jar?
>
>
> A related post but seems like nobody has responded.
> http://dev.eclipse.org/newslists/news.eclipse.platform/msg58 967.html
>
> Thank you very much for your patience.
>
> Cheers.
>
>

I also have this question. I build eclipse 3.4 on windows xp and solaris
10. Both failed with the above mentioned errors.

Who has successfully built eclipse 3.4?

Allen
Re: Building Eclipse 3.4 From Sources Fails [message #331011 is a reply to message #330569] Thu, 21 August 2008 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ningliangnl1.gmail.com

do some modification to build.properties as follows:

J2SE-1.4=[JDK1.4-HOME]\\jre\\lib\\rt.jar;[JDK1.4-HOME]\\jre\ \lib\\jsse.jar;[JDK1.4-HOME]\\jre\\lib\\jce.jar;
J2SE-1.5=[JDK1.5-HOME]\\jre\\lib\\rt.jar;[JDK1.4-HOME]\\jre\ \lib\\jsse.jar;[JDK1.4-HOME]\\jre\\lib\\jce.jar;
JavaSE-1.6=[JDK1.6-HOME]\\jre\\lib\\rt.jar;[JDK1.4-HOME]\\jr e\\lib\\jsse.jar;[JDK1.4-HOME]\\jre\\lib\\jce.jar;

maybe, it will works~
good luck~
Re: Building Eclipse 3.4 From Sources Fails [message #331012 is a reply to message #331011] Thu, 21 August 2008 08:39 Go to previous message
Eclipse UserFriend
Originally posted by: ningliangnl1.gmail.com

do some modifications to build.properties as follows:

J2SE-1.4=[JDK1.4-HOME]\\jre\\lib\\rt.jar;[JDK1.4-HOME]\\jre\ \lib\\jsse.jar;[JDK1.4-HOME]\\jre\\lib\\jce.jar;
J2SE-1.5=[JDK1.5-HOME]\\jre\\lib\\rt.jar;[JDK1.5-HOME]\\jre\ \lib\\jsse.jar;[JDK1.5-HOME]\\jre\\lib\\jce.jar;
JavaSE-1.6=[JDK1.6-HOME]\\jre\\lib\\rt.jar;[JDK1.6-HOME]\\jr e\\lib\\jsse.jar;[JDK1.6-HOME]\\jre\\lib\\jce.jar;

maybe, it will work~
good luck~
Previous Topic:How do I know if Save button is pressed?
Next Topic:Plugin was not loaded
Goto Forum:
  


Current Time: Sun Jun 30 13:45:24 GMT 2024

Powered by FUDForum. Page generated in 0.02822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top