When I'm trying to execute myrobotlab.jar and connect my Arduino Mega after accessing the Arduino services in the runtime inside mrl (COM4), it exit automatically, I mean, I can't even connect to the Arduino ! Is my way wrong or...?


3 years ago

In reply to by Kelvin Chuah

It looks like your first error has to do with serialization.
I'd recommend copying your myrobotlab.jar to a new directory, and trying again.

Hi GroG, but too bad, it doesn't seems to have any changes to me. I noticed a few lines stating in the .log as below :


08:15:25.666 [main] INFO c.m.s.Runtime [Runtime.java:1810] ============== args end ==============
08:15:25.666 [main] INFO c.m.s.Runtime [Runtime.java:1812] ============== env begin ==============
08:15:25.667 [main] INFO c.m.s.Runtime [Runtime.java:1823] PATH not defined
08:15:25.667 [main] INFO c.m.s.Runtime [Runtime.java:1826] JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45\bin
08:15:25.668 [main] INFO c.m.s.Runtime [Runtime.java:1830] ============== env end ==============
Is this possible the reason/s why the connection failed?

I can tell you those environmental variables do not look right.

usually PATH=C:\Program Files\Java\jdk1.6.0_45\bin
JAVA_HOME is the directory above bin e.g.
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45

Why are your vars so strange?  
Did you have a problem installing Java ?

I'd reset my JAVA_HOME now after delete previous and reinstalled the latest version of Java. So it goes like this now in the log :


14:27:38.057 [main] INFO c.m.s.Runtime [Runtime.java:1812] ============== env begin ==============
14:27:38.058 [main] INFO c.m.s.Runtime [Runtime.java:1821] PATH=C:\Program Files\Java\jre1.8.0_221\bin;C:\Python27
14:27:38.059 [main] INFO c.m.s.Runtime [Runtime.java:1826] JAVA_HOME=C:\Program Files\Java\jre1.8.0_221
14:27:38.059 [main] INFO c.m.s.Runtime [Runtime.java:1830] ============== env end ==============
Anyway, I failed to connect to the Arduino as usual, and now pop-up another error stating that : could not create service python Python. I reinstalled mrl but same things happened.

I'll conclude what happened to me now. Basically, I can't access to any services through myrobotlab.jar (Even communicating with Arduino or access Python), the thing is, these function looks fine if I open it via SERVOCALIBRATION.bat. I don't know is this a bug or?