Posts

Showing posts with the label JAVA

Use offical jdk/jre in Debian Wheezy and later version

After Wheezy, sun-jdk and sun-jre won't be available in non-free repository. But there are still lots of applications won't be work without it. Orz Well, we still have a solution to overcome this condition from Debian. Follow below steps and get it! Install java-package. Download the latest jdk/jre binary tar ball for linux. fakeroot make-jpkg ./the_tar_ball_you_downloaded. dpkg -i the_deb_package_you_just_build_it. sudo update-alternatives --auto java. And then you have oracle-jdk/oracle-jre now! :-)

Chinese font can not be show correctly with JAVA application on FreeBSD

I ran into this problem as I installed the freemind. After searching with Google, the following steps can solve the problem. Create a directory named "fallback" in JRE path # cd /usr/local/jdk1.6.0/jre/lib/fonts # mkdir fallback Link a TrueType that I wanted to the new directory # cd fallback/ # ln -s /usr/local/lib/X11/fonts/TrueType/bsmi001p.ttf ./bsmi001p.ttf Restart the JAVA application After restarting, the JAVA application will show chinese font properly. ps. Many thanks for Tim's help.