Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create folder

 
mirko74
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
is it possible to create a folder structure says some temp folder in drive c:\folder1\subfolder using java web start technology?
Thank you
 
Paul Clapham
Sheriff
Posts: 21297
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, it's just Java. The mkdir() and mkdirs() method of java.io.File will work.
 
mirko74
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry I didn't explain myself. I have a JNLP file, which launches a program and I was wondering if there was some easy way to create a folder by adding a few lines to the JNLP.
 
Paul Clapham
Sheriff
Posts: 21297
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand. The JNLP file doesn't do anything, it just describes the application. You can read its specs for yourself and find there isn't anything about creating folders there.

But really I don't understand the requirement. What would you expect to happen, and when would you expect it to happen? Every time the application is downloaded? Every time the JNLP file is accessed, even if that doesn't result in a new download?

And why can't you just have your application create this folder?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic