Tuesday, October 23, 2007

How To Install The Latest JDK On Debian/Ubuntu

If you are an expirienced Java programmer, you probably want to have the latest JDK on your Debian box. Normally there is no need to install it manually since JDK (as well as JRE) is available in modern distros as .deb package and therefore may be downloaded and installed from one of the official mirrors using familiar apt-get (or aptitude, or Synaptics, or whatever...) interface.

But what if you are not satisfied with the version of Java which is packaged with your distribution? At the moment, the official "production" version of JDK is 6.0 update 3, but for exmaple Debian Etch does not include Java 6 at all (only Java 5 is supported). This is a noticeable drawback since Java 6.0 contains some important features, such as high-quality font antialiasing. The only way to solve this situation is to download the latest JDK from Sun website and install it manually with a bit of Debian magic ;)

So, here are step-by-step installation instructions:
1. Download self-extracting package containing JDK: jdk-6u3-linux-i586.bin.
2. Make sure it has execution privileges:
chmod 755 ./jdk-6u3-linux-i586.bin
3. Run it, answer yes and watch the files being extracted.
4. Copy the extracted directory to /usr/lib/jvm:
sudo cp jdk1.6.0_03 /usr/lib/jvm
5. Check which versions of Java are already installed in your system:
sudo update-alternatives --display java
Notice what priority is assigned to the currently selected one
6. Update symlinks to make them point to your freshly installed Java:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_03/jre/bin/java 65 --slave /usr/share/man/man1/java.1.gz java.1.gz /usr/lib/jvm/jdk1.6.0_03/man/man1/java.1
7. Check that java has correct version now:
java -version
8. If something went wrong, try assigning higher priority to your JDK or select appropriate version in manual mode:
update-alternatives --config java
9. You can do the same trick with javac:
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_03/bin/javac 65 --slave /usr/share/man/man1/javac.1.gz javac.1.gz /usr/lib/jvm/jdk1.6.0_03/man/man1/javac.1

AddThis Social Bookmark Button

5 comments:

Anonymous said...

放鬆心情自由自在的來一趟花蓮旅遊,可以感受花蓮民宿各種不同的風味,所以來花蓮一定要住花蓮民宿哦!因為可從花蓮民宿主人那裡分享到不一樣的花蓮旅遊的經驗以及品嚐花蓮美食道地的花蓮小吃,所以來花蓮旅遊管家不一定就要享受花蓮高級餐廳的花蓮美食也可以多試試道地古早味的花蓮美味哦!來花蓮民宿可以放鬆整個心情,來花蓮電腦住宿也可以放空自已,來花蓮也可以了解在地的文化哦!住民宿其實是很輕鬆的,住花蓮民宿其實是很容易,還有就是現在是高油價的時代,還自行開車來花蓮嗎?來花蓮租車會比較輕鬆哦!來花蓮房屋租車會比較省錢哦!或是可以請花蓮計程車帶您包車旅遊喔!!歡迎來住住美麗的花蓮民宿囉!!一定要讓您來花蓮旅遊並且讓您愛上花蓮民宿,還有團購美食好吃的蜂蜜蛋糕、養顏美容的花蓮民宿以及花蓮美食喔!!文旦|花蓮租車|花蓮旅遊行程|花蓮電腦|花蓮剝皮辣椒

Anonymous said...

Rubber. Rubber is widly used in the outsole of the athletic shoes.
cheap puma shoes
discount puma shoes
It has the advantages of durable, skipproof, flexible, elastic, extensive, stable and proper hardness.
nike shox torch
nike tn dollar
cheap nike shox
PU is a kind of macromolecule polyurethane materials which is offten used in the midsole
cheap nike shox shoes
nike shox r4
puma mens shoes
Sometimes, it is also used in the outsole of casual shoes.
PU is durable, strong hardness, upstanding flexbility and more important, it is environmentally
cheap nike max
discount nike shox
cheap puma ferrari shoes
The disadvantage is also outstanding. Strong hydroscopic property, break apart and EVA.
nike mens shoes
nike shox nz
discount nike running shoes
EVA is quite lightweight, elastic, flexible and suitable to a variety of climates.
discount nike shoes
nike shox shoes
cheap nike shoes
PHYLON. Phylon is the product of the EVA after the second processing. Just as the rubber
nike sports shoes
puma running shoes
puma sneakers
The midsole of running shoes, tennis shoes and basketball shoes in the world is made PHYLON.
nike air max tn
puma cat
puma shoes
The upstanding hardness, density, traction and extension make it favorite by the manufacture.
nike running shoes
wholesale nike shoes
nike shoes
Just as a coin has two sides, Phylon is nonrecoverable and easily shrink under high PHYLON.
nike shoes kids
nike women shoes
ed hardy clothing us
ed hardy clothing
ed hardy clothing
cheap ed hardy
cheap ed hardy clothing
ed hardy wholesale
ed hardy hats
ed hardy t shirts
ed hardy hoodies

combattery84 said...

JVC BN-VF707 Battery
JVC BN-VF733 Battery
JVC BN-V408U Battery
BN-V408 Battery
CANON NB-2L Battery
y CANON NB-2LH Batter
CANON BP-511A battery
SONY NP-FT1 battery
SONY NP-FC10 Battery

dell Inspiron 1501 battery
Dell 75UYF Battery
Dell Inspiron 1720 battery
dell Latitude C640 battery
Dell XPS M140 battery
Dell Inspiron E1405 battery
Dell Latitude C600 battery
HP Pavilion DV2000 battery
IBM 92P1089 battery
Dell Latitude D800 battery
Dell Inspiron 600m battery
Dell Inspiron 8100 Battery
Dell Y9943 battery
Dell Inspiron 1521 battery
Dell Inspiron 510m battery
Dell Latitude D500 battery

Unknown said...

Cheap Christian Louboutin Shoes
cheap air jordan shoes
Ralph Lauren Polo Shirts
Nfl jerseys

Christian Louboutin Sandals
nike air jordan shoes
Polo Shirts
Nhl jerseys
UGG Classic Tall Boots
Ugg of Kids Infants Erin
Herve Leger Dress
Ugg of Kids Infants Erin
Ugg Womens Handbags
MBT Shoes
Ugg Womens Handbags
Ultra Short Uggs

jimmychooshoes said...

Jimmy Choo Silk satin sandals |Jimmy Choo Silk satin sandals
Jimmy Choo Python printed Elaphe snakeskin and fishnet sandals |Jimmy Choo Python printed Elaphe snakeskin and fishnet sandals
Jimmy Choo Edna leather over-the-knee boots |Jimmy Choo Edna leather over-the-knee boots
jimmy choo Haze leather knee high boots |jimmy choo Haze leather knee high boots