[Support] Re: error "records are not supported in -source 11 (use -source 16 or higher to enable records)"

2021-11-12 Thread Richard Schmidt
I have installed graalvm-ce-java16-21.2.0 which provides java 16 SDK and
and have downloaded and installed openjfx.io OpenJFX 16 and have developed
a javafx Maven projects in NetBeans 12.4 which has ben working fine. Now I
have declared the following record (the new data record type introduced in
Java 14):

record EventTargetFinder(List> filterTargetTypes) {
EventTargetFinder(List> filterTargetTypes) {
this.filterTargetTypes =
Collections.unmodifiableList(filterTargetTypes);
}

NetBeans is telling me "records are not supported in -source 11 (use
-source 16 or higher to enable records)".

I have searched Google and StackOverFlow and am unable to find relavant
information. I have examined the NetBeans project properties and have found
that the porject compiles with Java 16, but in the category "Sources" there
is label "Source/Binary Format:" with a combo box with the entry "11"
 selected and I am unable to change the selection.

Any help with getting over this hump would be appreciated.


Error: Could not find or load main class Initializing view, please wait ...

2020-04-16 Thread Richard Schmidt
I just completed a first time installation of apache netbeans 11.0 on a
windows 10 system. I have previously installed netbeans 8.2 which is using
jdk.1.8.0_241 installed in C:/ProgramFiles (x86)/java. I installed netbeans
11.0 in C;/Program Files/NetBeans 11.0/netbeans.

netbeans64.exe would not start, complaining that it could not find jdk 8 or
higher. After setting netbeans_jdkhome to my jdk1.8.0_241 path,
netbeans64.exe started fine. I then attempted to create my first javaFX
project using ANT. The project was created. But when I run it, I get a
window displaying Available Classes, but only containing the text
"Initializing view, please wait..." and when I click the text and then
click "Select Class",the output to the console contains the following error

Executing
C:\Users\don\Documents\NetBeansProjects\NewTest\dist\run2028048121\NewTest.jar
using platform C:\Program Files (x86)\java\jdk1.8.0_241\jre/bin/java
Error: Could not find or load main class Initializing view, please wait ...

Can anyone tell me what to do to get this program to run? Thanks.