United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4515858 cannot prepend bootclasspath in javac
JDK-4515858 : cannot prepend bootclasspath in javac

Details
Type:
Enhancement
Submit Date:
2001-10-17
Status:
Resolved
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-09-02
Component:
tools
OS:
solaris_8,generic
Sub-Component:
javac
CPU:
sparc,generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:

Sub Tasks

Description

Name: bsT130419			Date: 10/17/2001


java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

In short: javac lacks the option -Xbootclasspath/p:

Our problem:

We are replacing some of the Java core by prepending a .jar file to
the bootclasspath:

java -Xbootclasspath/p:ourstuff.jar

javac does not have an -Xbootclasspath/p: option, the compiler exits with
an error message:

> javac -Xbootclasspath/p:ourstuff.jar
javac: invalid flag: -Xbootclasspath/p:ourstuff.jar

There is an option -bootclasspath in javac. This option is used to set
the *whole* bootclasspath.

  Touble is, in our case, we want to keep most of the vanilla bootclasspath
--  the bootclasspath that javac uses when called *without* the
-bootclasspath option set). As for now, we have to keep track of the
standard bootclasspath and add it "manually" to the option -bootclasspath,
after ourstuff.jar
(Review ID: 133927) 
======================================================================

                                    

Comments
EVALUATION

Yes, a good idea.

###@###.### 2001-11-12
                                     
2001-11-12
PUBLIC COMMENTS

javac now recognizes
        -Xbootclasspath/p:<em>path</em>
where <em>path</em> is a path.  javac prepends the given
path to its default bootstrap classpath.
                                     
2004-06-10
WORK AROUND



Name: bsT130419			Date: 10/17/2001


Use System.getProperty("sun.boot.class.path") (see code below) to find the
bootclasspath in use, then use the -bootclasspath option when calling javac.

public class Bootclasspath {

    public static void main(String[] args) {
        System.out.println(System.getProperty("sun.boot.class.path"));
    }
}
======================================================================
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis
mantis-b02

FIXED IN:
mantis
mantis-b02

INTEGRATED IN:
mantis
mantis-b02


                                     
2004-06-14



Hardware and Software, Engineered to Work Together