Troubleshooting a Java Web Start application and accessing log files
Asked Answered
L

6

23

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?

Lattimore answered 16/8, 2012 at 15:21 Comment(0)
S
24

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
Silver answered 16/8, 2012 at 17:30 Comment(1)
for example mine is under: C:\Users\mostafa.sho\AppData\LocalLow\Sun\Java\Deployment\log and mostafa.sho is my username in windows.Coxcombry
Z
5

On my Windows 10 computer, the log file is found at:

C:\Users\<MY USER>\AppData\LocalLow\Sun\Java\Deployment\log
Zealot answered 20/6, 2018 at 15:28 Comment(1)
Is there any guidance for OP regarding abrupt shutdowns you could offer?Timbuktu
J
1

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.

Jehias answered 16/8, 2012 at 15:38 Comment(0)
C
0

Having -Xmx with a value too large was the cause of the issue for me.

Reducing the heap size resolved it.

Candidate answered 10/9, 2015 at 8:23 Comment(0)
T
-1

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.

Teleplay answered 17/12, 2013 at 20:52 Comment(2)
Also, using -Xmx with a value too large will make java fail to start.Bookbindery
@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/…)Teleplay
K
-1

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.

Kitts answered 22/1, 2014 at 22:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.