The easiest way to install Java 8 and NetBeans is to download a single package containing both of them from the official Oracle website. The package is called Java SE and NetBeans Cobundle and the version of Java SE and NetBeans Cobundle that you need to download is Linux x64.
The installation instructions for the Java SE and NetBeans Cobundle are the familiar click Next, Next... Install, and Finish type of instructions. These are the official Java SE and NetBeans Cobundle installation instructions from the Oracle Java SE Development Kit 8 Update 40 and NetBeans IDE 8.0.2 Java SE Software Bundle Installation Instructions webpage with minor revisions to make them specific to your question.
Installation Instructions
Download the installer file and save it on your system. For the 64-bit Linux operating system, the installer file name is jdk-8u40-nb-8_0_2-linux-x64.sh
Make sure that the file name has jdk-8 in it, so that way you know that you are downloading the installer for Oracle Java 8 SE and NetBeans 8.
Navigate to the directory into which you downloaded the installer file (example: cd ~/Downloads/
) and type:
sudo chmod +x jdk-8u40-nb-8_0_2-linux-x64.sh
to change the installer file's permissions so it can be executed.
Type the following command from the directory where you placed the installation file:
sudo ./jdk-8u40-nb-8_0_2-linux-x64.sh
At the Welcome page of the installation wizard, click Next.
JUnit is a unit testing framework for the Java programming language. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
At the JDK Installation page, specify the directory where to install the JDK and click Next.
At the NetBeans IDE Installation page, do the following:
- Specify the directory for the NetBeans IDE installation.
- Accept the default JDK installation to use with the IDE or specify another JDK location.
- Click Next.
- Review the Summary page to ensure the software installation locations are correct.
- Click Install to begin the installation.
- At the Setup Complete page, provide anonymous usage data if desired, and click Finish.
Google Earth
Visit the official Download the latest version of Google Earth for PC, Mac, or Linux website.
Select the version of Google Earth that is compatible with your operating system. In your case, from the Please select your download package menu select 64 bit .deb (For Debian/Ubuntu)
Click the Agree and Download button to start downloading Google Earth.
Browse in the Files file manager to the folder where the Google Earth file that you downloaded is located. The name of the Google Earth file is google-earth-stable_current_amd64.deb
Double click the google-earth-stable_current_amd64.deb file to open it for installation in the Ubuntu Software Center, or from the terminal change directories with cd
to the directory where the Google Earth file that you downloaded is located and install it with this command:
sudo apt install ./google-earth-stable_current_amd64.deb
Install Google Earth from the Ubuntu Software Center the same way that you would install any other package -- by clicking the Install button.