jpackage java commands

Michael Hall mik3hall at gmail.com
Wed May 19 14:00:08 UTC 2021


I added 
--jlink-options '--strip-debug --no-man-pages --no-header-files’
to my invocation, avoiding --strip-native-commands,  so that the native java commands are not stripped. I believe currently recommended jpackage way to do this.
I get the following commands in my embedded JDK

java		jdb		jshell		rmid		serialver
javac		jrunscript	keytool		rmiregistry

The installed jdk bin directory has 29 different commands including ones like jpackage, jlink, javap, jcmd…

What if I want to run one of those from the application? I can exec them but the version might not match the embedded?

Not a current problem that I know of, I will use the installed for now.

  






More information about the core-libs-dev mailing list