Questions tagged [bootclasspath]
41 questions
9
votes
1 answer
jdk.dynalink not visible from bootclasspath in Java 9
Our project is developed using Eclipse OSGi, but provides also normal JARs via jardesc files for export. The project uses the ASM library and a javaagent in order to exchange invokevirtual with invokedynamic calls.
This worked well in Java 7 and 8.…

lschuetze
- 1,218
- 10
- 25
9
votes
1 answer
How to get boot class path in JDK 9 or later
I have a classloader application that reads the system property sun.boot.class.path
But I've found in the JDK 9's release note that this property has been removed.
System.getProperty("sun.boot.class.path"); // In JDK 9/10 this returns null
But I…

Gayan Weerakutti
- 11,904
- 2
- 71
- 68
8
votes
2 answers
How to add a jar to the boot classpath in java 9
In my application that runs on java 8, I am using -bootclasspath:p to add a jar to the boot classpath. In java 9, the option is removed. What is the alternative to do the same in java 9?

Qwerty
- 83
- 1
- 6
6
votes
1 answer
How to configure the bootstrap classpath of an Eclipse plug-in?
I'd like to replace some of the classes (javax.tools.*) of rt.jar that my Eclipse plug-in depends on by my own versions of these classes. Replacing the classes in rt.jar is typically done by setting the bootclasspath. My question is how to do this…

reprogrammer
- 14,298
- 16
- 57
- 93
5
votes
1 answer
Modifying BOOTCLASSPATH in Android Building
This question is related to this other one. I have recompiled Android framework and generated a new image. I need to add some classes to the original framework and did it by adding new jars that go into /system/framework. I modified BOOTCLASSPATH to…

Fernando Miguélez
- 11,196
- 6
- 36
- 54
4
votes
0 answers
Help building patched android framework
I am new to Android platform development. I have just succeded building Cyanogenmod 7 sources after applying a patch, which adds extra jars to the system (fit into /system/framework directory).
After flashing the device and checking that the new…

Fernando Miguélez
- 11,196
- 6
- 36
- 54
4
votes
2 answers
How to load another class via bootstrap classloader programmatically?
I know there is a "bootstrap classloader" loading all the classes from the jre/lib (rt.jar, etc). Is it possible to get my hands on this "bootstrap classloader" in order to load an additional class from another non-java package?
I'm talking about…

LatencyFighter
- 351
- 2
- 11
3
votes
1 answer
How can we overwrite java.base/java.lang.Integer from OpenJDK 11 using --patch-module?
In the JDK-8, we could compile our changed java.lang classes and reconstruct the rt.jar. Then we could overwrite java.lang classfiles by augmenting the bootclasspath with -Xbootclasspath:/rt.jar. Doing this, we could for example make…

MGG
- 43
- 7
3
votes
1 answer
bootstrap class path not set in conjunction with -source 8
I am upgrading my application from java 1.8 to java 11 When I try to build using ant 1.10.8, my build fails but I also see a warning
warning: [options] bootstrap class path not set in conjunction with -source 8
I have set
source=1.8 and…

Shiva
- 81
- 2
- 5
3
votes
1 answer
replacement for bootclasspath option in java
I am trying to build an Android app manually just from the command line without using any kind of extra things, such as the build system (Gradle). I am following this page.
But, I am stuck at compiling the Java source files.
Whenever I am issuing…

Puspam
- 2,137
- 2
- 12
- 35
3
votes
1 answer
What is JavaSE-18 in eclipse vs. my installed jdk1.8.0_73
In eclipse, ./gradlew is generating JavaSE-1.8 instead of using my jdk1.8.0_73. What jdk is this because I discovered lately that it seems like it is 'not' my jdk1.8.073 for the following reason.....
I installed alpn.jar from jetty in jre/classes…

Dean Hiller
- 19,235
- 25
- 129
- 212
3
votes
1 answer
Setting java bootclasspath
I have JDK6 & 8 installed on my computer, I would like to do
javac -source 1.6
However I have this warning
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Does anyone know how to set it? I am not…

naiimco
- 75
- 1
- 11
3
votes
1 answer
Java: Use of bootclasspath preventing H2 driver from being found
If I build my own, tinkered version of rt.jar (called my-rt.jar) from the Oracle JDK 7 sources and hook it in with the bootclasspath mechanism, like this,
$ java -Xbootclasspath/p:/path/to/my-rt.jar -cp /path/to/h2-1.3.174.jar main
then, I can't…

Harry
- 3,684
- 6
- 39
- 48
2
votes
0 answers
Can't find bootclasspath on jdk9+
The openjdk document "JEP 261: Module System" states that:
"A related option, -Xbootclasspath/a, allows files and directories to be appended to the default bootstrap class path. This option, and the related API in the java.lang.instrument package,…

Mark Roberts
- 101
- 4
2
votes
2 answers
How to add a jar to the boot classpath in java 11
In my application which is running on Java 8 I used third party library which is using org.jboss.logmanager.LogManager So I added this jar in bootclass path and it works fine. But when migrate to java 11 either -Xbootclasspath/a or -Xbootclasspath/p…

JagKum
- 183
- 2
- 18