where is my working directory

In my java application I use current working directory to get files and directories, for example new File("afile.txt") or new File("subdirectory"). There is no any problem with VisualCafe and other Java editor. But In forte I could not get current working directory.

Can anybody tell how to get working directory?

thanks

[346 byte] By [Li,Fei] at [2007-11-25 16:47:12]
# 1

Hello,

I think you can find out current working directory like

String curdir = System.getProperty("user.dir");

In Forte it should be:

<FORTE_HOME>/bin

Standa

> Fei Li wrote:

> In my java application I use current working directory to get files and directories, for example new File("afile.txt") or new File("subdirectory"). There is no any problem with VisualCafe and other Java editor. But In forte I could not get current working directory.

>

> Can anybody tell how to get working directory?

>

> thanks

>

Lukes,Stanislav at 2007-7-2 23:26:53 > top of Java-index,Archived Forums,Sun ONE Studio 4...