Install java in debian / ubuntu server

echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main” | tee -a /etc/apt/sources.list
echo “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main” | tee -a /etc/apt/sources.list
apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer

or the “always works way in google chrome ubuntu”

1. download java to your server or computer

https://java.com/en/download/index.jsp

2. create java folder in your server / pc and create plugin folder to chrome

#sudo mkdir -p /usr/java
#sudo mkdir -p /opt/google/chrome/plugins

3. cp jre-7u45-linux-x64.tar.gz to /usr/java
#sudo cp jre-7u45-linux-x64.tar.gz /usr/java

4. ekstrak file tar gz
#cd /usr/java
#sudo tar zxvf jre-7u45-linux-x64.tar.gz

5. sym link java ke plugin

#sudo ln -s /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so /opt/google/chrome/plugins/

this is only sample you may change it or replace the java version with yours

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s