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?
Extends java.security.Provider
-
- Posts: 232
- Joined: 27 Mar 2020, 09:55
Re: Extends java.security.Provider
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"
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
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.
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.
-
- Posts: 232
- Joined: 27 Mar 2020, 09:55
Re: Extends java.security.Provider
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
https://github.com/karakun/OpenWebStart ... to-run-ows
https://github.com/karakun/OpenWebStart ... oad-server
Re: Extends java.security.Provider
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?
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?
-
- Posts: 774
- Joined: 24 Mar 2020, 13:37
Re: Extends java.security.Provider
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
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
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?
-
- Posts: 232
- Joined: 27 Mar 2020, 09:55
Re: Extends java.security.Provider
Yes, any 1.8 or greater JVM is possible.
We simply do not proved links to all available vendors and versions at the time.
We simply do not proved links to all available vendors and versions at the time.