Page 1 of 1

Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 05:14
by aggarwalyogesh786
Hi All,

I have a requirement where I need to ask OpenWebStart to download the JRE from one unix Server where the JRE will be placed. We cannot use either Local JDK in the workstation nor we can use the automatic download of JRE from the default server.

Your help will be much appreciated. !!

Re: Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 07:44
by Andreas Ehret
Just set up your custom download server as described here:
https://github.com/karakun/OpenWebStart ... oad-server

Re: Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 10:02
by aggarwalyogesh786
Andreas Ehret wrote: 03 Nov 2020, 07:44 Just set up your custom download server as described here:
https://github.com/karakun/OpenWebStart ... oad-server
Hi,
Thanks for the response.

I prepared one json file (custom_server_download.json) as below.

{
"cacheTimeInMillis":5000,
"runtimes":[
{
"version":"8.0.202",
"vendor":"*",
"os":"WIN64",
"href":"http://dev-rhel6-v5integ.mycom-osi.com: ... x64.tar.gz"
}]
}


I am not sure how I can make OpenWebStart to read this file which I have created. I have placed the jre in the server itself.

Re: Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 10:41
by Andreas Ehret
First you have to put your .json to your custom download server.
Then replace the default download server URL in ITW settings (which by default points to https://download-openwebstart.com/jvms.json) with the URL that point to your custom server.

Re: Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 11:02
by aggarwalyogesh786
Andreas Ehret wrote: 03 Nov 2020, 10:41 First you have to put your .json to your custom download server.
Then replace the default download server URL in ITW settings (which by default points to https://download-openwebstart.com/jvms.json) with the URL that point to your custom server.
Is there not any way that if I place this json file on the localhost (Host machine) and put something like below:
file:////C:/Users/mycom/Desktop/custom_server.json under OpenWebStart Settings JVM Manager->Settings->Default update server URL.

Re: Need to download JRE from Unix Server JDK

Posted: 03 Nov 2020, 12:12
by Stephan Classen
We never tried it our selves.
But please go ahead and give it a shot. The string you put into the Default update server is used to create a URL object.
So file:/// should work.

I am just never sure how many slashes it needs after file: ....