How to install Java ME application on Samsung phone?

My phone is supposed to work: JavaTM: MIDP 2.0, CLDC 1.1 based applications. However, no matter what application I try to install on it, I get an error message: Downloaded JAR are invalid

I tried to create Java ME projects on Netbeans using MIDP 2.0 and CLDC 1.1 as indicated. The applications are simple, using the automatically generated code that comes with Netbeans to display the greeting of a world message. However, it works in the emulator, but when I transfer .JAR to mobile, I get the above error.

This is the model and specifications of the phone.

Does anyone who has developed any Java ME applications for this or any similar Samsung phones have any idea what I need to do?

Edit: jad file contents:

 MIDlet-1: Midlet, , hello.Midlet MIDlet-Jar-Size: 1565 MIDlet-Jar-URL: MobileApplication1.jar MIDlet-Name: MobileApplication1 MIDlet-Vendor: Vendor MIDlet-Version: 1.0 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 
+4
source share
2 answers

Although many phones offer additional MIDlet installation methods, the only standard way that they all must support according to the JavaME specifications is:

  • put jad and jar on the web server somewhere, someone can access them. Select a server that your mobile network operator is not blocking.

  • open the phone’s web browser. go to jad file url.

  • the web browser should download the jad file, understand what it is, make the phone install the program.

  • The phone’s Internet connection should use the cellular network during installation (without wi-fi ...)

+2
source

Perhaps your name is too big. "MobileApplication1" has 18 characters. Try reducing both names (jad and jar) to equal or lower than 13, for example: MobileApp.jad and MobileApp.jar
Place both files on the SD card and open the Jad file.

+1
source

Source: https://habr.com/ru/post/1435727/


All Articles