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?
6 Answers
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

- 32,125
- 13
- 69
- 98

- 321,522
- 82
- 660
- 783
-
for example mine is under: C:\Users\mostafa.sho\AppData\LocalLow\Sun\Java\Deployment\log and mostafa.sho is my username in windows. – mostafa.S Jan 18 '17 at 06:43
On my Windows 10 computer, the log file is found at:
C:\Users\<MY USER>\AppData\LocalLow\Sun\Java\Deployment\log
-
Is there any guidance for OP regarding abrupt shutdowns you could offer? – gravity Jun 20 '18 at 15:35
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.

- 1,061
- 1
- 17
- 36
Having the -XX:MaxPermSize
defined in your JNLP file can cause this issue on Linux and Mac machines. Removing that argument from the JNLP seems to fix the issue.
Check this comment.
-
1Also, using -Xmx with a value too large will make java fail to start. – Sarel Botha Dec 30 '13 at 14:33
-
@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: http://looselytyped.blogspot.in/2014/08/java-jvm-initialization-errors-on-linux.html) – nhylated Aug 27 '14 at 10:15
Try clearing the Java temporary internet files folder which is found in the Java Control Panel / General tab. After doing this I was able to successfully relaunch my application through invoking the jnlp.

- 21
- 6