![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Der JavaRunner benötigt lediglich eine einfache Textdatei mit dem Namen
"java.run". Diese Datei muß den Namen der Haupt-Klasse enthalten, der mit
dem Namen des JAR-Archives identisch sein muß. Im beiliegenden Beispiel heißt die
auszuführende Klasse "Example" und das JAR-Archiv "Example.jar". Also enthält die
Datei "java.run" lediglich das Wort "Example". Diese Textdatei läßt sich mit jedem normalen Editor erzeugen, der reines ASCII-Format speichern kann, wie z.B. "emacs", "Notepad" oder "vi". |
The JavaRunner requires only a simple text file "java.run". This
file has to include the name of the main class of the Java® program. The
main class and the JAR-archive should have the same name. The included Java®
example shows how it has to be done: The name of the class is "Example" and the
name of the JAR-file is "Example.jar". So the text file "java.run" consists
only of the word "Example". To create this text file, you can use every simple text editor which is able to write files in ASCII-format (like "emacs", "Notepad", "vi"); |
Da unter BeOS® noch keine offizielle Java®-Portierung existiert, wird hier vom JavaRunner Kaffe unterstützt. Dabei handelt es sich um ein Open Source Javaclone, der in einigen Punkten vom Original abweicht. | Because there doesn't exists an official port of Java®, the JavaRunner uses Kaffe. This is an independent open source Javaclone. |
Um mit Kaffe problemlos arbeiten zu können, wird die Datei Klasses.jar benötigt, die sich im Kaffe-Paket befindet. Es wird empfohlen, diese, wie auch die offiziell bei Sun® erhältliche Datei swingall.jar, nach /system/lib zu kopieren. | To use Kaffe without problems, it's necessary to copy the file Klasses.jar, which ist part of the Kaffe-package, to /system/lib. The official Swing®-archive swingall.jar also should be copied to this place. |