1. First you have to install JDK correctly, and configure environment variables can refer to the http://blog.csdn.net/chaimingkun/article/details/7488271
2. Install netbeans
First download netbeans to the netbeans official website, I use netbeans-7.1.1-ml-linux.sh
This error is prompted when you install netbeans on Ubuntu, that is, JDK 6 cannot be found.
First, enter the netbeans folder on the terminal.
By default, I put it in the main Folder/home/chaimingkun, which is simple.
Chaimingkun @ Ubuntu :~ $ Sh netbeans-7.1.1-ml-linux.sh
Installing the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer
JDK 6 or JDK 5 is required for installing the netbeans ide. Make sure that the JDK is properly installed and run installe in R again.
You can specify valid JDK location using -- javahome installer argument.
I have installed JDK 6 correctly. Why do I still prompt this?
This is because the JDK path is not found during netbeans installation.
Solution:
Error description inspired:
The error description is as follows: You
Can specify valid JDK location using -- javahome installer argument.
Run the command $ sh again.
Netbeans-7.1.1-ml-linux.sh -- javahome/home/chaimingkun/jdk1.60 _ 31/JRE/
So the installation is successful.
After the installation is complete, many garbled characters are found, and some information is checked. The solution is as follows:
Install a uming. TCC font file.
Because the uming. TCC font is famous, it is a high-quality Chinese font. Therefore, I decided to select the second solution.
To the network Goole, immediately found: http://ftp.br.debian.org/debian/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.20080216.1-3_all.deb
After downloading: sudo dpkg-I ttf-arphic-uming_0.2.20080216.1-3_all.deb
After the installation is completed successfully, you can view the directory/usr/share/fonts/TrueType. The directory arphic is displayed, and you can view the directory uming. the TTC is there!
Open netbeans right away, wait for a long time, and finally see the window. Everything is ready. The font looks really beautiful. It is really an arphic product.
Since then, the problem has been solved perfectly. No matter how the version changes, you can solve the problem in this way.
Some articles on the Internet say that the CP font is written to JRE/lib/fonts/fallback. Many people do not understand the principles. The fallback directory is the JRE Font Backup Directory, which means that the font information cannot be found according to the normal configuration, and the directory will be searched for in the font file according to the sequence set in the configuration file. There are two problems with this method. One is inefficiency. Second, the font is not uniform, and the word "file" appears. The text is the simplified body, and the text is the "spectacular" scene of the simhei! Why? Because the text is found in the text font, but the text font cannot be found, you can find it in the font in fallback. This phenomenon is amazing!
Therefore, this method is actually a cool-hitting method. Many people are confused about how it works. Other people may see inconsistent fonts.
Of course, everything mentioned above will not happen on Windows. Because windows is relatively unified, the configuration of the configuration file will certainly work normally, and there will be no situations where Linux-like font files may not be found. This also proves the importance of standardization and unification in software.