Using Oracle Java 7 and 8 on Codeship

Codeship News

Reading Time: 2 minutes

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!

Sign up for a free Codeship Account

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.

Subscribe via Email

Over 60,000 people from companies like Netflix, Apple, Spotify and O'Reilly are reading our articles.
Subscribe to receive a weekly newsletter with articles around Continuous Integration, Docker, and software development best practices.



We promise that we won't spam you. You can unsubscribe any time.

Join the Discussion

Leave us some comments on what you think about this topic or if you like to add something.