G
Gast
Gast
Hallo.
Ich will unter Windows 98SE mit Java (Version 1.5.0 Update 16 installiert) zur Übung, Notepad unter Windows starten.
Das Programm sieht wie folgt aus:
Leider bekomme ich immer diese IOException:
Der Pfad ist auf jedenfall in Ordnung. Wechsle ich in die DOS-Ebene unter Windows kann ich mit "C:\Windows\notepad.exe" das besagte Programm starten!
Danke im Vorraus für eure Hilfe
Ich will unter Windows 98SE mit Java (Version 1.5.0 Update 16 installiert) zur Übung, Notepad unter Windows starten.
Das Programm sieht wie folgt aus:
Code:
........
command = "command /C C:\\Windows\\notepad.exe";
Runtime rt = Runtime.getRuntime ();
Process pr = rt.exec (command);
Leider bekomme ich immer diese IOException:
Code:
java.io.IOException: CreateProcess: command /C "C:\Windows\notepad.exe" error=2
Der Pfad ist auf jedenfall in Ordnung. Wechsle ich in die DOS-Ebene unter Windows kann ich mit "C:\Windows\notepad.exe" das besagte Programm starten!
Danke im Vorraus für eure Hilfe