vandoor
30-04-2003, 02:56 PM
Hello, i ve some problems when i want launch uiq emulator.
it doesn't find any class, but my .jar is in the classpath.
my jar is in <dir-symbian>\epoc32\java (virtual drive j ).
my class Hello isn't in a package, the command i type in is following :
pjava_g -cd j:\example -cp j:\Hello.jar Hello
and i ve a java.lang.ClassNotFoundException
thanks for rescue me ;-)
+++
vandoor
i ve resolved my problem, i ve install jdk 1.1.1.8 and i ve put my class in a package...
+++
orange.peel
01-05-2003, 03:20 PM
I get the same error message as you did.
Can you give simple instructions on how you managed to solve it?
orange.peel
02-05-2003, 07:46 AM
I'm pulling my hair out here!
No matter what I try I always get a NoClassDefFound error!
I am using the j2sdk1.4.0_02, does this make any difference???
It compiles fine and makes the package fine too.
Also, how do you default the emulator to be a P800?
orange.peel
02-05-2003, 03:03 PM
OK, I'm now in a bigger mess!
I can run the example apps in java but not with the emulator.
When I run pjava i get the following message...
Unable to initialize threads cannot find class java/lang/Thread
I am running the j2sdk1.4.1_02 and runtime of the same version.
Anyone got any clues???
vandoor
05-05-2003, 06:57 AM
for the java/lang/thread problem
you should initialyze an environement variable
_epoc_drive_j = <symbian dir>\epoc32\java
and the emulator will start !!
+++
vandoor
05-05-2003, 07:00 AM
for problem java.lang.NoClassDefFounfError
you can put the jar file in the directory
<symbian dir>/epoc32/java/ext
the jar will be automatically in the emulator classpath.
so, if the error persists you can put your class in a package.
there are two way that i found toi resolve the problem
ps : sorry for my english ;-)
+++
vandoor
prasad
31-01-2005, 11:26 AM
if ur using jdk1.4.2 just compile the application in jdk1.1 class format
e.g. javac -target 1.1 -cp......... myapp.java
it will work
e'joy :)
Prasad