What issues should be specifically checked for when deploying a server application written in Java (without any specific platform dependencies) that was written and tested on Windows.
Two that I know of:
- Case sensitive file names
- Available fonts
What issues should be specifically checked for when deploying a server application written in Java (without any specific platform dependencies) that was written and tested on Windows.
Two that I know of:
Ensure that any third part JAR files you use (such as SWT) have the appropriate platform-dependent version. While you said "without any specific platform dependencies", platform-specific behavior can sometimes be hidden.
Also:
C:\Program Files
?)File.pathSeparator
?)You'll almost certainly want to set
in case any libraries try to do any font rendering, image manipulation, or anything else that touches Swing, AWT or ImageIO
1) Ensure your JVM's are identical on both platforms. 2) Some level of JVM tuning will likely be necessary. 3) Enable logging of your JVM for a short period of time to determine if you are having any problems.
Admittedly not particularly Windows-to-Unix specific, but worth noting based on our experiences:
Check the settings in $JAVA_HOME/jre/lib/security/java.security - particularly
networkaddress.cache.ttl
- the Sun JRE by default will cache DNS lookups forever, which has bitten us and our clients on several occasions. '-Dsun.net.inetaddr.ttl=60
' should override it from the command line.Ensure you are running with an adequately sized heap:
-Xmx2048m
or similar (depending on your app requirements)