Error trying to execute jaamsim from eclipse, why?

128 views
Skip to first unread message

Comesana

unread,
Feb 12, 2018, 4:38:12 PM2/12/18
to Jaamsim Users Discussion Group
Hello everybody.

I mounted the github jaamsim code on eclipse oxygen and get this error codes when executing:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at com.jaamsim.basicsim.Simulation.setControlPanelWidth(Simulation.java:1377)

at com.jaamsim.ui.GUIFrame$1.componentResized(GUIFrame.java:242)

at java.awt.Component.processComponentEvent(Unknown Source)

        and many more ....


Anybody knows the reason? Running now on JRE7, but the problem was the same on JRE8.


Thx in advance.

Regards.

Harry King

unread,
Feb 12, 2018, 4:53:33 PM2/12/18
to Jaamsim Users Discussion Group
Have you following the instructions in the Programming Manual on how to set up Eclipse?

Comesana

unread,
Feb 12, 2018, 5:03:56 PM2/12/18
to Jaamsim Users Discussion Group
Yes, exactly, step by step, I think. I know I must be missing something but I don't know what it may be.

I'll give it a try again tomorrow...

Thanks Harry.

Harry King

unread,
Feb 12, 2018, 5:17:16 PM2/12/18
to Jaamsim Users Discussion Group
You don't need to use Java 7. I am using a recent version of the Java 8 JDK and JRE.

What operating system are you running? Windows and Mac OSX should be okay, but some versions of Linux might cause problems.

Comesana

unread,
Feb 12, 2018, 5:38:30 PM2/12/18
to Jaamsim Users Discussion Group
I am using Windows 7 (well, it's a Parallels VM... maybe that could be the problem?). I will try tomorrow on a pure Windows 10 system. Oh, I didn't tell you that Jaamsim starts and seems to work ok despite of the errors. 

I started using JRE 8 but changed to 7 just in case that was the problem.

By the way, I am starting to prepare some material for my next semester's classes (I would like to switch from Arena to Jaamsim) and have a lot of problems on Mac OSX (Macbook Pro 13 inches, mid 2014, Retina display, with Display Menu installed). I can drag and drop objects but cannot change view (the rotating wheel appears and jaamsim hangs). This happened with all of the 6 sigma examples and some new models I tried to create.

That being said, I find Jaamsim very very interesting.

Regards.

Harry King

unread,
Feb 12, 2018, 6:11:11 PM2/12/18
to Jaamsim Users Discussion Group
Jose,

I suspect that Parallels is the source of all the problems you've reported. Try running the JaamSim jar file under OSX. You can also run Eclipse and do your programming under OSX. There is no need to emulate Windows for JaamSim.

Harry

Comesana

unread,
Feb 13, 2018, 4:31:29 AM2/13/18
to Jaamsim Users Discussion Group
I suspect that Parallels is the source of all the problems you've reported. Try running the JaamSim jar file under OSX. You can also run Eclipse and do your programming under OSX. There is no need to emulate Windows for JaamSim.

Harry

Me too.

It works ok on a PC with Windows 10. But, as far as I remember, yesterday I tried first under OSX and I had the same problem. Later I did the installation on the windows VM.

Well, never mind, I now have a solution.

Thanks a lot.

Comesana

unread,
Feb 13, 2018, 2:13:49 PM2/13/18
to Jaamsim Users Discussion Group
More information. It seems that the error message only appears at small resolutions (1152x780 on the Mac and similar on Windows). Increasing to 1280 x 800 makes the error dissapear.

Thkx.


Reply all
Reply to author
Forward
0 new messages