Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Thursday, October 29, 2015

Install Netbeans IDE on Ubuntu GNOME 15.10

Before install Netbeans IDE, install JDK8 first.

Follow the video to install Netbeans IDE on Ubuntu GNOME 15.10:



Try a example in Netbeans IDE:

Install Oracle Java 8 on Ubuntu 15.10 via ppa:webupd8team


ppa:webupd8team/java is a Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7/JDK8/JDK9).

To install on Ubuntu 15.10, enter the commands in terminal:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer


webupd8team/java also provide oracle-java8-set-default, automatically sets the Java 8 environment variables and sets JDK8 as the default JDK. To install it, use the following command:
$ sudo apt-get install oracle-java8-set-default




Tuesday, January 15, 2013

Install JDK 7 and update-alternatives on Ubuntu 12.10

Download update JDK here: http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the DOWNLOAD Java Platform graph.




Scroll download to check the box of Accept License Agreement, and select the package to download. In this case, jdk-7u11-linux-i586.tar.gz for Linux x86 is selected.


Move the downloaded .tar.gz archive binary to the directory you want to install.

Open a Terminal, the the command to unpack the tarball and install the JDK:
$tar zxvf jdk-7u11-linux-i586.tar.gz

For example, if you download the .tar.gz is /home/you, your installed directory will be /home/you/jdk1.7.0_11.

Then, you have to update alternatives for javac and java:
$sudo update-alternatives --install /usr/bin/javac javac /home/you/jdk1.7.0_11/bin/javac 1
$sudo update-alternatives --install /usr/bin/java java /home/you/jdk1.7.0_11/bin/java 1

If you have more than one javac installed, you have to config your javac alternative
$sudo update-alternatives --config javac
$sudo update-alternatives --config java

Finally, delete the downloaded .tar.gz after then.


How to install Synaptic Package Manager on Ubuntu 12.10

Synaptic package Manager is a graphical package manager tool based on GTK+ and APT, to install upgrade and remove software packages in user friendly way.

To install Synaptic Package Manager on Ubuntu 12.10:

- Click the top Ubuntu icon on the left bar, search Package Manager in second tab on bottom. Click the Synaptic Package Manager selection.



- After a moment, Ubuntu Software Center will be opened with Synaptic Package Manager. Click Install.


- You will be asked to enter administrator password to continuous.