Page 1 of 1

Extends java.security.Provider

Posted: 15 Sep 2020, 10:28
by jandres
Hi, I have a JNLP application where I extend from class "java.security.Provider".

I've always had problems with this part, so what I do with the Oracle JRE is copy certain libraries (.JAR) directly into the JRE's "lib/ext" folder. I also copy some libraries (.DLL) in the BIN folder.

However, I have tested the same with the OpenWebStart version and this doesn't seem to work (can't find the classes: "ClassNotFoundException"), any ideas why this doesn't work with the OpenWebStart JRE?

Re: Extends java.security.Provider

Posted: 15 Sep 2020, 10:38
by Stephan Classen
OWS handles many different JREs most likely you copied your jars to the wrong JRE.
Activate logging and have a look at the xxx-ows-stage1.log file.
At the very end it will display the JRE which is used to run the application. The line you are looking for starts with "About to launch external with command"

Re: Extends java.security.Provider

Posted: 15 Sep 2020, 15:51
by jandres
Thank you, thank you very much for the reply!
I thought that it is always launched with the JRE located in the installation folder (C: \ Program Files (x86) \ OpenWebStart \ jre), but I see in the logs that another is been used: "C: \ Users \ XXX \ .cache \ icedtea-web \ jvm-cache \ adopt_11.0.7 \ bin \ java.exe ". Is there any way to indicate the JRE I want it to launch with? If not, I have no way to copy the libraries I need to get it to boot correctly.

Re: Extends java.security.Provider

Posted: 15 Sep 2020, 16:35
by Stephan Classen
Have a look at this documentation and come back here if you have more questions

https://github.com/karakun/OpenWebStart ... to-run-ows
https://github.com/karakun/OpenWebStart ... oad-server

Re: Extends java.security.Provider

Posted: 16 Sep 2020, 10:53
by jandres
Thanks again! I have made it work by changing the JVM configuration to include my own server, where I have uploaded a version of AdopOpenJDK with my added libraries.

Now my question is, can I distribute OpenWebStart from my own installer that includes this configuration? Could it work if we copy a "response.varfile" file with the necessary parameters in the OWS installation?

Re: Extends java.security.Provider

Posted: 16 Sep 2020, 13:22
by Janak Mulani
You want to make sure that when you distribute your app the users should download your own version of JRE. There are two ways to ensure this:
1. By specifying your own JVM Download server in deployement.properties
2. By specifying the JVM Download Server in JNLP file.

Of course these properties can be specified in response.varfile.

Please see the documentation at:

https://github.com/karakun/OpenWebStart ... management

Re: Extends java.security.Provider

Posted: 18 Sep 2020, 10:20
by jandres
Thank you very much again. One last question, in the URL: "https://download-openwebstart.com/jvms.json" no version of Amazon Corretto appears, is it possible to use this JDK instead of the ones that appear in the link?

Re: Extends java.security.Provider

Posted: 18 Sep 2020, 10:28
by Stephan Classen
Yes, any 1.8 or greater JVM is possible.
We simply do not proved links to all available vendors and versions at the time.