On 6/5/25 16:13, Kenneth Fogel wrote:
> Thank you for your suggestions. In the end this is what worked:
>
> In the project Properties->Build->Compiling turn off Compile on Save
any volunteers wanting to open a PR which disables COS by default for ant
projects?
It is well known for causing all kin
not help but generated a new error about the fact
that there was already a source and target setting.
Again, thank you to everyone for their advice.
Ken
-Original Message-
From: Neil C Smith
Sent: June 5, 2025 5:24 AM
To: dev@netbeans.apache.org; Kenneth Fogel
Subject: Re: Java
Hi Ken,
On Wed, 4 Jun 2025 at 21:42, Kenneth Fogel
wrote:
> Error: LinkageError occurred while loading main class JavaSpaghetti
> java.lang.UnsupportedClassVersionError: JavaSpaghetti (class
> file version 68.65535) was compiled with preview features that are
> unsupported. This v
On Wed, 4 Jun 2025 at 21:42, Kenneth Fogel
wrote:
> Error: LinkageError occurred while loading main class JavaSpaghetti
> java.lang.UnsupportedClassVersionError: JavaSpaghetti (class
> file version 68.65535) was compiled with preview features that are
> unsupported. This version of
Hi,
in general: the runtime JDK does not influence the JDK range projects can use.
It also doesn't really matter what JDK version was used to build NB, as long
its JDK 17 or later.
NetBeans 26 supports running on JDK 24, 21 and 17 and projects up to --release
24. If you are using JDK 25 API it
Forgot to mention that the example code worked in NetBeans 26 when the JDK was
24 and --enable-preview was turned on. The problem is that Java 25 requires
IO.println instead of plain println. This makes my current example code
obsolete which is why I need to use Java 25.
Ken
-Original Me