Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311425 - default bootclasspath doesn't work for ibm-java-ppc64-60-SR7
Summary: default bootclasspath doesn't work for ibm-java-ppc64-60-SR7
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.6   Edit
Hardware: Power PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 16:05 EDT by Stephan Herrmann CLA
Modified: 2018-12-03 09:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2010-05-03 16:05:29 EDT
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).
Comment 1 Andrew Niefer CLA 2010-05-03 17:32:16 EDT
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=
Comment 2 Stephan Herrmann CLA 2010-05-03 19:08:50 EDT
(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.
Comment 3 Stephan Herrmann CLA 2010-06-11 13:44:44 EDT
Adjusting title and reducing severity.
Comment 4 Lars Vogel CLA 2018-12-03 09:09:23 EST
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.