C*****s 发帖数: 116 | 1 初级问题
我把这几个文件跟我的java程序放在一个文件夹里面
FileInputStream in = new FileInputStream("in.txt");
FileOutputStream out1 = new FileOutputStream("out1.txt");
FileOutputStream out2 = new FileOutputStream("out2.txt");
但是运行的时候他说
run:
IO error: java.io.FileNotFoundException: in.txt (The system cannot find the
file specified)
求助呀,怎么搞的呢 |
g*****g 发帖数: 34805 | 2 try
java -classpath . yourprogram
【在 C*****s 的大作中提到】 : 初级问题 : 我把这几个文件跟我的java程序放在一个文件夹里面 : FileInputStream in = new FileInputStream("in.txt"); : FileOutputStream out1 = new FileOutputStream("out1.txt"); : FileOutputStream out2 = new FileOutputStream("out2.txt"); : 但是运行的时候他说 : run: : IO error: java.io.FileNotFoundException: in.txt (The system cannot find the : file specified) : 求助呀,怎么搞的呢
|
C*****s 发帖数: 116 | 3 我用的netbeans,怎搞
【在 g*****g 的大作中提到】 : try : java -classpath . yourprogram
|
g*****g 发帖数: 34805 | 4 把. 放进系统的 path和classpath里。
【在 C*****s 的大作中提到】 : 我用的netbeans,怎搞
|
m******t 发帖数: 2416 | 5
what does this have to do with path?
【在 g*****g 的大作中提到】 : 把. 放进系统的 path和classpath里。
|