• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Patrick Zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!