Tuesday, February 14, 2017
How to install Java and netbeans on Ubuntu
1. Java:
There are so many articles to tell how to install Java on Linux based environment. but some are too complicated . To simple it,
(a) For Java development environment :JDK
(1) sudo apt-get update
(2) sudo apt-get install default-jdk // will install the latest version of Java
(3) verify the version : java -version
(4) set the environment parameters:
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:/usr/lib/jvm/java-8-openjdk-amd64/bin
(it will be a little different when the version is not 8)
verify :
type echo $JAVA_HOME and echo $PATH
(b) for java runtime support JRE
(1) sudo apt-get update
(2) sudo apt-get install default-jre // will install the latest version of Java
(3) verify the version : java -version
2. JavaBeans:
First download it from the page:
https://netbeans.org/
then
chmod +x ./netbeans-8.0.2-php-linux.sh
./netbeans-8.0.2-php-linux.sh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment