aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get default directory
 
Similar Threads
Pls suggest the IDE which consumes less memory
Swing/ JFC/ Java script
POST and GET method
Deciding user dir when in root
chapter 10 question number 11 k&b book (on jar files)