Executing JaamSim From Eclipse

30 views
Skip to first unread message

Bruce Krell

unread,
Jan 22, 2023, 2:19:31 AM1/22/23
to JaamSim Users Discussion Group
OK, I was able to sort of get JaamSim to execute.
There were some differences in the documented instructions
and the new version of Eclipse: 2022-12 (4.26.0)

I say sort of, because:

I can get all of the boxes on the side and the popups to work.
ModelBuilder, ObjectSelector display.
I can get the InputEditor, OutputViewer, and PropertyViewer to work.
I can execute and see the stats in the Viewers.

But, I can't get the View to display.

I set a breakpoint, and I get an exception in Renderer.java at:

                window.getAWTFrameRef().setVisible(true);

I checked and I have the latest graphics driver.

The new version of Eclipse sees the JOGL2 jar files and adds them to the classpath.

You still have to add JUnit4 to the Module Path

YOu have to add the resources folder to the classpath for the getResource commands to work.

I set a variable to window.getAWTFrameRef().

I can see the Frame that is returned.

But, it seems to blow up when I try to setVisible.

I tried Running As Admin.

I'm stuck. Any ideas?

I have pasted the exception tree below.

Bruce

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1

   at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171)

   at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424)

   at com.jogamp.nativewindow.awt.AWTGraphicsConfiguration.create(AWTGraphicsConfiguration.java:104)

   at com.jogamp.newt.awt.NewtCanvasAWT.addNotify(NewtCanvasAWT.java:600)

   at java.desktop/java.awt.Container.addNotify(Container.java:2804)

   at java.desktop/java.awt.Window.addNotify(Window.java:791)

   at java.desktop/java.awt.Frame.addNotify(Frame.java:495)

   at java.desktop/java.awt.Window.show(Window.java:1053)

   at java.desktop/java.awt.Component.show(Component.java:1728)

   at java.desktop/java.awt.Component.setVisible(Component.java:1675)

   at java.desktop/java.awt.Window.setVisible(Window.java:1036)

   at com.jaamsim.render.Renderer$3.run(Renderer.java:584)

   at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)

   at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)

   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)

   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)

   at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

   at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)

   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)

   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)

   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)

   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)

   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

   at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Reply all
Reply to author
Forward
0 new messages