Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Enabling Java Logging and Tracing Enabling Java logging and tracing involves the following steps: 1. Finding the Java Control Panel 2. Enabling Logging and Tracing 3. Obtaining Logs for QuickTools (QT) Issues Finding the Java Control Panel n To find Java 7 Update 40 (7u40) and later versions, go to Finding Java 7 Update 40 and Later Versions. n For earlier versions, go to the section for your operating system. To find Java 7 Update 40 (7u40) and later: 1. Launch the Windows Start menu. 2. Click Programs. 3. Find the Java program listing. 4. Click Configure Java to launch the Java Control Panel. To find Java Control Panel in Microsoft Windows 8: 1. Press the Windows logo key + W to open the Search charm to search settings. OR Drag the mouse pointer to the bottom-right corner of the screen, and then click the Search icon. 2. In the search box type Java Control Panel. 3. Click the Java icon to open the Java Control Panel. To find Java Control Panel in Microsoft Windows 7 and Vista: 1. Click the Start button, and then click the Control Panel option. 2. In the Control Panel Search box type Java Control Panel. 3. Click the Java icon to open the Java Control Panel. To find Java Control Panel in Microsoft Windows XP: 1. Click the Start button, and then click the Control Panel option. 2. Double-click the Java icon to open the Java Control Panel. Enabling Logging and Tracing There are two ways to enable tracing and logging for Java: a GUI method and a manual edit method. GUI Method 1. Open the Java Control Panel from the Control Panel in Windows or by running jcontrol on Linux. 2. Click the Advanced tab. 3. In the Debugging section, confirm that the following check boxes are checked (see Figure 1): – Enable tracing – Enable logging – Show applet lifecycle exceptions Check these as shown Figure 1. Check Boxes That Should be Checked 4. Click the Java tab, and then click View. 5. In the Runtime Parameters field for the enabled Java Runtime, type the following (with no spaces): Ddeployment.trace.level=all 6. Press Enter. 7. Click OK to close the Java Runtime Environment Settings dialog box. 8. Click OK to apply and close the Java Control Panel. Manual Edit Method Another way to enable tracing and logging for Java is by editing the deployment.properties file in the JRE deployment directory. 1. Go to the location where the deployment.properties file resides: – Linux/Unix: go to <user.home>/java/deployment. – Windows: go to <User Application Data Folder>\Sun\Java\Deployment (see the example in Figure 2). Figure 2. Location of the deployment.properties File 2. Double-click the file and confirm that the following lines appear in the file (see the example below and the figure following it): deployment.trace.level=all deployment.log=true deployment.trace=true deployment.javapi.lifecycle.exception=true Modify these lines as shown Figure 3. Modifying the deployment.properties File 3. If the Java Plug-in is already launched, close the browser and then open it again to restart the plug-in and apply your changes. If you use Mozilla Firefox, close all browser windows, not just the tab or window in which the Applet was running. Obtaining Logs for QuickTools (QT) Issues 1. Compress (zip) the contents of the log directory within the JRE deployment directory. Include the eventN.M.log files and local.properties from the user's home directory. Figure 4. Location of Java Log and Trace Files Figure 5. Location of the Event Log and local.properties File (User's Home Directory) For more information about Java Logging and Tracing, go to the Oracle Java pages. However, some information in these pages may not be up to date; for example, these pages do not mention that tracing can be enabled via the Advanced tab in the Java Control Panel.