Install NetBeans using commands in CentOS
Install NetBeans on CentOS of A computer without A desktop
Because the interface is required to install NetBeans, the installation of direct characters will prompt that there are no problems such as X11 for display.
Therefore, you must configure Xming to display the software on computer A on other computers.
1. Check the built-in Java version for java-version.
2. yum-y remove java-*-gcj-compat uninstall the built-in java
3. Go to the following URL to download jdk. Because this jdk is bound to NetBeans, netbeans is automatically installed.
Run./XX. sh and install it step by step.
Http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
4. Configure Environment Variables
Vi/etc/profile
Last added:
Export NB_HOME =/usr/local/netbeans-8.1
Export PATH = $ PATH: $ NB_HOME/bin
Source/etc/profile make the configuration file take effect
In this way, you can enter netbeans to open the software.