I have been working on Ubuntu recently. I was afraid to be so arrogant on a real machine for a while. Later, I simply went to the virtual machine and used the virtual machine to find that using the real machine was a stupid thing. Because when using a real machine, I always worry that I will crash the system and be cautious about everything. Let's talk about the installation process of jdk and netbeans In Ubuntu. Online installation is relatively simple, but network support is required. Here I will mainly talk about offline installation. I. jdk1. download jdkforlinux on the official website, such as jdk-6u1
I have been working on Ubuntu recently. I was afraid to be so arrogant on a real machine for a while. Later, I simply went to the virtual machine and used the virtual machine to find that using the real machine was a stupid thing. Because when using a real machine, I always worry that I will crash the system and be cautious about everything.
Let's talk about the installation process of jdk and netbeans In Ubuntu. Online installation is relatively simple, but network support is required. Here I will mainly talk about offline installation.
I. jdk
1. Download jdk for linux on the official website, such as jdk-6u13-linux-i586.bin
2. Create a directory and copy the file. Enter the directory from the terminal, sudo-s jdk-6u13-linux-i586.bin
3. configuration problems (taking my path as an example, you can change it based on your actual situation ):
Sudo gedit/etc/profile
Add at the end
# Set java environment
Export JAVA_HOME =/home/zhuxiufenghust/Public/java/jdk/jdk1.6.0 _ 13
Export JRE_HOME =/home/zhuxiufenghust/Public/java/jdk/jdk1.6.0 _ 13/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH
Disable profile
Enter source/etc/profile on the terminal to save the settings. Otherwise, restart the device to apply the settings.
4. Verify Installation
Input
Java-version
Terminal output
Java version "1.6.0 _ 13"
Java (TM) SE Runtime Environment (build 1.6.0 _ 13-b03)
Java HotSpot (TM) Client VM (build 11.3-b02, mixed mode, sharing)
Input echo $ JAVA_HOME
Output
/Home/zhuxiufenghust/Public/java/jdk/jdk1.6.0 _ 13
You can compile a text java applet to test it.
Ii. Install Eclipse
After the download, decompress the package directly.
3. Install netebeans
1. Download The netbeans for linux version.
2. Installation
You may need to manually add the javahome path to www.britepic.org.
Sudo-s netbeans-trunk-nightly-200904171401-ml-linux.sh
[Sudo] password for zhuxiufenghust:
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 installer again.
You can specify valid JDK location using -- javahome installer argument.
Add javahome again
Sudo-s netbeans-trunk-nightly-200904171401-ml-linux.sh -- javahome/home/zhuxiufenghust/Public/java/jdk/jdk1.6.0 _ 13
Installing the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
Then I went to the familiar installation interface, so I won't talk about it.