This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java Micro Edition and the fly likes Installation security error !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Installation security error !!!" Watch "Installation security error !!!" New topic
Author

Installation security error !!!

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

I'm setting API permissions for my application, and it's saying "Installation security error, unable to install" when i try to install on my phone

I'm using NetBeans, can anybody advice me please ...

Thanks in advance ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
How are you trying to install - from server or are you transferring from PC with bluetooth?

What phone are you using?

Are you transferring the jad or the jar? If you are sending the jar, try sending the jad instead (and in some cases you'll only succeed if you use an absolute value for the 'MIDlet-Jar-URL' attribute.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

I'm sending from the cable (or bluetooth) and my phone is Nokia 6630 and I'm sending the JAR not the JAD file.

I will try to send the JAD only and reply you but can you please tell me how to use the MIDlet-Jar-URL attribute ?

Thanks in advance ...
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
On some phones, installation will not work from the jar - only from the jad.

The MIDlet-Jar-URL attribute in the jad tells the phone where to retrieve the jar from. If you're retrieving the app from a server, you should set the MIDlet-Jar-URL to 'http://wwwhatever.../yourApp.jar' - but seeing as you're sending it locally, you're best leaving the MIDlet-Jar-URL as 'yourApp.jar'.

If you have no luck sending the app over cable/bluetooth, stick the jad an jar on the internet somewhere and go that the url on your phone's browser (remember to set the jad's MIDlet-Jar-URL to 'http://wwwhatever.../yourApp.jar' tho...).

Cheers,
James
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
By the way, in Netbeans, if you right click on your project node and click on properties you will find where to change the midlet attributes and other stuff...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Installation security error !!!