Java Plug-In bzw. Ausgabe der Jave-Console

Hallo,

das Java Plug-In bietet die Möglichkeit Meldungen aus der Anwendung
in der Java-Console auszugeben. Gibt es eine Möglichkeit diese Ausgaben in eine Datei zu schreiben.

Mein Problem ist: Wenn die Anwendung abstürzt würde ich gerne Anhand der Ausgaben in der Console herausfinden was sie alles gemacht hat. Leider kann ich nach einem Absturz auch in der Console nicht mehr blättern. Wären die Ausgaben in einer Datei könnte ich alles noch nachvollziehen.

Albert

N’Abend.

Im Mozilla geht das unter Tools - Web Development - Java Konsole. Dann nur noch copy & paste. Aber neben der Uhr müsste doch ein Java-Zeichen zu sehen sein: 2x draufklicken sollte genauso helfen.
Ist zumindest bei meinem Windows so… :wink: Halte mal nach Applets mit „Java3D“ Ausschau: wenn die Bibliotheken nicht installiert sind, gibt das eine erstklassige Fehlermeldung :smiley:

mfg M.L.

Hi,
da ist alles. Die Meldungen werden auch in die Console geschrieben. Problem ist nur, dass wenn die Anwendung hängt auch das Console-Fenster hängt und keine Eingaben mehr erlaubt d.h auch der Kopie-Button reagiert nicht mehr.

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]

Hm…?

Keine Java Development Kit in Sicht, mit dem der Compiler die Sourcen bearbeiten könnte und damit die Fehlermeldung ausspuckt ? Wie sieht die fehlerhafte Anwendung eigentlich aus bzw. wo ist sie zu finden ? Die Java Konsole nebenher laufen lassen und schauen was passiert…naja ?!

mfg der etwas ratlose M.L.

Moin

das Java Plug-In bietet die Möglichkeit Meldungen aus der
Anwendung
in der Java-Console auszugeben. Gibt es eine Möglichkeit diese
Ausgaben in eine Datei zu schreiben.

Welche Console bei welchem Browser unter welchem OS meinst du ?

Doch nicht etwa Command-prompt unter win9X ?

cu

Lösung
Hallo Albert,

Das geht ohne Probleme.

Gruss, Simon

Tracing and logging support

Tracing is a facility to redirect any output in the Java Console to a trace file (.plugin.trace).

-Djavaplugin.trace=true
-Djavaplugin.trace.option=basic|net|security|ext|liveconnect

If you do not want to use the default trace file name:

-Djavaplugin.trace.filename=

Similar to tracing, logging is a facility to redirect any output in the Java Console to a log file (.plugin.log) using the Java Logging API. Logging can be turned on by enabling the property javaplugin.logging.

-Djavaplugin.logging=true

If you do not want to use the default log file name, enter:

-Djavaplugin.log.filename=

Furthermore, if you do not want to overwrite the trace and log files each session, you can set the property:

-Djavaplugin.outputfiles.overwrite=false.

If the property is set to false, then trace and log files will be uniquely named for each session. If the default trace and log file names are used, then the files would be named as follows

.plugin.trace
.plugin.log

Tracing and logging set through the Control Panel will take effect when the Plug-in is launched, but changes made through the Control Panel while a Plug-in is running will have no effect until a restart.

For more information about tracing and logging, see the chapter called Tracing and Logging.

Quelle:
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/dev…