Install JAVA in Ubuntu or debian manually
- Category : Linux Helpline (Easy Guide)
 - Posted on : Apr 17, 2019
 - Views : 1,570
 - By : Ingavar J.
 

The following steps will help you to install java in ubuntu / debian manually
Download the jdk 7 tar file http://www.oracle.com/technetwork/java/javase/downloads/index.html
mkdir -pv /usr/lib/jvm
cd /usr/lib/jvm
wget -c http://downloads-url-of-jdk/java/jdk-7u10-linux-x64.tar.gz
tar -xzf jdk-7u10-linux-x64.tar.gz
cd /usr/lib/jvm/jdk1.7.0_10
Now set the alternatives path
update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.7.0_10/bin/java” 1
update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/jdk1.7.0_10/bin/javac” 1
update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/jvm/jdk1.7.0_10/bin/javaws” 1
Now edit the bashrc file and set teh following environment variables
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_10
export CLASSPATH=.:$JAVA_HOME/lib/
export PATH=$JAVA_HOME/bin:$PATH
Now you can test the java version using the following command,
# javac -version
PS: If you have multiple alternative , please configure it using update-alternatives –config java
Categories
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
| Sat | Sun | Mon | Tue | Wed | Thu | Fri | 
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 
| 8 | 9 | 10 | 11 | 12 | 13 | 14 | 
| 15 | 16 | 17 | 18 | 19 | 20 | 21 | 
| 22 | 23 | 24 | 25 | 26 | 27 | 28 | 
| 29 | 30 | |||||
Recent Articles
- 
Posted on : Jul 25
 - 
Posted on : Jul 07
 - 
Posted on : Apr 07
 - 
Posted on : Mar 19
Optimized my.cnf configuration for MySQL 8 (on cPanel/WHM servers)
 
Tags
- layer 7
 - tweak
 - kill
 - process
 - sql
 - Knowledge
 - vpn
 - seo vpn
 - wireguard
 - webmail
 - ddos mitigation
 - attack
 - ddos
 - DMARC
 - server load
 - Development
 - nginx
 - php-fpm
 - cheap vpn
 - Hosting Security
 - xampp
 - Plesk
 - cpulimit
 - VPS Hosting
 - smtp
 - smtp relay
 - exim
 - Comparison
 - cpu
 - WHM
 - mariadb
 - encryption
 - sysstat
 - optimize
 - Link Building
 - apache
 - centos
 - Small Business
 - VPS
 - Error
 - SSD Hosting
 - Networking
 - optimization
 - DNS
 - mysql
 - ubuntu
 - Linux
 
 
 
 
 
 
 
 