Please check my initial post How to use two different versions of JDK I thought agent can have different Java version.