The JDK 6.0 release contains a new option, -XX:ErrorFile=<errfilename>. This option can be used to replace the default filename (hs_err_pid<pid>.log) for
the fatal error log.
If this option is used with the JAVA_CORE_DESTINATION environment variable, errfilename can specify
an absolute path, a relative path, or a filename placed in the JAVA_CORE_DESTINATION directory. The following list explains
how the combination of the errfilename with the JAVA_CORE_DESTINATION environment variable can be used to
do this:
If the errfilename begins with
the file separator character (“/”), it specifies an
absolute path. The JAVA_CORE_DESTINATION environment
variable is not used for the errfilename.
If the errfilename contains the
file separator character (“/”), but does not begin with
one, it specifies a relative path ($JAVA_CORE_DESTINATION/errfilename).
If no file separator is found in errfilename, the fatal error log is placed in the JAVA_CORE_DESTINATION directory.