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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
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.
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.