🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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?
#647
Author: Rong
Date: Tue, 25 Mar 2003 03:31
5 lines
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?
#648
Author: Tor Iver Wilhelmsen (TeamB)
Date: Tue, 25 Mar 2003 08:00
7 lines
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?
#649
Author: Rong
Date: Tue, 25 Mar 2003 08:57
2 lines
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