How to compile and install newest version of OmegaT (v4.0.1 or higher) from Github source code in Ubuntu 16.04 LTS 64-bit

Posted: 2016/02/19 in Ubuntu
Tags: , , , , , , , , , , , , ,
 ###############################################################
# install recommended Java version for OmegaT
 ###############################################################
 sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update
 # uninstall Java 9 which is currently incompatible with OmegaT:
 sudo apt-get purge icedtea-netx oracle-java9-installer
 sudo apt-get build-dep ant omegat
 sudo apt-get install icedtea-netx oracle-java8-installer
 export JAVA_HOME=/usr/lib/jvm/java-8-oracle
 java -version
 # Terminal output should be similar to this:
 # java version "1.8.0_111"
 # Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
 # Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
 ###############################################################
 # install newest version of OmegaT
 ###############################################################
 cd
 sudo rm -rf OmegaT
 git clone https://github.com/OmegaT-Project/OmegaT
 cd OmegaT
# OmegaT switched from the ant to the gradlew build system in 2016:
./gradlew clean
./gradlew buildNeeded
./gradlew check
# gradlew check Terminal output should look like this:
# :compileJava UP-TO-DATE
# :processResources UP-TO-DATE
# :classes UP-TO-DATE
# :compileTestJava UP-TO-DATE
# :processTestResources UP-TO-DATE
# :testClasses UP-TO-DATE
# :test UP-TO-DATE
# :check UP-TO-DATE
# :release:WebStart-specific:check UP-TO-DATE
# BUILD SUCCESSFUL
# Total time: 1.053 secs
./gradlew run
 # installed OmegaT version should be 4.0.1 or higher
Advertisements
Comments
  1. Nicco says:

    Hello, thank you for your post.

    I’m having this error when trying the “sudo ant release” command:

    Buildfile: build.xml does not exist!
    Build failed

    And having the following error when trying the “java -jar ~/OmegaT/dist/OmegaT.jar” command:

    Error: Unable to access jarfile /home/netero/OmegaT/dist/OmegaT.jar

    I must have missed something.
    Do you know how can I fix it?

    Thank you so much.

    • mark911 says:

      @Nicco: See updated bash script above. Instructions had to change due to change from ant to gradlew build system several months ago. Hope the new script works for you as well. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s