I upgrade the linux system and java package was also upgraded. I was running a jar file with command java -Xbootclasspath/p:b.jar -jar c.jar
and now this error occurs:
-Xbootclasspath/p is no longer a supported option.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
In JDK 11, the Java EE and CORBA modules were removed. These modules were deprecated for removal in JDK 9. The removed modules are: java.xml.ws: Java API for XML Web Services (JAX-WS), Web Services Metadata for the Java Platform, and SOAP with Attachments for Java (SAAJ)
The class files created by Java 8 are still executable in Java 11; however, there have been other changes in the Java runtime (library changes, etc.) that might require modification of the code. These modifications may be made in Java 8 and compiled with Java 8 making it compatible with the Java 11 runtime.
The end is near for Java 7, a nearly 11-year-old release of standard Java. Oracle is set to discontinue extended support for the platform at the end of July 2022. With the cessation of official Extended Support, Java 7 goes into Sustaining Support mode as defined by the Oracle Lifetime Support Policy.
JAVA 11 doesn't support -Xbootclasspath/p:
, so your command should be changed from /p:
to /a:
.
Before:
java -noverify -Xbootclasspath/p:
After:
java -noverify -Xbootclasspath/a:
From the Java 9 Release notes:
The boot class path has been mostly removed in this release. The java
-Xbootclasspath
and-Xbootclasspath/p
options have been removed. The javac-bootclaspath
option can only be used when compiling to JDK 8 or older. The system propertysun.boot.class.path
has been removed. Deployments that rely on overriding platform classes for testing purposes with-Xbootclasspath/p
will need to changed to use the--patch-module
option that is documented in JEP 261. The-Xbootclasspath/a
option is unchanged.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With