problem in using dbus-java
Mohit Verma
mohit.verma.in at gmail.com
Sun Jun 28 11:31:43 PDT 2009
Hi all,
I am running openSUSE 11.1 , and installed dbus-java (2.5-19.4) and matthew-
lib (0.7.1.-5.19). When I try to run a Java program in Netbeans, which uses
dbus-java.. I get the following error ::
"Exception in thread "main" java.lang.NoClassDefFoundError:
cx/ath/matthew/utils/Hexdump
at
org.freedesktop.dbus.Transport$SASL.stupidlyEncode(Transport.java:187)
at org.freedesktop.dbus.Transport$SASL.auth(Transport.java:470)
at org.freedesktop.dbus.Transport.connect(Transport.java:792)
at org.freedesktop.dbus.Transport.<init>(Transport.java:730)
at org.freedesktop.dbus.DBusConnection.<init>(DBusConnection.java:159)
at
org.freedesktop.dbus.DBusConnection.getConnection(DBusConnection.java:142)
at
sourcemorph.nlp.internal.purple.PidginHandler.<clinit>(PidginHandler.java:27)
at sourcemorph.nlp.vaani.PidginTrial.main(PidginTrial.java:19)
Caused by: java.lang.ClassNotFoundException: cx.ath.matthew.utils.Hexdump
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)
... 8 more"
The command used to run the code is "java -cp
/usr/local/share/java/dbus.jar:/usr/local/share/java/unix.jar:/usr/local/share/java/debug-
disable.jar:/usr/local/share/java/hexdump.jar -
Djava.library.path=/usr/local/lib/jni"
I browsed through some forums, and saw that this could be due to a bug. It'll
be great help if someone can point out where I went wrong.
Thanks,
--
Mohit Verma
IV Year, MSc(Tech) Information Systems
BITS Pilani, Goa Campus
More information about the dbus
mailing list