How do I pipe the Java console output to a file?

后端 未结 5 1563
误落风尘
误落风尘 2020-12-08 21:17

I found a bug in an application that completely freezes the JVM. The produced stacktrace would provide valuable information for the developers and I would like to retrieve i

5条回答
  •  Happy的楠姐
    2020-12-08 21:59

    Actually one can activate tracing in the Java Control Panel. This will pipe anything that ends up in the Java console in a tracing file.

    The log files will end up in:

    • /.java/deployment/log on Unix/Linux
    • \Sun\Java\Deployment\log on Windows
    • /~/Library/Caches/Java/log on OS X

提交回复
热议问题