Just a guess. Do you have JDK 15 installed and included in the windows 10 environment PATH variable ?
Z. https://www.backbutton.co.uk/ ¯\_(ツ)_/¯ ♡۶♡۶ ♡۶ On Thu, 21 Jan 2021, 10:45 Karan Agrawal, <karan....@gmail.com> wrote: > Hello Experts, > > I have migrated from Netbeans 8.0 to Apache Netbeans 12.2 > > My Java Projects uses JDK 8 with ANT. > Therefore, after opening the projects in Netbeans 12.2, I have added JDK8 > in the platform and updated *Project Properties* accordingly. > > With Netbeans 12.2, when "clean and build" is triggered, *ANT picks JDK > 15 and compilation fails*. > *Q.* How to make *ANT* pick the JDK mapped to the project in > project.properties? > > *System Details* > > *Product Version:* Apache NetBeans IDE 12.2 > > *Updates:* NetBeans IDE is updated to version NetBeans 8.2 Patch 2 > <http://wiki.netbeans.org/NetBeans8.2PatchesInfo> > > *Java:* 15.0.1; Java HotSpot(TM) 64-Bit Server VM 15.0.1+9-18 > > *Runtime:* Java(TM) SE Runtime Environment 15.0.1+9-18 > > *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) > > *User directory:* C:\Users\xxx\AppData\Roaming\NetBeans\12.2 > > *Cache directory:* C:\Users\xxx\AppData\Local\NetBeans\Cache\12.2 > > *ANT_HOME:* <PATH>\extide\ant > > *PS:* netbeans.conf is one option, but looking for a better alternative. > > Thanks, > Karan >