Header Sep
Java Tips, Tricks & Code
 
My Rating Score
Login to rate page

March 2005
Quick MIDlet install using Sony Ericsson J2ME SDK

[Back]

There are lots of ways to install MIDlets on a Sony Ericsson phone. You can use the InfraRed, Bluetooth, Serial or OTA to install jar/jad files. The Sony Ericsson J2ME SDK has some cool built-in device tools that ease the process of transferring MIDlets from PC to phone using your choice of local connectivity.

Before you start transferring a MIDlet:

Make sure that the Connection Proxy is configured using the correct COM port. Use one of the following methods:

1. Start/Programs/Sony Ericsson/J2ME SDK/Connection Proxy Settings. Change the COM parameter in the configuration file to the port you've assigned to the IrDA/Blutooth/Serial connectivity.

2. Start/Programs/Sony Ericsson/J2ME SDK/Connection Proxy to start the GUI-based application and in the configuration button, choose the COM port.

Transferring MIDlets:

1. GUI-based:
Start/Programs/Sony Ericsson/J2ME SDK/DeviceExplorer will start the Device Explorer, giving you a window pane where you can "drag and drop" MIDlets from the PC drive to the device.

2. Command-line based:
ejava [ flags ] commands [ args ]

See the SDK online documentation for details. By default file:///C:/SonyEricsson/J2ME_SDK/docs/sdk/OnDeviceDebug.html and choose "Command Line Tools".

Creating a shortcut to the command-line option above:
You can also create a shortcut enabling the use of the standard Windows "Send To" feature by right-clicking the jar/jad file in the File Explorer (or any other file manager).

1. Create a batch file, i.e. a text file with the extension .bat, with the text "javascript:void(null);".

This batch file can be saved anywhere on the computer.

2. Create a shortcut (.lnk) to the batch file and transfer it in the "SendTo" folder that usually resides in C:\Documents and Settings\<userid> directory.
Note: The SendTo folder may be a hidden folder.

Now right-click your jad/jar files, choose "Send To" and select the shortcut to your batch file and the MIDlet will be installed on the device.

 

My Rating Score
Login to rate page