Install java in debian / ubuntu server

echo “deb precise main” | tee -a /etc/apt/sources.list
echo “deb-src precise main” | tee -a /etc/apt/sources.list
apt-key adv –keyserver hkp:// –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

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/ /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: Logo

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