• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Phil Couas
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic