Community
Participate
Working Groups
Running a headless build on build.eclipse.org I cannot use the JRE installed at /shared/common/ibm-java-ppc64-60-SR7, because the bootclasspath fed into the compiler lacks the vital vm.jar where classes like java.lang.Object sit. In this JRE vm.jar sits in jre/lib/ppc64/default/jclSC160. Comparing the default property sun.boot.class.path with what pde-build passes to the JDT compiler (using -bootclasspath ..) I see these differences: added: deploy.jar, j9zip.jar, javaws.jar, xmldsigfw.jar removed: vm.jar (Using ibm-java2-ppc64-50-SR11 the same build scripts work just fine).
When not specified the default bootclasspath will be ${java.home}/lib/*.jar I would suggest properly configuring your build with boot classpaths per execution environment in the builder's build.properties file: # specific JRE locations to compile against. These values are used to compile bundles specifying a # Bundle-RequiredExecutionEnvironment. Uncomment and set values for environments that you support #CDC-1.0/Foundation-1.0= /path/to/rt.jar #CDC-1.1/Foundation-1.1= #OSGi/Minimum-1.0= #OSGi/Minimum-1.1= #JRE-1.1= #J2SE-1.2= #J2SE-1.3= #J2SE-1.4= #J2SE-1.5= #JavaSE-1.6= #PersonalJava-1.1= #PersonalJava-1.2= #CDC-1.0/PersonalBasis-1.0= #CDC-1.0/PersonalJava-1.0= #CDC-1.1/PersonalBasis-1.1= #CDC-1.1/PersonalJava-1.1=
(In reply to comment #1) > When not specified the default bootclasspath will be ${java.home}/lib/*.jar > > I would suggest properly configuring your build with boot classpaths per > execution environment in the builder's build.properties file: My bad, I never really cared about handling target platforms during the build, because any potential errors are already captured in the IDE, where I have all required execution environments configured. With all these (non-portable) definitions in my configuration for headless building it is working now. Still I don't think that ${java.home}/lib/*.jar is a good default. It just terribly fails for the mentioned JRE. Why not use the sun.boot.class.path property instead? Thanks for the hint anyway.
Adjusting title and reducing severity.
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. Please reopen, if you plan to provide a fix.