Compile your java code to different JRE

  1. Right-click on your project.
  2. Select Properties.
  3. Go to Java Compiler
  4. Check Enable project specific settings.
  5. Set the JRE that you like.