I have seen posts from other people with the same problem but no answers have been posted so far. So I am reposting and hopefully some Nokia or Symbian support people ever read this message board, probably not.
I installed the Symbian SDK for Personal Java for the Nokia Communicator on my Windows XP. Btw, the installation failed twice because it couldn't execute a remote procedure call during
the installation (I guess some Symbian server was down) - that's ridiculous, Symbian should rethink their installation strategy, seriously.
The third time it installed fine and now I am trying to run the Hello World example that comes with the SDK.
That's where I get java.lang.noClassDefFoundError
my EPOCROOT path is \Symbian\6.0\NokiaJava as it should be. Apparently, EPOCROOT\erj gets mapped to the J: drive, which is supposedly the virtual path for the emulator, so that a directory Hello created at EPOCROOT\erj can be addressed with J:/Hello or possibly J:\Hello, I tried both for the heck of it.
So I copied the Hello.java from Symbian's QuickStart manual and compiled it. Then I ran:
c:\Symbian\6.0\NokiaJava\Epoc32\Release\wins\urel\pjava -cp J:/Hello Hello
with the result:
I also tried
pjava -v -classpath
and all the java classes in classes.zip get loaded, but it still doesn't find the Hello.class
I have seen two other posts describing the same problem.
Posted by A. Wallner, firstname.lastname@example.org
on April 25, 2002 at 21:08
i have encountered the same problem, and yes, nobody seems to know why it's like this, not even nokia. my os is win xp, and my epocroot is at c:\programs\symbian\6.0\nokiajava. i have also tried it with the examples, specifically blackbook. i tried to open it from the emulator but it crashes. the emulator interface appears but closes immediately. the message is that there was an "exception in thread 'main' java.lang.NoClassDefFoundError: BlackBook", or as in the case of the hello ap, "exception in thread 'main' java.lang.NoClassDefFoundError: Hello".
what on earth is happening?
i have compiled the source files and i have the corresponding .class files in the erj\Hello directory.
I had this problem and I realized that using j2sdk1.4.1_01/bin/javac to compile the *.java files was generating byte codes for a different jvm. When I added -target 1.1 (javac -target 1.1) to the command it worked. Now I have a different problem. :(
Use SDK 1.1.8 and the right path