wood burning stoves*
The moose likes JNLP and Web Start and the fly likes About java web start: how to access(read/write) resource file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "About java web start: how to access(read/write) resource file" Watch "About java web start: how to access(read/write) resource file" New topic
Author

About java web start: how to access(read/write) resource file

Patrick Zhang
Greenhorn

Joined: Apr 20, 2010
Posts: 2
I want to build a program using java web start. But i find it's difficult to access config files(.XML etc.) because JWS only allow signed-jar.

Could any one help me?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Welcome to the Ranch.

Where are the config files located? If they are bundled inside your application jar you need not bother about the permissions.
We have a forum dedicated for JNLP and JWS. I will move this thread there for you.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Patrick Zhang
Greenhorn

Joined: Apr 20, 2010
Posts: 2
Maneesh Godbole wrote:Welcome to the Ranch.

Where are the config files located? If they are bundled inside your application jar you need not bother about the permissions.
We have a forum dedicated for JNLP and JWS. I will move this thread there for you.


Tks vy much for your quick reply. the config files is published with application. If i put them into jar, could i write them when app is running? and how?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Tks vy

Please UseRealWords

If you want to write to the file, then I am afraid there is no workaround for the signed jar.
In case you need help signing your jar, this will help you get started http://java.sun.com/docs/books/tutorial/deployment/jar/index.html
 
 
subject: About java web start: how to access(read/write) resource file