Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java WebStart and endorsed directories

How do I specify in java webstart .jnlp file, that some of my jars are overriding the JRE builtin implementations? Just like the endorsed lib property on a regular application.

like image 258
m_vitaly Avatar asked Jul 27 '26 09:07

m_vitaly


1 Answers

It seems there is no way to define endorsed dirs in web start.

Even defining the java.endorsed.dirs property to some local directory doesn't work. Probably java sets the variables after the runtime is already up.

Two possible solutions to this:

  1. From the web start application, only run command line java with java.endorsed.dirs and all the dependencies (classpath & args) the web start application would do. You have to handle jnlp jars updates each time.

  2. At first run require user or do automatic copy of required jar to JRE/lib/endorsed directory. And then require restart of web start application. Note that this method will put endorsed jars for all java application that will run with the JRE.

like image 197
m_vitaly Avatar answered Jul 29 '26 05:07

m_vitaly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!