Hi all,
Please give me a hand with this problem, I lost 3 days trying to start the emulator supplied with Symbian v7.0 UIQ v2.0 SDK.
I am writing a simple pJava app containing a Hello class (example from SDK documentation), I am compiling it but when I am trying to test it on the emulator, it loads and exits immediately with the following message:
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
---------------------------
Effective classpath is:
.
?:/classes
T:\ext\qawt.jar
T:\ext\util.jar
J:\ext\javaphone.jar
J:/lib/classes.zip
Specified classpath was:
.;?:/classes;?:/ext/*;?:/lib/classes.zip
---------------------------
Any ideas why I get that? Can anybody that has succeeded in running the emulator copy the relative Path and Classpath setting, I think maybe I am missing something there!
Wierdly enough, even the jre -cp . Hello which should test the Hello app in windows doesn't work. Have I scrued my system setup?
Thanx to all folks!
Check out kajetan's pJava setup guide: http://www.kajetan.nu/docs/SymbianSDK.html. I believe it will tell you all you ever wanted to know about the _epoc_drive_j and _epoc_drive_t variables you need to get pJava to work with the emulator.
Regards,
/Cruizer.
Hi!
I have the same problem. And it still remains after I followed the this doc by Kajetan. I really do not know what's wrong. Any help would be highly appreciated!
i'm unable to run the pjava App in UIQ Emulator, and finally i found the following is the reason. here i don't know where i have to run the javac -thread command (ie., in which dir tree). valuable suggestions will be appreciated.
"Symbian's PersonalJava runtime environment expects classes compiled into the JDK 1.1 class file format. By default JDKs 1.2.x and 1.3.x compilers produced class files in the JDK 1.1 class file format. However with the arrival of the JDK 1.4.x the default class file format produced by javac compiler is now the 1.2 format. Hence when compiling sources with the JDK1.4.x or later you must explicitly request the 1.1 class file format using the javac -target 1.1 option".
[email][email protected][/email]