Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Can't build SourceBuild 3.3M6 without errors
Can't build SourceBuild 3.3M6 without errors [message #314481] Fri, 13 April 2007 17:59 Go to next message
Eclipse UserFriend
I tried a full build of Eclipse using the 'Source Build' from
eclipse-sourceBuild-srcIncluded-3.3M6.zip but that result in a
numbers of errors.

I'm using:
Linux Fedora core 6
Ant 1.7.0 installed in /usr/share/ant-1.7.0
A number of different JDK's 1.4.2_14, 1.5.0_11, 1.6.0_01

export ANT_HOME=/usr/share/ant-1.7.0
export JAVA_HOME=/opt/jdk1.6.0_01
sh build -os linux -ws gtk -arch x86 -java5home /opt/jdk1.6.0_01

The instructions.html that comes along in the zip says 1.4 for JAVA_HOME
and 1.5 for -java5home but that won't work either, (using 1.4.2_14 and
1.5.0_11).

Do anyone know what is the right setup and enviroment.

/Pelle
Re: Can't build SourceBuild 3.3M6 without errors [message #314485 is a reply to message #314481] Sat, 14 April 2007 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Pelle Svensson a écrit :
> I tried a full build of Eclipse using the 'Source Build' from
> eclipse-sourceBuild-srcIncluded-3.3M6.zip but that result in a numbers
> of errors.
> I'm using:
> Linux Fedora core 6
> Ant 1.7.0 installed in /usr/share/ant-1.7.0
> A number of different JDK's 1.4.2_14, 1.5.0_11, 1.6.0_01
Could you please describe what errors you get?
--
Olivier
Re: Can't build SourceBuild 3.3M6 without errors [message #314497 is a reply to message #314485] Mon, 16 April 2007 04:32 Go to previous messageGo to next message
Eclipse UserFriend
#### Part of my build launch #####################################

export ANT_HOME=/usr/share/ant-1.7.0
export JAVA_HOME=/opt/jdk1.6.0_01
echo 5 | sudo /usr/sbin/alternatives --config java #java 1.6_01
if ! eval java -version 2>&1 | grep 1.6.0_01; then echo Wrong java
version; exit; fi
sh build -os linux -ws gtk -arch x86 -java5home /opt/jdk1.6.0_01


#### First part of 4550 lines of output ###########################

Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
[echo] TARGET: compiler
[echo] UPDATE ecj.jar

BUILD SUCCESSFUL
Total time: 7 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: 6 seconds
[echo] Deleting jars to recompile...
[echo] Compiling...
[jar] error while reading original manifest in file:
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.s wt.motif.solaris.sparc/swt.jarerror
in opening zip file
[javac] ----------
[javac] 1. WARNING in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.u i.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java
(at line 27)
[javac] import org.eclipse.swt.internal.Callback;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Discouraged access: The type Callback is not accessible due to
restriction on classpath entry
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.s wt.carbon.macosx/@dot
[javac] ----------
[javac] 2. WARNING in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.u i.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java
(at line 28)
[javac] import org.eclipse.swt.internal.carbon.HICommand;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Discouraged access: The type HICommand is not accessible due
to restriction on classpath entry
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.s wt.carbon.macosx/@dot
[javac] ----------

#### First ERROR on line 3070 #####################################

[echo] Extract .class file and properties for the batch compiler
[echo] Extract .class file and properties for the ant adapter
[echo] UPDATE ecj.jar
[echo] UPDATE ecjsrc.zip
[javac] ----------
[javac] 1. ERROR in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
(at line 33)
[javac] protected Hashtable<String, ArrayList<String>> packagesCache;
[javac] ^^^^^^^^^^^^^^^^^
[javac] Syntax error, parameterized types are only available if source
level is 5.0
[javac] ----------
[javac] 2. ERROR in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
(at line 33)
[javac] protected Hashtable<String, ArrayList<String>> packagesCache;
[javac] ^^^^^^^^^
[javac] The type ArrayList is not generic; it cannot be parameterized
with arguments <String>
[javac] ----------
[javac] 3. ERROR in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
(at line 46)
[javac] this.packagesCache = new Hashtable<String,
ArrayList<String>>();
[javac] ^^^^^^^^^^^^^
[javac] packagesCache cannot be resolved or is not a field
[javac] ----------
[javac] 4. ERROR in
/home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
(at line 46)
[javac] this.packagesCache = new Hashtable<String,
ArrayList<String>>();


/Pelle
Re: Can't build SourceBuild 3.3M6 without errors [message #314504 is a reply to message #314497] Mon, 16 April 2007 07:59 Go to previous messageGo to next message
Eclipse UserFriend
Pelle Svensson a écrit :
> [echo] Extract .class file and properties for the batch compiler
> [echo] Extract .class file and properties for the ant adapter
> [echo] UPDATE ecj.jar
> [echo] UPDATE ecjsrc.zip
> [javac] ----------
> [javac] 1. ERROR in
> /home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
> (at line 33)
> [javac] protected Hashtable<String, ArrayList<String>>
> packagesCache;
> [javac] ^^^^^^^^^^^^^^^^^
> [javac] Syntax error, parameterized types are only available if
> source level is 5.0
> [javac] ----------
> [javac] 2. ERROR in
> /home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
> (at line 33)
> [javac] protected Hashtable<String, ArrayList<String>>
> packagesCache;
> [javac] ^^^^^^^^^
> [javac] The type ArrayList is not generic; it cannot be parameterized
> with arguments <String>
> [javac] ----------
> [javac] 3. ERROR in
> /home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
> (at line 46)
> [javac] this.packagesCache = new Hashtable<String,
> ArrayList<String>>();
> [javac] ^^^^^^^^^^^^^
> [javac] packagesCache cannot be resolved or is not a field
> [javac] ----------
> [javac] 4. ERROR in
> /home/pmp/src/fedora/src/eclipse/3.3M6/plugins/org.eclipse.j dt.compiler.tool/src/org/eclipse/jdt/internal/compiler/tool/ Archive.java
> (at line 46)
> [javac] this.packagesCache = new Hashtable<String,
> ArrayList<String>>();
You need to change the javacSource and javacTarget to 1.6 and use a 1.6
Vm if you want to build this project. Its execution environment is set
to 1.6.
Or you change only change it locally.
--
Olivier
Re: Can't build SourceBuild 3.3M6 without errors [message #314508 is a reply to message #314504] Mon, 16 April 2007 09:51 Go to previous message
Eclipse UserFriend
Hi Olivier,

> You need to change the javacSource and javacTarget to 1.6 and use a 1.6
> Vm if you want to build this project. Its execution environment is set
> to 1.6.
> Or you change only change it locally.

I changed the last call to ant in the shell script 'build' to:

ant -q -buildfile build.xml $target -DinstallOs=$os -DinstallWs=$ws
-DinstallArch=$arch $compilelibs $bootclasspath $java5home
-DjavacSource=1.6 -DjavacTarget=1.6

Do I need to specify Vm to 1.6? I have Vm 1.6 on my PATH enviroment.

It runs much longer, still with lots of warnings, but it stops on:

BUILD FAILED
.../build.xml:133 The following error occured while executing this line:
.../package.org.eclipse.sdk.linux.gtk.x86.xml:46 Warning: Could not find
file
/builds/I200703231616/src/plugins/org.apache.lucene_1.9.1/v2 00701170401.jar

/Pelle
Previous Topic:CVS Sticky Revisions
Next Topic:Team Private & Synchronization
Goto Forum:
  


Current Time: Fri Nov 07 17:58:32 EST 2025

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

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

Back to the top