Ubuntu is installed, and my Java development environment is installed. JDK is installed first. Google, the method to install JDK is
Sudo apt-get install sun-java5-jre sun-java5-jdk
I did the same, but I don't know why the network is so slow. Why is this 8-), so I decided to install JDK manually.
- Download a JDK jdk-1_5_0_17-linux-i586.bin under Linux from Sun's website
- My JDK installation directory is in/usr/java
- Execute./jdk-1_5_0_17-linux-i586.bin on the terminal
- Run mv jdk1.5.0 _ 17 // usr/java on the terminal
- Configure JAVA_HOME and CLASSPATH and run sudo gedit/etc/profile to add
- # Set java environment
- Export JAVA_HOME =/usr/java/jdk1.5.0 _ 17
- Export PATH = $ JAVA_HOME/bin: $ PATH
- Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
- Save the file and restart Ubuntu. Run java-version on the terminal after startup. If the following information appears, the JDK is successfully installed.
- Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0 _ 17-b04)
Java HotSpot (TM) Server VM (build 1.5.0 _ 17-b04, mixed mode)
So far, JDK manual installation is complete.
Then, decompress the downloaded linux version Eclipse3.42 to/usr/java, and install Eclipse. Then install the Eclipse plug-in I downloaded.
OK. You can proceed with Java development.