Welcome! Log In Create A New Profile

Advanced

ubuntu exception host problem

Posted by Dylan 
ubuntu exception host problem
June 10, 2008 01:04AM
I am pretty sure I have all the files installed properly.
but, of course, problems arise. This isn't the exception listed in the site, so I was hoping to get some help here.

"Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
"

" /usr/lib/jvm/java-1.5.0-sun-1.5.0.15"


I am also a new ubuntu user.

*edit: I apparently have java 6 installed. I noticed it didn't work on windows with java 6.... could thi be it?

Dylan

Edited 1 time(s). Last edit at 06/10/2008 03:30AM by Dylan.
Re: ubuntu exception host problem
June 10, 2008 06:20AM
Actually it's the opposite; javax/swing/GroupLayout$Group only exists in Java6 up-wards.

It is the result of using NetBeans to generate the GUI code. NetBeans uses the latest JDK GUI components unless an option is set so I assume the last person to generate the GUI code hadn't set the 1.5 compatibility option.

As a first attempt I'd suggest updating/installing and configuring the JDK by:
> sudo apt-get update
> sudo apt-get install sun-java6-jdk
> sudo update-java-alternatives --set java-6-sun
> sudo update-alternatives --config java

If that doesn't help try checking the following:
> java -v
To check the version of the java executable being used, should be 1.6.xx.xx

> echo $JAVA_HOME
To check the version of the java libs being used. Should be something like
/usr/local/java/j2re1.6.xx_xx or
/usr/local/java/j2jdk1.6.xx_xx

> echo $CLASSPATH
To check no other JDK's libs are being included. It will probably be blank.

Fixes:
edit ~/.bashrc adding to the end:
export JAVA_HOME=/usr/local/java/...
export CLASSPATH=
export PATH=/usr/local/java/.../bin;$PATH

I hope that helps.
Re: ubuntu exception host problem
June 10, 2008 12:25PM
:`(

I am still getting an error, but now the terminal windows won't stay open for me to copy it.
I installed 6 and reinstalled j3d and rxtx to the new 6 directory and think I have that done right.

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: java/vecMath/Col3/

I'm pretty sure this is the error now.
Thanks for the help and at least I got rid of the other error, but this one came up.
any ideas?

Dylan
Re: ubuntu exception host problem
June 11, 2008 03:18AM
I also tried running some of the older versions of host under java 6 and they each give me different errors.


Is there any way I can just copy the java folders and files from the live CD to my currently installed ubuntu?




edit: nevermind, I couldn't get help on this so I tried again to install from the reprap live cd and it worked this time installing all the files I needed to the right place but now I am having some torque issues if you wanna help, check my new post in the mechanical section.

Edited 1 time(s). Last edit at 06/11/2008 10:33PM by Dylan.
Re: ubuntu exception host problem
June 13, 2008 06:40AM
Dylan,

Were you able to see the new GUI or just the one?

Bruce Wattendorf

Edited 1 time(s). Last edit at 06/13/2008 06:43AM by Bruce Wattendorf.
Re: ubuntu exception host problem
June 13, 2008 08:07PM
I'm pretty sure the host software I am using is .81 if that means anything (the one with liveCD 0.4)
Sorry, only registered users may post in this forum.

Click here to login