Skip to main content

Exception installing and running MIDlet in MR2 binary bundle (b10) - Window

2 replies [Last post]
manojm_singh
Offline
Joined: 2007-10-17
Points: 0

Hi i have developed a simple media player application in j2me whcih will play a media file. I am following this : https://meapplicationdevelopers.dev.java.net/how_to_run.html

Running phoneME Feature From the Command Line : But while installing midlet i am facing an exception :

C:\binary\bin\win32_x86_javacall_mvm>bin\i386\installMidlet file://C:\WTK25\apps\MediaPlayer\bin\MediaPlayer.jad
Cannot load background image from phone.bmp. Using default.
[CreateEmulatorWindow] Window size 720x700
REPORT: JavaTask() >>

javacall_lifecycle_state_changed() event is JAVACALL_LIFECYCLE_MIDLET_STARTED status is JAVACALL_OK
Uncaught exception: java.lang.IllegalArgumentException: invalid port format
- .unknown...unknown.(), bci=389
- .unknown..(), bci=109
- com.sun.midp.installer.Installer.getUrlScheme(), bci=11
- com.sun.midp.scriptutil.CommandLineInstaller.run(), bci=137
- java.lang.Thread.run(), bci=5
javacall_lifecycle_state_changed() event is JAVACALL_LIFECYCLE_MIDLET_SHUTDOWN status is JAVACALL_FAILED
REPORT: JavaTask() <<

Done JavaTask

An imulator is invoked showing the info "This application does not use screen and runs in the background"

And after that when i did "
C:\binary\bin\win32_x86_javacall_mvm>bin\i386\runMidlet 1" (this is my first midlet)

its throwing an exception : and the excption is ;

C:\binary\bin\win32_x86_javacall_mvm>bin\i386\runMidlet 1
Cannot load background image from phone.bmp. Using default.
[CreateEmulatorWindow] Window size 720x700
REPORT: JavaTask() >>

javacall_lifecycle_state_changed() event is JAVACALL_LIFECYCLE_MIDLET_STARTED status is JAVACALL_OK
REPORT: Suite number out of range
Suite number out of range
REPORT: The MIDlet suite could not be run.
The MIDlet suite could not be run.
javacall_lifecycle_state_changed() event is JAVACALL_LIFECYCLE_MIDLET_SHUTDOWN status is JAVACALL_FAILED
REPORT: JavaTask() <<

Done JavaTask

wht to do?
Plz help...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
emil_kvarnhammar
Offline
Joined: 2007-05-20
Points: 0

Hi,

Your MIDlet was not properly installed.

Try: bin\i386\installMidlet file:///C:\WTK25\apps\MediaPlayer\bin\MediaPlayer.jar

instead.

Note that:

bin\i386\installMidlet file:///C:\WTK25\apps\MediaPlayer\bin\MediaPlayer.jad

will only work when you have an absolute path (file:/// or http:// etc.) in the MIDlet-Jar-URL property of your JAD.

If the MIDlet is installed correctly you should get an output similar to : "The suite was successfully installed". After that, you will be able to start it using runMidlet.

Good luck!

best regards
Emil

manojm_singh
Offline
Joined: 2007-10-17
Points: 0

Hi Emil. Thanks for reply. Its now working fine. But one problem is there and that is my media file is of 4 seconds in duration but its unable to play the file completely Its playing for only 1 senconds. Can plz tell me the reason for this? I checked the media file exteranlly its actually of 4 senconds.

Thanks in advance...