Skip to main content

problem about midlet installation in phoneme

4 replies [Last post]
Joined: 2007-04-02

i can start a web server, and install a midlet application with command

but while i try to use installMidlet hanoi.jad(not using http), it returns a error

D:\phoneme\midp\bin\i386>installMidlet.bat photoalbum.jad
Error installing the suite: storage_delete_file: Permission denied, .\..\..\appd
b\installer.tmp storage_delete_file: Permission denied, .\..\..\appdb\insta
- .unknown...unknown.(), bci=0
- .unknown...unknown.(), bci=1
- com.sun.midp.installer.Installer..unknown.(), bci=579
- com.sun.midp.installer.Installer.performInstall(), bci=151
- com.sun.midp.installer.Installer.installJad(), bci=42
-, bci=358
-, bci=5

what's wrong?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-10-18

I could not reproduce this error so I can't say for sure what's wrong.
"appdb\installer.tmp" is a temporary file where the downloaded (or copied when installing from a file) jar is saved; if installMidlet can't create/write/etc. this file, such error can occur. If "installer.tmp" still exists in "appdb" after exiting from installMidlet, you may remove this file manually and try to install the suite again.
Also please note that when installing from jad, its MIDlet-Jar-URL attribute must contain a file path (but not an http URL!), it may be relative like "MIDlet-Jar-URL: HelloMIDlet.jar".

Joined: 2007-04-02

I have fixed that MIDlet-Jar-URL, i delete installer.tmp, then use installMidlet hanio.jad, but it still returns the same error, but there is a new installer.tmp now, of the same size as hanio.jar, so i am sure the installer can find the right jar, but why it still return such error.

my jad is:
MIDlet-Name: Hanoi
MIDlet-Version: 2.0
MIDlet-Vendor: Sun Microsystems, Inc.
MIDlet-Description: Test for MIDP speed
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0
MIDlet-1: Hanoi, , example.hanoi.Hanoi
Hanoi-runcount: 10
MIDlet-Jar-URL: hanoi.jar
MIDlet-Jar-Size: 4996

i can install this midlet and succeed using tomcat server,
all the difference is MIDlet-Jar-URL,

so can installMidlet support installation just by file(without using the server)?

Joined: 2006-10-18

installMidlet supports installation from file, but this feature is new for the MR2 release, it may contain some bugs that were not found yet.
What OS from Windows family do you use? Is the file system where "appdb" is located local or mounted from a network?
Does the same error occur if you try to install directly from *.jar instead of *.jad?

Joined: 2007-04-02

my os is win xp sp2, it support install from file, but in fact it doesn't work in my os,so can it work on your system?