【发布时间】:2012-05-27 15:18:46
【问题描述】:
我在我的 java web 应用程序中使用了以下 c'tor
public File(String pathname)
例如:
文件 =new File("1.txt");
然后我在路径中得到以下文件:
C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\bin\1.txt
我的问题:为什么这是使用上述 c'tor 时的默认文件夹,以及是否有任何选项可以默认更改项目文件夹。
谢谢
【问题讨论】:
-
您无法通过 JoopEggen 的回答设置文件,那么您为什么接受他的回答?
标签: java file web-applications netbeans