This article is only a record for individuals installing JDK + Java EE under Ubuntu 14.10:
Installing the JDK
- Download jdk-7u75-linux-x64.tar.gz from Oracle's website
- Extract jdk-7u75-linux-x64.tar.gz (unzip to/usr/java)
- sudo mkdir/usr/java
- sudo tar-xzf jdk-7u75-linux-x64.tar.gz-c/usr/java/
- Configure environment variables: sudo/etc/profile, add at end of file
- # Set JDK Environment
Export java_home=/usr/java/jdk1.7.0_75
Export JRE_HOME=/USR/JAVA/JDK1.7.0_75/JRE
Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JRE _home/lib
Export path= $PATH: $JAVA _home/bin: $JRE _home/bin
- Check if the JDK is installed successfully
- Source/etc/profile (make the above configuration effective immediately)
- Java-version
Installing the Java EE
- Download eclipse-jee-luna-sr1a-linux-gtk-x86_64.tar.gz from Oracle's website
- Unzip to the current directory and get a folder called Eclipse: Tar-xzf eclipse-jee-luna-sr1a-linux-gtk-x86_64.tar.gz
- Move the Eclipse folder to/usr/j2ee-luna:sudo MV Eclipse/usr/j2ee-luna
- Create a desktop link: sudo vim/usr/share/applications/eclipse.desktop
- [Desktop Entry]
Name=j2ee-luna
Comment=eclipse SDK
Encoding=utf-8
Exec=/usr/j2ee-luna/eclipse
icon=/usr/j2ee-luna/icon.xpm
Terminal=false
Type=application
Categories=gnome;development;ide;
Done
Ubuntu 14.10 Configuration jdk + Java EE