It is supported: https://circleci.com/docs/build-image-trusty/#java
You would use jdk1.8.0 as the version.
jdk1.8.0