Test tool for investigating how java sees a system's environment

Sometimes Java programs operate unexpectedly regarding timezone, file encoding and the like.

I have written a small test program that investigates the things I consider crucial for system dependent behaviour.

To execute SystemInvestigator.java, do something like this:

wget https://confluence.clazzes.org/download/attachments/2293870/SystemInvestigator.java
 
javac SystemInvestigator.java
java SystemInvestigator |tee SystemInvestigator.log

 

From: IBCL BLog.
Originally posted: 2009-11-03