class java.lang.object not found when building in Eclipse

This is where you talk about the RCX software itself, installation issues, and programming talk.

Moderator: roger

class java.lang.object not found when building in Eclipse

Postby gramler » Fri May 09, 2008 1:26 am

Hi there.

This is most likely silly, but I can't make it go away.

Using Eclipse- Building or running as "Lejos" gives the error:
Class java.lang.object (file java/lang/Object.class) not found in Classpath....

The .jars are there... and I can see Object.Class in the eclipse browser and the Clasapath looks right.

Ideas anyone?

Tx

Max
gramler
New User
 
Posts: 3
Joined: Wed May 07, 2008 10:52 pm

Classpath details

Postby gramler » Fri May 09, 2008 7:19 am

mm... No... Something is fishy with the classpath:

The .log in .metadata/,log file reveals

Caused by: js.tinyvm.TinyVMException: Class java.lang.Object (file java/lang/Object.class) not found in CLASSPATH /home/bogo/workspace/GoodRobot/bin:/home/bogo/workspace/GoodRobot/share/eclipse/plugins/org.lejos_3.0.0/lib/classes.jar:/home/bogo/workspace/GoodRobot/share/eclipse/plugins/org.lejos_3.0.0/lib/rcxcomm.jar

It seems like the "/usr" fragment of the path is replace with the workspace path.
Any ideas why eclipse mangles the path to the libs like this?

Tx

M.
gramler
New User
 
Posts: 3
Joined: Wed May 07, 2008 10:52 pm

Linux confix for RCX plugin

Postby gramler » Thu May 15, 2008 8:29 pm

Right.

So this can be resolved by creating the appropriate symbolic links.
Something like

ln -s /usr/share share

In the root if the Workspace will do the trick.

BTW..... there is a similar issue when running in in "emulation" mode.

Also for those who might find this useful by accident. Before Running eclipse you need various bits and pieces configured. My script looks like this:
export LEJOS_HOME=/usr/lejos
export PATH=${PATH}:/usr/lejos/bin
#export JAVA_HOME=/usr/java/jdk1.6.0_04/
export LD_LIBRARY_PATH=${LEJOS_HOME}/bin
#export CLASSPATH=${CLASSPATH}:${LEJOS_HOME}/lib/classes.jar:${LEJOS_HOME}/lib/pcrcxcomm.jar
bash

No guarantees on correctness, but in my case it make sit work.

M.
gramler
New User
 
Posts: 3
Joined: Wed May 07, 2008 10:52 pm


Return to RCX Software

Who is online

Users browsing this forum: No registered users and 0 guests

cron
more stuff