Using Oracle Java 7 and 8 on Codeship

Written by: Peter Edge
1 min read
Stay connected

We love our Java and JVM-based customers. For some time, we have supported the OpenJDK 7 Java Development Kit, allowing Continuous Delivery with Codeship for projects utilizing Java, Scala, Clojure and Groovy. Today, we are happy to announce the support of the Oracle 7 and 8 JDKs.

How Codeship supports Java

We are providing a command to support which version of Java will be setup for your environment: jdk_switcher. It provides two commands:

  • use: select which JDK will be available. This will change the java executables, and update the JAVA_HOME and JRE_HOME environment variables accordingly

  • home: get the value for JAVA_HOME for a given JDK (but make no updates to the environment)

The valid arguments for either command are:

  • openjdk7 (this is selected by default)

  • oraclejdk7

  • oraclejdk8

Further Information

Further documentation is provided in our Codeship Java Documentation and of course as always, if you encounter any issues, feel free to contact us on twitter or at support@codeship.io. So let's get started and set up your Java project on Codeship!

Please be aware though that Java8 is only available on our Ubuntu Trusty (14.04) builds since we end support of Ubuntu Quantal (12.10) on 31st of October 2014.

Stay up to date

We'll never share your email address and you can opt out at any time, we promise.

Loading form...
Your ad blocker may be blocking functionality on this page. Please disable for an improved experience.