Hi!
I've been using this software for one year (with my Qstarz BT1000). I always updated the software when a new version come out, but I'm stucked with the 1.55 version, all upper versions don't work, they always fail with a:
Exception in thread "main" java.lang.NoClassDefFoundError: waba/applet/Applet
Caused by: java.lang.ClassNotFoundException: waba.applet.Applet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: waba.applet.Applet. Program will exit.
I read that you did some big changes (like superwaba) and I think this is the problem but how to solve it?
I'm using jre-6 from sun on ubuntu 9.04
Thanks :) Romain
Suggestions for solutions
Hi
The current latest version is '1.67.24' but I do not think that should make a difference.
There are several methods to launch the program on Ubuntu:
- run_rxtx.sh -> PDA like interface - requires waba;
- run_j2se.sh -> Desktop interface - does not require waba.
The message you get means that the 'Waba' library could not be found, which means that it is not on the 'CLASSPATH' defined in the run_rxtx.sh script.
In principle, the path is set in this line:
CLASSPATH=${RXTXJAR}:${ROOT_DIR}/lib/Waba_only.jar:${ROOT_DIR}/dist/BT747_rxtx.jar:$CLASSPATH
Where you can see that Waba_only is expected in ${ROOT_DIR}/lib. Root dir is set through:
ROOT_DIR=`dirname $0`
if [ -z "$ROOT_DIR" ] ; then ROOT_DIR="." ; fi
Upon execution of the script in a shell, the actual values should be visible because the header of the script is:
#!/bin/sh -vx
I looked at 'BT747_1.67.24_full.zip' and 'lilb/Waba_only.jar' exists there. in 1.55 it exists too.
I suggest that you check out wheter lib/Waba_only.jar exists as a file and is correctly set on script execution.
To check where java is looking for the file, you can use 'strace run_rxtx.sh' (I think you need to do 'strace -h -etrace=file run_rxtx.sh' to trace all started processes and do logging related to file transactions only) to log transactions of the program with the system.
Hopefully this points you in the right direction.
nice one!!!
W000t ! ;)
thanks for the tips! Something is wrong with the startup script from 1.55 to 1.60 version, this line was pointing to someting that doesn't exists (wabalang.jar)
#CLASSPATH=lib/wabalang.jar:dist/BT747_rxtx.jar:${RXTXJAR}:.:$CLASSPATH
used this one and it works as expected :]
CLASSPATH=${RXTXJAR}:lib/Waba_only.jar:dist/BT747_rxtx.jar:.:$CLASSPATH
It's seems to be fixed in 1.63 release.
Romain