This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Write a file to filesystem

 
Ricardo Queiros
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I save a file on the client's file system using a JWS application without have to launch the saveFileDialog method of the javax.jnlp.FileSaveService class?

Best regards
 
Alexander Kober
Ranch Hand
Posts: 32
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to access the file system (for read or for writes does not matter) without the JWS Services you need to ask for full permissions when starting the application. You can do that by adding <all-permissions/> to the security section of your JNLP file (note, however, that your classes have to be signed for this).

Unfortunately, there is no finer-grained security concept for Java Webstart. You can either have no permission at all, forcing you to use the services for everything, or request all permissions even if you don't really need them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic