The following topics are covered:
Tracing is a facility to redirect any output in the Java Console to a trace file.
Tracing for Java Plug-in and Java Web Start can be turned on by setting the property
deployment.trace property to
true. This property turns on all tracing
facilities inside Java Plug-in and Java Web Start. To enable more fine-grained
deployment.trace.level property can be used. The
deployment.trace.level property can have one of the
To use all of the tracing levels, set
To enable tracing on the fly, you can set trace-level options (0-5) in the Java Console, shown in the previous chapter, with the following meanings:
Another way to set fine-grained tracing is through the Java Control Panel. For instance, to enable tracing for everthing (option 5 above), enter the following in the "Java Run Time Parameters" textfield:
Tracing set through the Control Panel takes effect when Java Plug-in or Java Web Start is launched, but changes made through the Control Panel while Java Plug-in or Java Web Start is running has no effect until restarted.
Similar to tracing, logging is a facility to redirect any output in the Java Console to a log file using the Java Logging API. To enable logging perform the following actions:
plugin<random-number>.trace- Name of the trace file for Java Plug-in.
plugin<random-number>.log- Name of the log file for Java Plug-in.
javaws<random-number>.trace- Name fo the trace file for Java Web Start.
javaws<random-number>.log- Name of the log file for Java Web Start.
jcp.trace- Name of the trace file that is created when the Java Control Panel is run.
<random-number> is a number that is generated when the file is created.
The default location (directory) of the trace and log files is:
<user.home>/.java/deployment/logon UNIX, Linux
~/Library/Application Support/Oracle/Java/Deployment/logon Mac OS X
<User Application Data Folder>\Sun\Java\Deployment\logon Windows
If the environment variable
USER_JPI_PROFILE is set
<user plugin home> then the trace and log
files will be written to:
<user plugin home>/.java/deployment/logon UNIX, Linux
<user plugin home>/Library/Application Support/Oracle/Java/Deployment/logon Mac OS X
<user plugin home>\Sun\Java\Deployment\logon Windows