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.