Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installation security error !!!

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic