Javaws launch tracking

I have a Java application that runs through Java Webstart. Sometimes, after a new deployment of the application, it happens that launching the application will cause it to download twice each time it starts. I did not get to the point, but I think it could be due to our squid proxy, which seems to interact poorly with Java. What I would like to explore this further is to see traces of what javaws do. Is there such an option for javaws?

Just a small update if Java is configured to display the console, then press "5" when the focus on the console is set to logging level to 5, which is the most detailed logging level. This may be useful, but it does not address cases where the application does not achieve this.

+4
source share
2 answers

You can either run the jnlp file using the -verbose option using the javaws command from the command line and / or check the logs. The location of the logs depends on the version of Java. In previous versions of windows, the default was: c:\Documents and Settings\_user_\Application Data\Sun\Java\Deployment\log

On Windows 7, the default path is 'C:\Users\_user_\AppData\LocalLow\Sun\Java\Deployment\log'

+3
source

To enable full trace mode, run the following commands on the command line:

 "C:\Program Files (x86)\Java\jre8\bin\javaws.exe" -userConfig deployment.trace true "C:\Program Files (x86)\Java\jre8\bin\javaws.exe" -userConfig deployment.trace.level all 

Trace files will be placed in %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\log .

To turn off full trace mode again:

 "C:\Program Files (x86)\Java\jre8\bin\javaws.exe" -userConfig deployment.trace "C:\Program Files (x86)\Java\jre8\bin\javaws.exe" -userConfig deployment.trace.level 
+3
source

Source: https://habr.com/ru/post/1332250/


All Articles