You are not logged in.

  • Login

Dear visitor, welcome to Coder Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, June 16th 2010, 7:18pm

Datei durch BlueJ-Methode öffnen?

Ist es möglich eine Methode in BlueJ zu schreiben mit der man eine Datei auf der Festplatte aufrufen kann,z.B. eine .exe oder .bat? Wenn ja, wie?

2

Wednesday, June 16th 2010, 7:48pm

so vielleicht? :)

Source code

1
2
 private static Runtime rt = Runtime.getRuntime();
rt.exec("pfad_zu_der_Datei");

3

Wednesday, June 16th 2010, 7:49pm

Als Hinweis: in BlueJ schreibst du Java-Programme...
Falls dir der Code oben nicht hilft, such doch mal nach "Java+call+exe" (oder ähnlichen Kombinationen)

4

Wednesday, June 16th 2010, 8:20pm

he danke mit throws und import java.io.* funzts!

5

Wednesday, June 16th 2010, 10:35pm

he danke mit throws und import java.io.* funzts!

wenn du meinst :D

6

Thursday, June 17th 2010, 10:03pm

ich weiss bin n blutiger anfänger

Similar threads

Social bookmarks