Error when trying to run JaamSim from Eclipse

189 views
Skip to first unread message

mennova...@gmail.com

unread,
Mar 27, 2020, 2:46:50 PM3/27/20
to Jaamsim Users Discussion Group
Hi,

I just installed Java and Eclipse according the program manual, but I get some errors and the 3D view window does not open.

- Eclipse IDE for Java Developers
Version: 2020-03 (4.15.0)

I installed for Java:
- jdk-14
- jre1.8.0_241

I run it on Windows 10 Pro, 64-bit OS, x64 based

The errors I get:

java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\menno\eclipse-workspace\JaamSim\natives\windows-amd64\\gluegen_rt.dll
 at java.lang.ClassLoader.loadLibrary(Unknown Source)
 at java.lang.Runtime.load0(Unknown Source)
 at java.lang.System.load(Unknown Source)
 at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:625)
 at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
 at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
 at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
 at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
 at com.jogamp.common.os.Platform$1.run(Platform.java:321)
 at java.security.AccessController.doPrivileged(Native Method)
 at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
 at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:154)
 at com.jaamsim.render.Renderer.mainRenderLoop(Renderer.java:216)
 at com.jaamsim.render.Renderer.access$18(Renderer.java:210)
 at com.jaamsim.render.Renderer$1.run(Renderer.java:203)
 at java.lang.Thread.run(Unknown Source)
Exception in thread "RenderThread" java.lang.NoClassDefFoundError: Could not initialize class com.jogamp.common.os.Platform
 at com.jogamp.nativewindow.NativeWindowFactory$1.run(NativeWindowFactory.java:239)
 at java.security.AccessController.doPrivileged(Native Method)
 at com.jogamp.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:236)
 at com.jaamsim.render.Renderer.mainRenderLoop(Renderer.java:265)
 at com.jaamsim.render.Renderer.access$18(Renderer.java:210)
 at com.jaamsim.render.Renderer$1.run(Renderer.java:203)
 at java.lang.Thread.run(Unknown Source)


Can anyone advise me on how to fix this? JaamSim does start up, but does not show the 3D view GUI

Kind regards,
Menno

mennova...@gmail.com

unread,
Mar 27, 2020, 4:39:30 PM3/27/20
to Jaamsim Users Discussion Group
It was solved:

I did tick the box 'system library' when defining the library name for JOGL2 (see step 2.4.3, bottom of page 5)

When I redid this step and did NON tick that particular box, then the problem was solved!

Knut Arild Maråk

unread,
Feb 22, 2021, 4:15:59 PM2/22/21
to Jaamsim Users Discussion Group
Hi, 

I get the exact same error as you. Where did you untick the "system library" box? 

I've installed OpenJRE. I suspect that the error is related to settings set by the IT department, that auto-unpacking e.g. the gluegen_rt.dll file is prohibited.

Kind regards, 
Knut

menno van schayk

unread,
Feb 23, 2021, 2:23:25 AM2/23/21
to Knut Arild Maråk, Jaamsim Users Discussion Group
Hi Knut,

See below my email discussion with Harvey

Harvey 1st response:
'
You have not added the jogl libraries to your eclipse environment. In the jar/ folder, you need gluegen-rt.jar and jogl-all.jar added to your eclipse environment.
This is documented in the programming manual in the first chapter for further reference.
'

My response:
'
Hi Harvey,

Thanks for the quick reply. I did add the gluegen-rt.jar and jogl-all.jar added to my eclipse environment (as instructed in section 2.4.3):
image.png

See my eclipse IDE GUI above.

Any idea what could have gone wrong?
'

my 2nd response
'
I did tick the box 'system library' when defining the library name for JOGL2. Could this have done any harm?
'

Harvey 2nd response:
'
I wouldn't add it as a system library. But I'm not sure if that would make any difference.
'
My final response:
'
Hi Harvey,

I unticked the box and tried to Run and....No errors on opening :) and the 3D viewer opened. So it seemed to work!

Thanks for your help! 
'

Conclusion:
It was solved:
I did tick the box 'system library' when defining the library name for JOGL2 (see step 2.4.3, bottom of page 5)
When I redid this step and did NON tick that particular box, then the problem was solved!



Hopefully this helps! Kind regards,
Menno


--
You received this message because you are subscribed to a topic in the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jaamsim-users/MRkaq3Xu8_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jaamsim-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/ed884733-7882-4b16-8539-07c9c82e613an%40googlegroups.com.

Knut Arild Maråk

unread,
Feb 23, 2021, 2:52:20 AM2/23/21
to Jaamsim Users Discussion Group
Thanks for your help Menno. 

As I'd only like to run JaamSim and not compile it, I don't have ECLIPSE installed and I understood that I must find another solution than yours. I use Windows 10.

From other forum posts, I suspected that our IT-organization had prohibited auto-extract of dlls and other files when running the JaamSim .exe-file, which explains why the gluegen-rt.jar (and probably other files too) was not available. The solution was to manually extract the JaamSim .jar-file and put the extracted content in the same folder where I run JaamSim.exe from. That fixed the problem and it works as a charm now!

Best regards, 
Knut

Harry King

unread,
Feb 23, 2021, 12:46:01 PM2/23/21
to Jaamsim Users Discussion Group
Knut,

You can download the JaamSim jar file directly from the Downloads page of the JaamSim website.

Harry

Reply all
Reply to author
Forward
0 new messages