Extends java.security.Provider

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
jandres
Posts: 4
Joined: 15 Sep 2020, 10:20

Extends java.security.Provider

Post 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?

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Extends java.security.Provider

Post 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"

jandres
Posts: 4
Joined: 15 Sep 2020, 10:20

Re: Extends java.security.Provider

Post 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.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Extends java.security.Provider

Post 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

jandres
Posts: 4
Joined: 15 Sep 2020, 10:20

Re: Extends java.security.Provider

Post 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?

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Extends java.security.Provider

Post 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

jandres
Posts: 4
Joined: 15 Sep 2020, 10:20

Re: Extends java.security.Provider

Post 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?

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Extends java.security.Provider

Post 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.

Post Reply