Dev environment setup with Eclipse and Ubuntu (Linux Mint)

Developers who want to use EnterMedia on an OS with a familiar UI can use these Ubuntu installation instructions. This process utilizes Java, Eclipse, Groovy and SmartGit. Alternate Instructions for standard Ubuntu Installation are also available.

 

 

1.) Install Java and Eclipse:

If you have multiple versions of java installed, install the following package and set as the default one:

Download the latest JDK such as this one: https://jdk.java.net/23/

Unzip the contents of the tar file to: /usr/lib/jvm/jdk-23.0.2
Make a symbolic link: sudo ln -s /usr/lib/jvm/jdk-23.0.2 /usr/lib/jvm/jdk
 

Then chose this JVM for your global path

vi /etc/profile.d/java.sh

export JAVA_HOME="/usr/lib/jvm/jdk"
export PATH="$JAVA_HOME/bin:$PATH"
 

Download Eclipse http://www.eclipse.org/downloads/ 

Install useful plugins:

1. Setup HTML editor by going to Help | Eclipse Marketplace | Search for "HTML Editor" pick top one

2.) Groovy

Help | Install New Software | http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/ 

Select : 2.4 Groovy Compiler

3.) Check out the source from git Make sure to check out the key EnterMedia projects.

git clone -b em11 --single-branch git://github.com/entermedia-community/entermedia-core.git 
git clone -b em11 --single-branch git://github.com/entermedia-community/entermedia-server.git 
git clone -b em11 --single-branch git://github.com/entermedia-community/demoall.git 
git clone -b em11 --single-branch git://github.com/entermedia-community/app-emshare.git 
git clone -b em11 --single-branch git://github.com/entermedia-community/extension-openedit.git 
git clone -b master --single-branch git://github.com/entermedia-community/tomcat9.git

Eclipse File | Import | Existing Projects into Workspace Choose each of the main projects and import them, Do not check "Copy projects into workspace"

4.) Install OS Dependencies

 sudo apt-get install --no-install-recommends -y ffmpeg automake libogg0 libogg-dev libvorbis0a libvorbisenc2 x264  lame libimage-exiftool-perl libreoffice unzip git libltdl-dev librsvg2-2 libwmf-bin libxt6 libgomp1 libtiff5-dev libtiff5 libfaac-dev lame imagemagick ghostscript

Install libx264-normal.ffpreset into: /home/USERNAME/.ffmpeg/ *(Skip if already installed.)

5.) Import the EnterMedia Code Style guide

Find the style guide here: entermedia-server/etc/EnterMedia.format

6.) Run your application server

Right click on demoall/etc/demoall Tomcat.launch | Debug As You should now be able to connect to the webapp by going to http://localhost:8080/ *(Must be launched again everytime eclipsed is closed.)