JAVA
Step by step install JAVA in ubuntu:
http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux
Step 1: Download and extract JDK
Step 2: Create folder /usr/local/java:
sudo mkdir -p /usr/local/java
+ Copy jdk folder to /usr/local/java:
sudo cp -a /home/huynhsang/Downloads/jdk1.8.0_31/ /usr/local/java/
Step 3: Edit the system PATH file /etc/profile :
sudo gedit /etc/profile
or
sudo nano /etc/profile
Step 4: edit profile file:
JAVA_HOME=/usr/local/java/jdk1.8.0_31
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
Step 5: Save and Quit.
Step 6:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_31/jre/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_31/bin/javac" 1
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_31/jre/bin/java
sudo update-alternatives --set javac /usr/local/java/jdk1.8.0_31/bin/javac
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_31/bin/javaws
Step 7: Check JDK version
java -version
JAVA
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default
$ java -version
Step by step install JAVA in ubuntu:
http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux
Step 1: Download and extract JDK
Step 2: Create folder /usr/local/java:
sudo mkdir -p /usr/local/java
+ Copy jdk folder to /usr/local/java:
sudo cp -a /home/huynhsang/Downloads/jdk1.8.0_31/ /usr/local/java/
Step 3: Edit the system PATH file /etc/profile :
sudo gedit /etc/profile
or
sudo nano /etc/profile
Step 4: edit profile file:
JAVA_HOME=/usr/local/java/jdk1.8.0_31
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
Step 5: Save and Quit.
Step 6:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_31/jre/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_31/bin/javac" 1
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_31/jre/bin/java
sudo update-alternatives --set javac /usr/local/java/jdk1.8.0_31/bin/javac
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_31/bin/javaws
Step 7: Check JDK version
java -version
JAVA
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default
$ java -version
===================================================
MAVEN
Step 1: Download maven http://maven.apache.org/download.cgi
Step 2: Extract to path: /usr/local/apache-maven/apache-maven.3-2-5
+ Create apache-maven:
sudo mkdir /usr/local/apche-maven
+ Copy apache-maven-3.2.5 to /usr/local/apche-maven:
sudo cp -a /home/huynhsang/Downloads/apache-maven-3.2.5 /usr/local/apche-maven/
+ Create apache-maven:
sudo mkdir /usr/local/apche-maven
+ Copy apache-maven-3.2.5 to /usr/local/apche-maven:
sudo cp -a /home/huynhsang/Downloads/apache-maven-3.2.5 /usr/local/apche-maven/
Step 3: sudo gedit /etc/profile
JAVA_HOME=/usr/local/java/jdk1.8.0_31
JRE_HOME=$JAVA_HOME/jre
M2_HOME=/usr/local/apche-maven/apache-maven-3.2.5/
M2=$M2_HOME/bin
MAVEN_OPTS="-Xms256m -Xmx512m"
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$M2:$M2_HOME
export JAVA_HOME
export JRE_HOME
export M2_HOME
export M2
export PATH
JRE_HOME=$JAVA_HOME/jre
M2_HOME=/usr/local/apche-maven/apache-maven-3.2.5/
M2=$M2_HOME/bin
MAVEN_OPTS="-Xms256m -Xmx512m"
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$M2:$M2_HOME
export JAVA_HOME
export JRE_HOME
export M2_HOME
export M2
export PATH
No comments:
Post a Comment