NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: nxmc with Java 11  (Read 157 times)

troffasky

  • Newbie
  • *
  • Posts: 43
    • View Profile
nxmc with Java 11
« on: March 01, 2019, 07:37:56 pm »

Is nxmc with Java 11 supposed to work? Ubuntu 18.10 comes with Java 11 by default and nxmc doesn't seem to like it.
From the end of a ~2500-line log:
Code: [Select]
!ENTRY org.eclipse.osgi 4 0 2019-03-01 17:32:42.819
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

I can install Java 8 but then Davmail won't run, which leaves me with an uncomfortable choice between email and NetXMS!
Logged

troffasky

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: nxmc with Java 11
« Reply #1 on: March 01, 2019, 07:53:02 pm »

Ahh never mind, fix was easy enough in the end.
Wrapper script with:
Code: [Select]
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:$PATH
~/downloads/netxms/nxmc/nxmc
I had tried something similar and it wasn't working, because of a typo in the path.
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6533
    • View Profile
Re: nxmc with Java 11
« Reply #2 on: March 02, 2019, 09:35:56 am »

Hi,

you can also create symbolic link named "jre" within "nxmc" directory pointing to JRE 8 - nxmc will pick up that JRE then.

Best regards,
Victor
Logged