Thread View: borland.public.jbuilder.java.api
3 messages
3 total messages
Started by Rong
Tue, 25 Mar 2003 03:31
how to get current directory in java?
Author: Rong
Date: Tue, 25 Mar 2003 03:31
Date: Tue, 25 Mar 2003 03:31
5 lines
1193 bytes
1193 bytes
hello,everyone, I have a problem that how to get current directory in java? for example: I have a class which name is MyFirst.class in "c:\javaproject" directory,and how to get "c:\javaproject" directory in MyFirst.class? can anyone tell me? thanks in advance.
Re: how to get current directory in java?
Author: Tor Iver Wilhelmsen (TeamB)
Date: Tue, 25 Mar 2003 08:00
Date: Tue, 25 Mar 2003 08:00
7 lines
1308 bytes
1308 bytes
"Rong" <meixiaolong@163.net> writes:
> hello,everyone, I have a problem that how to get current directory in java?
> for example: I have a class which name is MyFirst.class in "c:\javaproject"
> directory,and how to get "c:\javaproject" directory in MyFirst.class?
System.getProperty("user.dir");
Re: how to get current directory in java?
Author: Rong
Date: Tue, 25 Mar 2003 08:57
Date: Tue, 25 Mar 2003 08:57
2 lines
1116 bytes
1116 bytes
thanks for your help ,your suggestion is very good. thank you so much.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads