Project

General

Profile

Support #941

Updated by Daniel Curtis over 6 years ago

I had a project that called for developing around Java SE 6, and I needed to set up a development environment from the past. This is a guide on installing JDK6 and Eclipse Kepler on Arch Linux. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 sudo pacman -Syu 
 </pre> 

 * Install JRE6 and JDK6: 
 <pre> 
 yaourt -S jre6 jdk6 
 </pre> 

 h2. Install Eclipse 

 * Download Eclipse Kepler from http://www.eclipse.org/downloads/ 

 * Extract Eclipse to @/opt@: 
 <pre> 
 sudo tar xzf eclipse-java-kepler-SR2-linux-gtk-x86_64.tar.gz -C /opt 
 </pre> 

 * Create a desktop file: 
 <pre> 
 sudo nano /usr/share/applications/eclipse.desktop 
 </pre> 
 #* ANd add the following: 
 <pre> 
 [Desktop Entry] 
 Name=Eclipse  
 Type=Application 
 Exec=eclipse 
 Terminal=false 
 Icon=eclipse 
 Comment=Integrated Development Environment 
 NoDisplay=false 
 Categories=Development;IDE; 
 Name[en]=Eclipse 
 </pre> 

 * Give the desktop file permission to be executed, run: 
 <pre> 
 sudo chmod +x /usr/share/applications/eclipse.desktop 
 </pre> 

 * Update the menu desktop files: 
 <pre> 
 sudo desktop-file-install /usr/share/applications/eclipse.desktop 
 </pre> 

 * Create a symlink for the executable: 
 <pre> 
 cd /usr/local/bin 
 sudo ln -s /opt/eclipse/eclipse 
 </pre> 

 * Add the eclipse icon: 
 <pre> 
 sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm 
 </pre> 

 h3. Install Maven 

 The last maven release to support Java SE 6 was 3.2.5. 

 * Download maven 3.2.5: 
 <pre> 
 wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz 
 </pre> 

 * Extract maven to /opt: 
 <pre> 
 tar xzf apache-maven-3.2.5-bin.tar.gz -C /opt 
 </pre> 

 * Edit the @.bashrc@ file: 
 <pre> 
 nano ~/.bashrc 
 </pre> 
 #* And add the following: 
 <pre> 
 export PATH=/opt/apache-maven-3.2.5/bin/:$PATH 
 </pre> 

 * Apply the changes to @.bashrc@" 
 <pre> 
 source ~/.bashrc 
 </pre> 

 * Check that maven was installed correctly: 
 <pre> 
 mvn -version 
 </pre> 

 h2. Resources 

 * https://askubuntu.com/questions/337281/installing-eclipse-kepler 
 * https://stackoverflow.com/questions/36141186/what-version-of-maven-is-compatible-with-java-6

Back