Skip to main content

problem about midlet installation in phoneme

4 replies [Last post]
river2060
Offline
Joined: 2007-04-02
Points: 0

i can start a web server, and install a midlet application with command
installMidlet http://127.0.0.1/jad/example/manyballs.jad,

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
java.io.IOException: storage_delete_file: Permission denied, .\..\..\appdb\insta
ller.tmp
- .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
- com.sun.midp.scriptutil.CommandLineInstaller.run(), bci=358
- java.lang.Thread.run(), bci=5

what's wrong?

Reply viewing options

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

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".

river2060
Offline
Joined: 2007-04-02
Points: 0

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)?

alexey_z
Offline
Joined: 2006-10-18
Points: 0

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?

river2060
Offline
Joined: 2007-04-02
Points: 0

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?