Disable Java not installed message when using JDK9

For help and support with Universal Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
TQwan
Posts: 7
Joined: Thu Jul 19, 2012 3:57 am

Disable Java not installed message when using JDK9

Post by TQwan » Tue Nov 07, 2017 8:46 am

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

TQwan
Posts: 7
Joined: Thu Jul 19, 2012 3:57 am

Re: Disable Java not installed message when using JDK9

Post by TQwan » Thu Nov 09, 2017 4:59 am

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.

User avatar
Nadahar
Developer
Posts: 914
Joined: Tue Jun 09, 2015 5:57 pm

Re: Disable Java not installed message when using JDK9

Post by Nadahar » Thu Nov 09, 2017 5:04 am

This will probably happen a lot faster if you submit a pull request: https://github.com/DigitalMediaServer/D ... rver/pulls

Post Reply