Disable Java not installed message when using JDK9
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Disable Java not installed message when using JDK9
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 )
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
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 )
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
Re: Disable Java not installed message when using JDK9
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.
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
This will probably happen a lot faster if you submit a pull request: https://github.com/DigitalMediaServer/D ... rver/pulls