One. Configure the Java Runtime Environment:
NetBeans is a Java-based development, and it is necessary to configure the Java Runtime environment to install run Neabeans. Java is also divided into the following two kinds:
JRE, which is the environment you need to run a Java-based application that is normally required. If you are not a program clerk, these are enough for your needs.
The JDK represents the Java SDK, and if you want to do something about Java development (read programs), that's exactly what you need.
1. Installing the Java JRE
sudo apt-get install openjdk-7-jre-headless
After the installation is complete, enter:
Java-version
Displays the following information
Indicates a successful installation!
2. Installing the Java JDK
sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get Install Oracle-java8-installersudo apt-get Install Oracle-java8-set-default
The time is slightly long, installs well after the same test. But the Java developers also need to configure the environment variables, which I will not say more.
Two. Installing NetBeans1. Download the appropriate version:
Go to the following address to download the appropriate version: (I am under the almighty version)
https://netbeans.org/downloads/
When you are finished, you will wait for a. sh file to end. We just need to go to the target folder and enter the following command:
sudo sh target file. sh
Just like the installation in win environment.
2.netbeans font blur antialiasing problem
If you go to NetBeans, you will find that the font is very blurry. The solution is as follows:
Find a NetBeans setup file, typically in/usr/local/netbeans-6.8/etc/netbeans.conf
sudo vim netbeans.conf
Found it:
Netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xx:permsize=32m-j-dapple.laf.usescreenmenubar=true- J-dapple.awt.graphics.usequartz=true-j-dsun.java2d.noddraw=true-j-dsun.zip.disablememorymapping=true "
At the tail add:
-j-dawt.usesystemaafontsettings=on
Note There are spaces! As follows:
Netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xx:permsize=32m-j-dapple.laf.usescreenmenubar=true- J-dapple.awt.graphics.usequartz=true-j-dsun.java2d.noddraw=true-j-dsun.zip.disablememorymapping=true- J-dawt.usesystemaafontsettings=on "
Finally save the restart. Ok!
Ubuntu14.04 Kylin Version Installation: Netbeans,java operating environment and Netbeans font blur problem