Results 1 to 3 of 3
- 09-28-2007, 09:03 AM #1
Member
- Join Date
- Jun 2007
- Posts
- 5
- Rep Power
- 0
finding Operating System specific data
Hi there,
I'm a newbie to Java so please, bare with me.
I have to write an application that is going to store user preferences.
To store them, I need to find out the user's home directory on any platform this app can run on (Windows, Unix, Linux)
For example, on Windows, I'd need to know the user's My Documents folder
Can anybody help ?
Franck
- 09-28-2007, 11:18 AM #2
Check getProperties() method in this class. "user.home" system property is what you can obtain from Java. This will work for all OSes supported.
- 09-28-2007, 03:27 PM #3
Member
- Join Date
- Jun 2007
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Main method throwing specific Exception
By bugger in forum New To JavaReplies: 5Last Post: 05-13-2009, 02:34 PM -
How do I modify a specific component within a active internalframe?
By LearningJavaASAP in forum AWT / SwingReplies: 1Last Post: 04-24-2008, 06:35 PM -
Select specific cell
By Echilon in forum New To JavaReplies: 1Last Post: 01-01-2008, 07:47 AM -
Rejecting connections from a specific IP
By javaplus in forum NetworkingReplies: 2Last Post: 12-21-2007, 02:28 PM -
Tracking Operating System
By Mansi in forum NetworkingReplies: 2Last Post: 07-23-2007, 01:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks