PDA

View Full Version : error in using jsr-82 in symbian java



cmc100
November 2nd, 2004, 03:21
Dear all,

I am recently writing java application which require using bluetooth api
(JSR-82). During the compilation, the program works fine. Unfortunately,
when I try to run it with the emulator, error does come up. I have tried
different classpath setting already. But the problem still can't be solved.
Following is the details:
_epoc_drive_j=C:\Symbian\UIQ_21\epoc32\Java\
_epoc_drive_t=C:\Symbian\UIQ_21\erj

classpath =
C:\Symbian\UIQ_21\epoc32\java\lib\classes.zip;C:\Symbian\UIQ _21\epoc32\java\
lib\emptyapi.zip;C:\Symbian\UIQ_21\erj\classes;C:\Symbian\UI Q_21\erj\ext\qaw
t.jar;C:\Symbian\UIQ_21\erj\ext\util.jar;C:\Symbian\UIQ_21\e rj\ext\btapi.jar
;C:\Symbian\UIQ_21\epoc32\java\ext\javaphone.jar;

command used for compile : "javac -target 1.1 *.java"
command used for running emulator: "pjava_g -cp t:\PrintClient PrintClient"
error : "Exception in thread "main" java.lang.NoClassDefFoundError:
javax/bluetooth/DiscoveryListener"

This program I am doing is the example in JSR82-spec_1.0a.pdf

can anyone spot any error in my work??
thank you very much!

bezel
November 9th, 2004, 23:23
I have no idea about Symbian programming, but you need to double check that javax.blutooth.DescoveryListener is included into detault classpath on Symbian.
If it's not - just try to add it into classpath.