Based on MX-14 (http://www.mepiscommunity.org/mx) installed as a VirtualBox guest.
The Java development environment is based on Java 7 and Tomcat 7 as MX-14 only includes Eclipse 3.8 (current version is 4.5). In the future, the Java development environment should be updated to Java 8 and Tomcat 8, using Eclipse 4.5.
sudo apt-get install dkms build-essential linux-headers-686-pae
- Mount the guest additions disc image
sudo sh /media/VBOXADDITIONS_{version}/VBoxLinuxAdditions.run
su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer oracle-java7-set-default tomcat7 tomcat7-user maven git eclipse
exit
tomcat7-instance-create -p 10080 -c 10005 tomcat-dev
cd tomcat-dev
ln -s /usr/share/tomcat7/lib
ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
ln -s /usr/share/tomcat7/bin/bootstrap.jar bin/bootstrap.jar
ln -s /usr/share/tomcat7/bin/tomcat-juli.jar bin/tomcat-juli.jar
mkdir -p common/classes
mkdir -p server/classes
mkdir -p shared/classes
git config --global user.name {your-name}
git config --global user.email {the-email-address-you-use-for-github}
- Start Eclipse
- Help -> Install New Software...
- Install the following:
- m2e - Maven Integration for Eclipse
- Eclipse EGit
- Eclipse Java EE Developer Tools
- Eclipse Java Web Developer Tools
- Eclipse Web Developer Tools
- JST Server Adapters Extensions
- Window -> Preferences -> Server -> Runtime Environments
- Click Add...
- Select Apache Tomcat v7.0
- Check Create new local server
- Click Next
- Set the Tomcat installation directory to
{home}/tomcat-dev
- Click Finish
- Right-click on the server and select Properties.
- Go to the General tab.
- Click on switch location; it should read "/Servers/Tomcat v7.0 Server at localhost.server"
- Click OK
- Right-click on the server and select Open.
- Under Server Locations, select Use Tomcat installation