I want to perform a PDE build for my RCP product. I am compiling my product with JDK 11 but I want to set --release option as 1.8. I wanted to know how we can provide a default compliance setting in eclipse. So I can build my product with eclipse settings.
I want to set --release option as 8. But we can't add release option to <java />
tag. So I need to set a compliance level as 1.8 (by default) in JDT preferences.
Can anyone answer how we can set default compliance level and enable --release option in eclipse?
The eclipse version is 4.12 and I want to set release option as 8 for PDE build.
What all the options I have tried
- Set compliance level to 1.8 but it is setting for particular workspace. It is not setting for default.
- I have copied
org.eclipse.jdt.core.prefs
from workspace to \eclipse\configuration.settings - Provided javacSource & javacTarget (But here we need to provide --release value)
Thanks in advance.