I am getting this error while running my program in NetBeans.
nt -f D:\\\\PMT_LandingPage jfxsa-run
D:\\PMT_LandingPage\\nbproject\\jfx-impl.xml:3725: The fo
ant uses a variable named platform.active
for identifiying the java home path. Netbeans should initialize that variable with the correct path, and indeed it does depending on your selected java platform.
But, if you select the default platform, netbeans does not assign the correct path to that variable. Instead its value become default_platform
.
So, in order to correctly find the java path, you should probably change a line like this:
into something like this:
This checks the value of platform.active
and use it, if it is a path, or use the value of java.home
instead.