lcm-spy error extracting lcm.jar

123 views
Skip to first unread message

Corey C

unread,
Oct 1, 2018, 3:43:57 PM10/1/18
to Lightweight Communications and Marshalling
Hello all,

I'm currently running lcm on an Ubuntu 16.04 Virtual Machine and had lcm-spy working last week.  Since then, I added an additional .lcm message type to my "my-types.jar" file and now lcm-spy will not work.
Error extracting /home/sitl/lcm-1.3.1/lcm-java/lcm.jar
Error extracting /home/silt/exlcm/my-types.jar
Followed by a bunch of Class Discoverer: java.lang errors.  Now the java errors do not concern me too much as they were there last week while it was working, but I'm unsure what else to do to fix my problem.

Remedial steps taken:
Deleted lcm-1.3.1 file folder from home directory
Deleted exlcm folder from home directory
Deleted lcm.jar from /usr/local/share/java/lcm.jar


performed
lcm-gen -p /home/sitl1/*.lcm
lcm-gen -j /home/sitl1/*.lcm
javac -cp /home/sitl1/lcm-1.3.1/lcm-java/lcm.jar exlcm/*.java
sudo jar cf my_types.jar exlcm/*.class
echo 'export CLASSPATH=$CLASSPATH:/home/sitl/lcm-1.3.1/lcm-java/lcm.jar' >> ~/.bashrc

echo 'export CLASSPATH=$CLASSPATH:/home/sitl/exlcm/my-types.jar' >> ~/.bashrc

echo 'export LCM_DEFAULT_URL=udpm://224.3.29.71:5005?ttl=2' >> ~/.bashrc

Still no joy.  I did all the above again, still no luck.

Corey C

unread,
Nov 13, 2018, 4:02:08 PM11/13/18
to Lightweight Communications and Marshalling
Update, I ended up completely reinstalling the Virtual Machines. Unsure what the root cause was, but things are back in order.
Reply all
Reply to author
Forward
0 new messages