Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Console Logs not getting written to disk with an Applet

In the Java Control Panel, I have enabled tracing and logging. I am troubleshooting a Java Applet.

The Java logs appear in the Java Console but aren't written to disk.

I checked in %APPDATA%\sun\java\deployment - but that directory is empty.

As per Java 8 documentation, that's where the logs are supposed to get written to. I am running JRE 8. How can this be fixed?

like image 649
user93353 Avatar asked Jan 11 '16 13:01

user93353


1 Answers

Another possibility of the tracing log file location is found from jre8 documentation:

If the environment variable USER_JPI_PROFILE is set to <user plugin home> 
then the trace and log files will be written to:
<user plugin home>\Sun\Java\Deployment\log on Windows

Source:

https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html

like image 163
mico Avatar answered Sep 17 '22 12:09

mico