Troubleshooting a Java Web Start application and accessing log files
Solution 1
You should enable detailed trace logging as explained on this page. The same page gives you the location of the log files;
The trace file is saved into the
log
directory in the "Java Deployment Home" folder. That folder's location is specific to your operating system:
- Windows XP:
%HOME%\Application Data\Sun\Java\Deployment
- Windows 7/Vista:
%APPDATA%\..\LocalLow\Sun\Java\Deployment
- Linux/Solaris:
%HOME%/.java/deployment
Solution 2
On my Windows 10 computer, the log file is found at:
C:\Users\<MY USER>\AppData\LocalLow\Sun\Java\Deployment\log
Solution 3
I am not sure why it would fail like that but you should be able to see where the logs by going to File/Preferences/Advanced
.
You should also be able to enable java console
from the same location.
Solution 4
Having -Xmx
with a value too large was the cause of the issue for me.
Reducing the heap size resolved it.
crazypaladin
Updated on June 21, 2020Comments
-
crazypaladin about 4 years
I am launching a Java Web Start application which shuts down abruptly. Does anybody know how to access the logs for Java Web Start. Are there any known reasons for it to shut down abruptly?
-
Sarel Botha over 10 yearsAlso, using -Xmx with a value too large will make java fail to start.
-
nhylated almost 10 years@SarelBotha - That shouldn't ideally happen given that the system has sufficient free memory to accommodate the max-heap size. The issue that you faced can be because of different reasons though. For e.g. on Linux, JVM fails to start if the OS's or the shell's virtual memory limit is limited (check: looselytyped.blogspot.in/2014/08/…)
-
mostafa.S over 7 yearsfor example mine is under: C:\Users\mostafa.sho\AppData\LocalLow\Sun\Java\Deployment\log and mostafa.sho is my username in windows.
-
gravity about 6 yearsIs there any guidance for OP regarding abrupt shutdowns you could offer?