File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Deploy a  signed J2me midlet on a real phone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Deploy a  signed J2me midlet on a real phone" Watch "Deploy a  signed J2me midlet on a real phone" New topic

Deploy a signed J2me midlet on a real phone

ying lam
Ranch Hand

Joined: May 17, 2004
Posts: 85
Can someone help me sign and deploy a midlet on a real phone.

I already purchase a code signing certificate from CA, following the steps to sign my midlet. But when i deploy it on a phone, I got a Security Exception.

I appreciate if anyone can help.
Michael Yuan
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Hello yinglcs yinglcs,

Please change your display name to conform to JavaRanch's naming policy, which you had agreed when you signed up:

About your question: What tool did you use to sign the MIDlet? What is the process? Did it work on emulators?

Seam Framework:
ying lam
Ranch Hand

Joined: May 17, 2004
Posts: 85
I am using the ktoolbar of WTK 2.1 to sign my midlet.
I also have tried using the Nokia j2me tool kit 2.0. But it does not work either.

But I build my jar/jad using ANT instead of ktoolbar/Nokiai j2me tool kit.
Does that make a difference?

Thank you.
Punit Raizada
Ranch Hand

Joined: Mar 20, 2004
Posts: 156

I believe that if you are signing the MIDlet from the WTK and installing on the device then it will not work. The keys generated by the WTK are only for testing on the emulator.

To deploy a signed MIDlet on the device you need the key generated by some one like Versign or Thawte.

Iam in the same stage right now so please feel free to correct me if iam wrong.

Can anyone provide me some info on the process that is involved in getting a certificate. I have finished testing my MIDlet suite ( in the untrusted domain)... My midlet accesses the VideoControl.getSnapShot() method and its very annoying to have a popup every time.

Iam looking at how to get my MIDlet signed but if anyone could send me a few pointers .. it would be very helpful


SCJP 1.4
Everything that can go wrong will go wrong -Murphy
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Deploy a signed J2me midlet on a real phone
Similar Threads
How to try on real device ?
OTA MIDLet deployment - Back to basics
phone call
How to turn the phone to silent mode in J2ME?
Installing java Wireless toolkit