aspose file tools*
The moose likes JNLP and Web Start and the fly likes signed jar not acces to Desktop for icon creation by my java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "signed jar not acces to Desktop for icon creation by my java program" Watch "signed jar not acces to Desktop for icon creation by my java program" New topic
Author

signed jar not acces to Desktop for icon creation by my java program

Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
Hi,

I want implement my own Icon on Desktop, so i made following step :
1 Into my jnlp file, i have added

<resources>
<j2se version="1.6+"/>
<jar href="webstart/lib/tsapp-1.0.jar" main="true"/>
<security>
<all-permissions/>
</security>
</resources>
<application-desc main-class="javawebstart03.TSApp">
<argument>http://192.168.0.4</argument>
</application-desc>


2 I have signed jar from MAVEN, so into my MANIFEST.MF i see
Name: javawebstart03/TSApp.class
SHA1-Digest: /vELM+EfSHoxQWoS3UUrxn36JPw=

BUT
When application is launched i see error message "access denied (java.io.FilePermission C:\Documents and Settings\USER1\Desktop\LIEN INTERNET APPLI.URL write) " (java.io.FileWriter)
IF i launch same application from standalone java program, that's ok !!

Where is my mistake ?
Regards
Phil



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: signed jar not acces to Desktop for icon creation by my java program