Page 1 of 1

Disable Java not installed message when using JDK9

Posted: Tue Nov 07, 2017 8:46 am
by TQwan
Hi,

I recently upgraded to Java 9 (SDK and SE; I'm a developer) and uninstalled java 8 se and java 8 sdk, because they contain vulnerabilities.

Anyway when I now start UMS 6.7.4 it says Java is not installed. I press Ok.
Then it tries to install Java. I close this window by clicking on the X (the esc also closes the window but nothing heapons)

Anyway UMS seems to start after closing the install screen (I guess it never checked if Java was really properly installed :D )

My TV is still able to stream from my PC with UMS 6.7.4 running Java SDK 9 (and SE 9).

Anyway please update the Java version check to support version 9, since this works :D

Re: Disable Java not installed message when using JDK9

Posted: Thu Nov 09, 2017 4:59 am
by TQwan
I think a change in the function "GetJRE" in this file:

https://github.com/UniversalMediaServer ... is/pms.nsi

It should detect that JRE 9 is installed instead of calling download function.

EDIT

I think line 193 is the problem:
; Check if JRE7 is installed
${VersionCompare} ${JRE7_VERSION} $R1 $R2

This just checks if JRE 7 is installed, while it should check if 7, 8 and 9 are installed.
Note: Line 149 "MessageBox MB_ICONINFORMATION "${PRODUCT_NAME} uses Java Runtime Environment ${JRE7_VERSION}+"
This line specifically says JAVA 7 and higher are supported.

Re: Disable Java not installed message when using JDK9

Posted: Thu Nov 09, 2017 5:04 am
by Nadahar
This will probably happen a lot faster if you submit a pull request: https://github.com/DigitalMediaServer/D ... rver/pulls