EclipseME and BouncyCastle: Configuration

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
 
M

michen

Hi Sebastian,
take a look for the structure of your library. You also have to import
the sources in the src package.

maybe that helps
br
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top