S
Sebastian Berger
Hi,
I am currently trying to setup my environment to write a simple MIDlet
which does some crypto-stuff.
Therefore I downloaded the Lightweight API of Bouncycastle and installed
EclipseME.
First of all I wrote a simple test-midlet (only prints Hello World) to
test my J2ME environment in Eclipse. It works quite well.
Now I wrote a very primitive MIDlet doing some encryption. I add the
cdlc_classes.zip to my build-path and there were no errors shown in my
Eclipse-Environment. I started my MIDlet using the WTK standard emulator
and it wroked quite well until I tried to use the crypto-stuff. When I
try to do some encryption I get the following output in the Eclipse-Console:
Running with storage root DefaultColorPhone
java.lang.NoClassDefFoundError: org/bouncycastle/crypto/BlockCipher
at CryptoTest.commandAction(+9)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
Execution completed.
721451 bytecodes executed
28 thread switches
751 classes in the system (including system classes)
3891 dynamic objects allocated (111288 bytes)
3 garbage collections (91280 bytes collected)
So I get a class not found exception.
I already installed the proguard obfuscator and configured it like
described on the eclipseME homepage, but it didnt help. Do you have any
suggestions?
Thanks for your help,
Sebastian
I am currently trying to setup my environment to write a simple MIDlet
which does some crypto-stuff.
Therefore I downloaded the Lightweight API of Bouncycastle and installed
EclipseME.
First of all I wrote a simple test-midlet (only prints Hello World) to
test my J2ME environment in Eclipse. It works quite well.
Now I wrote a very primitive MIDlet doing some encryption. I add the
cdlc_classes.zip to my build-path and there were no errors shown in my
Eclipse-Environment. I started my MIDlet using the WTK standard emulator
and it wroked quite well until I tried to use the crypto-stuff. When I
try to do some encryption I get the following output in the Eclipse-Console:
Running with storage root DefaultColorPhone
java.lang.NoClassDefFoundError: org/bouncycastle/crypto/BlockCipher
at CryptoTest.commandAction(+9)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
Execution completed.
721451 bytecodes executed
28 thread switches
751 classes in the system (including system classes)
3891 dynamic objects allocated (111288 bytes)
3 garbage collections (91280 bytes collected)
So I get a class not found exception.
I already installed the proguard obfuscator and configured it like
described on the eclipseME homepage, but it didnt help. Do you have any
suggestions?
Thanks for your help,
Sebastian