Skip to main content

java.lang.ClassNotFoundException

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
3900107
Offline
Joined: 2012-04-17
Points: 0

Hello all,
I have compiled phoneme_advanced-mr2-dev-src-b97-20_nov_2008 for my own board based on a arm.
I have compiled phoneMe from cdc/build/linux-arm-generic that is the makefile for arm and I use this single line:
JDK_HOME=/usr/lib/jvm/java-6-sun \
CVM_TARGET_TOOLS_PREFIX=/work/java/4.1.1/bin/arm-linux- \
J2ME_CLASSLIB=foundation \

After compilation I have copied the binaries cvm and the HelloWorld test application on my board,cvm and HelloWorld in /csa/java/bin directories and all the lib in /csa/java/lib
When I start cvm with cvm HelloWorld I have the following error:
[root@CSA java]$cvm -cp /csa/java HelloWorld
java.lang.ClassNotFoundException: HelloWorld
at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
at sun.misc.Launcher$AppClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

but when I start cvm with testclasses.zip HelloWord,I have no error.

Do you have some idea what I do wrong or what is the problem ?
Thanks in advance for any help.