• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the users directory path  RSS feed

 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get the directory that the java file is being run from? I am writing some code that has to do with icons(it is not an applet), I don't want to have to hard code the paths.
Thanks all for the help
Cardwell
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the methods in the java.io.File class
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!