Skip to main content
All CollectionsTests / Autograding
Java: Using different versions
Java: Using different versions

Using a different version of java for your tests than the codePost default

Vinay avatar
Written by Vinay
Updated over 4 years ago

The codePost default java container uses Java 8. However, you can run a custom version of java for your container.

Environment: 

  • Language: Java

  • Build Type: Custom - Ubuntu

  • Packages: apt-get install -y <your version of java here> 

  • Run Script: None

  • Helper Files: None

We recommend using openjdk for the right java version you need. To get the latest version, use default-jdk. 

Did this answer your question?