Tuesday, 16 April 2013

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!

  1. Install java-package.
  2. Download the latest jdk/jre binary tar ball for linux.
  3. fakeroot make-jpkg ./the_tar_ball_you_downloaded.
  4. dpkg -i the_deb_package_you_just_build_it.
  5. sudo update-alternatives --auto java.

And then you have oracle-jdk/oracle-jre now! :-)

No comments:

Post a Comment