Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added another method for obtaining the unlimited strength files for java 7 and formatted commands in code blocks.

...

Installing the software packages detailed below requires several common system-wide utilities. They can be installed by running:

Code Block
languagebash
sudo apt-get install wget

Java Development Kit (JDK) & Java Runtime Environment (JRE)

In order to get the proprietary Oracle Java 7 packages, run the following:

 

Code Block
languagebash
sudo apt-get install python-software-properties (This may be necessary to use the add-apt-repository command)

...


sudo add-apt-repository ppa:webupd8team/java

...


sudo apt-get update

...


sudo apt-get install oracle-java7-installer

...


sudo update-java-alternatives -s java-7-oracle
Info

Note: when running the final command above, you might see some errors like the following:

update-alternatives: error: no alternatives for mozilla-javaplugin.so.

These errors can be safely ignored.

 

To set the JAVA_HOME environment variable for the installed JDK:

Code Block
languagebash
export JAVA_HOME=/usr/lib/jvm/java-7-oracle

...


echo "export JAVA_HOME=$JAVA_HOME" | sudo tee -a /etc/environment

 

To obtain the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files required for unlimited strength encryption used in DCDT, run either of the following sets of commands:

Code Block
languagebash
sudo apt-get install oracle-java7-unlimited-jce-policy

OR

Code Block
languagebash
wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jce/7/UnlimitedJCEPolicyJDK7.zip

...

 
sudo apt-get install unzip (if not already installed)

...


unzip UnlimitedJCEPolicyJDK7.zip

...


sudo cp UnlimitedJCEPolicy/local_policy.jar $JAVA_HOME/jre/lib/security

...


sudo cp UnlimitedJCEPolicy/US_export_policy.jar $JAVA_HOME/jre/lib/security

Mercurial CLI

Run the following:

Code Block
languagebash
sudo apt-get install mercurial

Apache Maven

Run the following:

Code Block
languagebash
sudo apt-get install maven

Apache Tomcat

Run the following:

Code Block
languagebash
sudo apt-get install tomcat7 tomcat7-admin