I am really a new comer for this field and when i developed my very first J2ME app in netbeans IDE, I wanted it to install in my phone. So just made a little googling and came up with a general idea.
Before googling when i explored the packages created by netbeans IDE, i found in the 'dist' folder there are jar and jad files. SO i directly send them to my phone and tried to install. But while the process is in the half way installing, it gave the massage 'invalid operation'.

But after googling i found out that i need to install the relervent SDK of my phone and through it i should make my jar and jad files. The SDK provides a bunch of tools for controlling and manipulating the mobile device. For example, the
So, the steps should be:
1) Install the SDK.
2) If using Netbeans, Right click on your project and Go properties->Platform
3) Make sure that you have set the right Emulator Platform set (in my case, it is "
4) Under Deploying, select "File Copy", and then pick a destination.
5) Press OK. Go back and right click on your project but this time, press deploy. You should find it will compile your JAR and JAD. From here, you have 2 installation methods:
a) Using the SDK of your phone, directly install the Midilet to your phone using the JAD and JAR files.
b) Using whatever transfer method you have handy (USB, Bluetooth or Infrared), send the JAR file to your phone. In my case, Right-clicking on the JAR and going "Send to->Bluetooth device" works fine. In some cases, if you have installed the extra software for your phone, you may have a "Send to->Usb Device->My Phone" or something. Alternatively, the PC Suite it comes with may help you here.
I got this information from the oficial sun forum site http://forums.sun.com/