• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems using bouncycastle and proguard  RSS feed

Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im trying to encrypt something with RSA, but when I try to run the midlet
with the WTK I get an uncaught exception:
java/lang/NoClassDefFoundError: java/math/BigInteger: Cannot create class in system package

Im using eclipseME, proguard and WTK2.2, and running winXP.

I tried to follow "pikmasters" guide, but without luck. Perhabs im just
tired.. anyways, any suggestions ect. would be greatly appriciated.

As I read pikmasters howto I have to do the following:

My project is in: c:\work\MyMIDlet\MyMIDlet. And I've got a bin, deployed, src and a verified directory in the ...\MyMIDlet directory.

1. Make symbolic link in WTK apps/${ProjectName} to
${EclipseWorkspace}/${ProjectName}/src directory
2. Build code with Eclipse (done automatically when saving the project)
3. Switch (ALT+TAB) to WTK, File->Open Project
4. Project->Package->Create obfuscated package
5. Project->Run

How do I make a symmbolic link ??? and do I have to do anything else?

Another way (more elegant, as it doesn't require to switch from Eclipse is to
use Eclipse "Run->External tools" option.

1. Edit your ${ProjectName}.jad file, to have properly set MIDlet-1: line with
third argument as entry point to MIDlet (class name to run at start)
2. Build code
3. If no errors found, right click on the Project name in Navigator, select
J2ME->Create obfuscated package
4. Run->External tools->External tools
Name: enter some name, e.g. WTK-runmidlet
Location: enter wtk directory/bin/runmidlet
Working directory: /tmp
$Arguments: "${project_loc}/deployed/${project_name}.jad"
5. Apply, then Run

ad 4) Do I have to copy my (2nd) MyMIDlet directory to the WTK directory?
do I have to make an extra directory in the (2nd) MyMIDlet directory called "tmp" ? and what do I have to write in the �Arguments: ... line?

/Svend Rost

edit: added more information
[ June 29, 2005: Message edited by: Svend Rost ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!