wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes get default directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "get default directory" Watch "get default directory" New topic
Author

get default directory

qionghua yang
Ranch Hand

Joined: Oct 31, 2000
Posts: 68
I am using Jbuilder4. I would like to get the default directory. Does anyone know how to get the default?
Thanks!
qionghua
Mark Savory
Ranch Hand

Joined: Feb 08, 2001
Posts: 122
I'm using JBuilder35(maybe it behaves the same in JBuilder 4) and the default directory is /JBuilder35/bin - meaning: if I was to read a properties file without specifing a directory, this is where it would be read from.
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
You can find what your jvm conciders the current working directory by using System.getProperty("user.dir")

------------------
Hope This Helps
Carl Trusiak


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
qionghua yang
Ranch Hand

Joined: Oct 31, 2000
Posts: 68
Thanks a lot, Mark and Carl. I try and I get what I want. Thanks!
qionghua
 
GeeCON Prague 2014
 
subject: get default directory