Custom JRE Not Found

60 views
Skip to first unread message

jeff m

unread,
Jan 22, 2019, 1:37:09 PM1/22/19
to OOO Libs
I have an installer that includes a copy of the JRE appropriate for the specific platform.  The directory structure after install looks like this:

myapp
   \_ getdown.txt
    _ getdown.jar
    ...

java_vm
   \_bin
    _ lib
               ...

I'd like to use getdown to update the jre but I seem to have 2 issues.  The first is that getdown doesn't seem to find the JRE in local java_vm directory.  Second, it's not able to find the JRE on my web server (though without the java* directives the application jar gets downloaded correctly so it is connecting to the web server).

The relevant parts of my getdown.txt file are:


java_min_version = 1080201
java_location = [windows-x86] /jre/jre_x86.jar
java_location = [windows-x86_64] /jre/jre_x64.jar
java_location = [[windows-amd64]] /jre/jre_x64.jar


And the structure on the web server is:

myapp
   \_ getdown.txt
    _ digest*.txt
               _ application.jar 
    ...
jre
   \_ jre_x86.jar
    _ jre_x64.jar

When I run the getdown.jar I get the following in the log:

2019/01/22 10:25:30:223 INFO Checking Java version [current=1080191, wantMin=1080201, wantMax=0]
2019/01/22 10:25:30:223 INFO Attempting to update Java VM...
2019/01/22 10:25:30:223 WARNING getdown() failed.
java.io.IOException: m.java_download_failed
at com.threerings.getdown.launcher.Getdown.updateJava(Unknown Source)
at com.threerings.getdown.launcher.Getdown.getdown(Unknown Source)
at com.threerings.getdown.launcher.Getdown.run(Unknown Source)

It doesn't say why the download failed but I'm assuming it couldn't find the file.  I'm just not sure where it was looking.  My understanding from the documentation is that since my java_location starts with a slash it should be looking for: http://myserver:8080/jre/jre_x64.jar

Any advice would be appreciated.



jeff m

unread,
Jan 24, 2019, 4:13:52 PM1/24/19
to OOO Libs
Never mind.  I solved this on my own.
Reply all
Reply to author
Forward
0 new messages