Blackberry java valid directories

31 views Asked by At

Is there a way in Blackberry Java (5.0 and later) getting the the valid directories? Like for instance, the home directory is "file:///store/home/user/", is there any method like getHomeDirectory() and will return that path?

If none, would the hard-coded path can be applied to all version of Blackberry Java?

Thanks in advance!

1

There are 1 answers

2
DavidPostill On

You can do this using System Properties:

The System class maintains a Properties object that describes the configuration of the current working environment. System properties include information about the current user, the current version of the Java runtime, and the character used to separate components of a file path name.

System.out.println(System.getProperty("user.home"));