• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Apparent security problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jar file that works great when run from the command line. However, when downloading through webstart it throws an exception:






Also, it gives me a similar error when I try to write files:






So, I then thought that it was a signing issue. I used javasigner to sign the jar but I still have the same problem. What is the correct way to do it for this particular application? Maybe I didn't do it right? Is there a step-by step somewhere?

Any ideas?
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

When you download the application through webstart, does it give you a dialog box to confirm that you want to trust the signed application from a third party?

You have to click yes to this to allow the application to be able to do file system stuff on the computer, otherwise it will run with lots of restrictions.

The signing a jar thing was mostly taken care of when I started here. We have an ant task that does it. Happy to show you that piece of the ant script if you think it will help you.

Cheers, Jared.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Webstart adds extra sandbox security to the application when it is running. In order to access the file system or other IO, you need to set security permissions in the JNLP file itself.
Try adding a:

<security>
<all-permissions/>
</security>

element to your JNLP file
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic