It is possible to set, use or test Netbeans project with multiple JDK
For this, for example in Apache NetBeans IDE 11.2
- Right click on the <ProjectName>
- Click Properties
- Click Libraries, then for “Java Platform” choose desired JDK
- Click Ok
Observation:
If JDK is not listed in “Java Platform” scroll box, you can add it, for example:
- Click “Manage Platforms…” button.
- Click “Add Platform…” button
- In “Select platform type” you can choose a local or even a remote platform, keep selected “Java Standard Edition.”
- Click Next
- Choose platform (jdk) folder as needed.
- Click Next
- Accept detected platform name (or edit it if needed)
- Click Finish