debian 7 install sun java jdk

install fresh crunchbang, remove all ntfs partition … and  i  stuck at java installed

the method from https://g3n1k.wordpress.com/2014/01/04/crunchbang-waldorf-debian-wheezy-install-java-sunoracle-jdk/ didnt work

google and found this

https://wiki.debian.org/Java/Sun

follow step there and stuck in depedency … at last found this work

sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886

before you update, make sure you remove other repository,

open synaptic -> setting -> repositories -> tab Other Software

remove-another-source-repository

now update and install sun java jdk

sudo apt-get update
sudo apt-get install oracle-java7-installer

debian-7-install-sun-java-7after that, remove open jdk

sudo apt-get remove openjdk-6-jre default-jre default-jre-headless
sudo apt-get autoremove

update 19-September-2012


sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
exit

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s