To display correctly an UTF-8 encoded file saved in Unix using Putty run the following command before:
echo -ne '\e%G\e[?47h\e%G\e[?47l'
Friday, January 20, 2012
Thursday, January 19, 2012
To start an application which requires X server connection in Unix from a text client (like Putty, ssh) the following property can be added to the JVM:
java -Djava.awt.headless=true ...
This fixed the following errors:
In Tomcat server: X connection to localhost:10.0 broken (explicit kill or server shutdown).
In a Swing application: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java -Djava.awt.headless=true ...
This fixed the following errors:
In Tomcat server: X connection to localhost:10.0 broken (explicit kill or server shutdown).
In a Swing application: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Subscribe to:
Comments (Atom)