本帖最后由 尹兆国 于 2014-6-14 15:40 编辑
- class RuntimeDemo
- {
- public static void main(String[] args) throws Exception
- {
- Runtime r = Runtime.getRuntime();
- Process p = r.exec("notepad.exe FileWriterDemo3.java");
-
- //Thread.sleep(4000);
- //p.destroy();
- }
- }
复制代码 RuntimeDemo.java与FileWriterDemo3.java明明在一个目录下,为什么会弹出警告,说找不到FileWriterDemo3.java
(毕老师java基础 day18 RuntimeDemo.java)
|
|