tags:

views:

480

answers:

1

My java app keeps crashing the jvm every time its closed.
I think the crashes are caused by a third party dll im using, so i cant fix them.
The problem is that a hs_err _pid.log log file is created on every crash, filling the CWD.
Can be jvm crash logging disabled? Is there a way to do that from inside the running java app?
Thanks!

+1  A: 

In java 6, you can use the -XX:ErrorFile option to control where the file goes. I'm not sure if you can turn it off, but you probably direct it to /dev/null

http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/felog.html

skaffman
Thanks a lot! That solves partially my problem, i will redirect log files to temp folder in windows xD
Gero