Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
http://www.free-online-exams.com
How to enable high tracing level for JRE and View The Java Console And
Enable Tracing For Sun JRE (Native Plug-in)
Enable Tracing For Sun JRE (Native Plug-in)
HOW TO ENABLE /VIEW JAVA CONSOLE
In Windows:
Method :1
- Open the Java control panel
Start --> Control Panel --> JAVA - Go to Advanced Tab--> Settings window--> Java Console and select 'Show Console' as shown in the Figure :1
Note:
Changes made through the Control Panel while a Plug-in is running will have no effect until restart
Changes made through the Control Panel while a Plug-in is running will have no effect until restart
Method :2
- From the Windows Task bar, right-click the Java coffee-cup icon labeled Java™ Platform, Standard Edition, and click on ‘Open Console’ to launch the Java Console as shown in Figure :2
Method :3
- In IE /Mozilla Firefox
- Go to Tools menu and select 'Sun Java Console'
- In Netscape
- Go to Tools --> Web Deployment and select 'Sun Java Console'
HOW TO ENABLE TRACING IN SUN JRE (NATIVE PLUGIN)
There are five levels of tracing available as follows:-
- 0 off
- 1 basic
- 2 network and basic
- 3 security, network and basic
- 4 extension, security, network and basic
- 5 LiveConnect, extension, security, network and basic
Method :1
- Open the Java control panel
Start --> Control Panel --> JAVA - Go to Advanced Tab--> Settings window--> Debugging and select 'Enable tracing' as shown in the Figure :3
Note:
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Tracing set through the Control Panel will take effect when the Plug-in is launched
- Tracing will get enabled for everthing (option 5 above)
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Tracing set through the Control Panel will take effect when the Plug-in is launched
- Tracing will get enabled for everthing (option 5 above)
Method :2
- Open the Java control panel
Start --> Control Panel --> JAVA - Go to Java Tab and click on View Button in Subpanel : Java Runtime Settings
- In the 'Java Runtime Parameters' column enter following values
-Djavaplugin.trace=true
-Djavaplugin.trace.option=basic|net|cache|security|ext|liveconnect|temp
-Djavaplugin.trace.option=basic|net|cache|security|ext|liveconnect|temp
Note:
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Tracing set through the Control Panel will take effect when the Plug-in is launched
- Tracing will get enabled based on the trace option given in the 'Java runtime parameters'
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Tracing set through the Control Panel will take effect when the Plug-in is launched
- Tracing will get enabled based on the trace option given in the 'Java runtime parameters'
Method :3
The trace level can be enabled by highlighting the java console window when it comes up and entering the appropriate number key for the tracing level required
The trace level can be enabled by highlighting the java console window when it comes up and entering the appropriate number key for the tracing level required
Note:
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- This will enable tracing on the fly and based on the trace option number entered
- By default, tracing in the JRE 1.5.0 Java Control Panel is turned off
- This will enable tracing on the fly and based on the trace option number entered
HOW TO ENABLE LOGGING IN SUN JRE (NATIVE PLUGIN)
Similar to tracing, logging is a facility to redirect any output in the Java Console to a log file. Logging can be enabled by
Method :1
- Open the Java control panel
Start --> Control Panel --> JAVA - Go to Advanced Tab--> Settings window--> Debugging and select 'Enable logging' as shown in the Figure :5
Note:
- By default, logging in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Logging set through the Control Panel will take effect when the Plug-in is launched
- Log file (plugin<version>.log) will be created in the directory of the user by which one has logged in the
client pc
E.g: 'Documents and Settings\<user>\Application Data\Sun\Java\Deployment\log' directory.
- By default, logging in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Logging set through the Control Panel will take effect when the Plug-in is launched
- Log file (plugin<version>.log) will be created in the directory of the user by which one has logged in the
client pc
E.g: 'Documents and Settings\<user>\Application Data\Sun\Java\Deployment\log' directory.
Method :2
- Open the Java control panel
Start --> Control Panel --> JAVA - Go to Java Tab and click on View Button in Subpanel : Java Runtime Settings
- In the 'Java Runtime Parameters' column enter following values
-Djavaplugin.logging=true
Note:
- By default, logging in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Logging set through the Control Panel will take effect when the Plug-in is launched
- Log file (plugin<version>.log) will be created in the directory of the user by which one has logged in the
client pc
E.g: 'Documents and Settings\<user>\Application Data\Sun\Java\Deployment\log' directory.
- By default, logging in the JRE 1.5.0 Java Control Panel is turned off
- Changes made through the Control Panel while a Plug-in is running will have no effect until restart
- Logging set through the Control Panel will take effect when the Plug-in is launched
- Log file (plugin<version>.log) will be created in the directory of the user by which one has logged in the
client pc
E.g: 'Documents and Settings\<user>\Application Data\Sun\Java\Deployment\log' directory.