• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I transfer other files with the .jar using Java Web Start ?  RSS feed

 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I made a tiny app that saves notes to a folder within the classes directory where I created the .jar file.
Let's say I wanted to add this to Java Web Start.Would I be able to transfer the jar file within a folder(s) or would I have to change the program
so that It creates a new folder to save texts In automatically ?
Basically , can jar files be transferred with other files/folders ?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use Java WebStart, then you have no control over where jar files are stored - JWS does that for you (in some location that your code should not accessing anyway). But why would you want to save files in the classes directory, or together with the jar files? you should choose some location that makes sense for the user, like the standard Documents folder.
 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying.
I guess I was thinking I could ensure the program would work If the files get saved In the same directory as the Jar without having to give an absolute path etc.Standard Documents sounds pretty safe.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!