Changing Java versions after installing Mobicontrol

MS
Michael Sun
NCR Global

Hi,

   We have Mobicontrol 14.4.2.1307 running in two test labs as well as well as in the customer's production environment. I'm wondering if anyone has had experience with changing java verson on after installing Mobicontrol. In particular, I need to switch to java openjdk in on of the labs to have it consistent with the other environments and the other instances need to be updated to the latest version of openjdk in order to alleviate some security. I've read this article(https://discussions.soti.net/kb/using-mobicontrol-with-openjdk-instead-of-java/) and it seems to imply that I might have to reinstall mobicontrol after I update/change java? Is this correct or is their a simpler way of migrating?

        Michael Sun

5 years ago
Windows
ANSWERS
J
JCMOD@SOTI
5 years ago (edited 5 years ago)

Hi Michael,

Thank you for posting in SOTI Central,

If you wish to change your Java version, it should be a case of ensuring the PATH Variable is correct. So that when you try "java -version" within cmd, it would reflect the correct version and build that you want to use. You should also restart the Search Service once you do any Java changes.

Hope this helps.

Regards,

JD
John Doe
5 years ago

When you installed MobiControl right away with OpenJDK you can just pause the search service switch out the contents of the openjdk folder and you are good to go.

We currently run on OpenJDK 11.08 without issues.

MS
Michael Sun
5 years ago

Thanks for the response. I tried changing the path variable and verified that java -version returned the openjdk version. However, when I restarted the search service, it errored out on startup. The system event log showed the following:

The MobiControl Search service terminated with the following service-specific error:
The system cannot open the file.

Any idea what else I can look at?

JD
John Doe
5 years ago

You need to change JavaHome & RuntimeLib.

Also what "OpenJDK" did you download?

MS
Michael Sun
5 years ago

I changed runtime lib  and java home in the registry to point to openjdk and still getting the same issue. I am trying to put in openjdk 11.0.8_10