-- add - modules Java. Base, Java desktop, Java naming, \
Java. Management, Java rmi, Java, SQL, Java, XML, Java, instrument, \
Java. Security. JGSS, Java. Instrument \
-- compress=2 \
- strip - debug - no - the header files - no - man - pages \
- the output "F:/myjre/springjre"
The output of the jre, spring - the boot program can start running, landing test (HTTPS), quoted a runtime error;
Tested the complete jre run the jar is no problem;
Always use a direct ByteBuffer cleaner, the memory leaking may occur
Java. Lang. ClassNotFoundException: sun. Misc. Unsafe
The at java.base/java.net.URLClassLoader.findClass (Unknown Source) ~ [na: na]
The at Java. The base/Java. Lang. This. LoadClass (Unknown Source) ~ [na: na]
The at org. Springframework. Boot. Loader. LaunchedURLClassLoader. LoadClass (LaunchedURLClassLoader. Java: 92)
,,,,,,,
The at Java. The base/Java. Lang. This. LoadClass (Unknown Source) ~ [na: na]
The at Java. The base/Java. Lang. Class. ForName0 (Native Method) ~ [na: na]
The at Java. The base/Java. Lang. Class.forname (Unknown Source) ~ [na: na]
At org, apache tomcat. Util. Buf. ByteBufferUtils. & lt; Clinit> (ByteBufferUtils. Java: 47) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
At org.apache.tomcat.util.net.SocketBufferHandler.expand SocketBufferHandler. Java: (211) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
At org.apache.tomcat.util.net.SecureNioChannel.processSNI SecureNioChannel. Java: (334) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
At org.apache.tomcat.util.net.SecureNioChannel.handshake SecureNioChannel. Java: (175) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
At org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1568) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
The at org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
The at Java. The base/Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (Unknown Source) ~ [na: na]
The at Java. The base/Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (Unknown Source) ~ [na: na]
At org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (TaskThread. Java: 61) ~ [tomcat embed - core - 9.0.36. Jar!/: 9.0.36]
The at Java. The base/Java. Lang. Thread. The run (Unknown Source) ~ [na: na]
Sun. Misc. Unsafe packages have been removed, replace the module package name is what?
Now that you have deleted, why use complete the jre to run there is no problem?
CodePudding user response:
No one play to streamline the jreCodePudding user response:
No one play to streamline the jre? Is complete...