Hi and thanks

"Solved" it by moving the project to another freshly installed machine (NB
16 & Java 19; the old machine had NB 16 with Java 17 if I recall correctly).

The tested project is a library with no dependencies.
The test libraries are JUnit 4.13.2 and Hamcrest Core 1.3.

Haven't used JUnit 5 because I couldn't make it work and didn't want to
spend any time searching for a solution.

Thanks again,
George T.

În mie., 18 ian. 2023 la 18:13, Eric Bresie <ebre...@gmail.com> a scris:

> What version of JUnit is  being used?  Not sure if JUnit 5 is fully
> compatible.  Can try JUnit 4 and see if this resolves the problem with test
> at least.
>
> Eric Bresie
> ebre...@gmail.com
>
> On January 17, 2023 at 3:12:57 PM CST, Gheorghe TUDOSE <tudo....@gmail.com>
> wrote:
> Hi,
>
> I have the same issue; I can't run unit tests, nor can I run a command
> line application testing my code.
> As per this SO post <https://stackoverflow.com/q/4386076>, deactivating
> the "Compile on Save" option makes the problem go away kinda - the command
> line application runs but the tests don't (there's a "No tests executed."
> message in the test output console).
>
> HTH
> George T.
>
> În vin., 16 dec. 2022 la 00:17, Sam Lalani <samlal...@yahoo.com.invalid>
> a scris:
>
>> It is an Ant based project.
>>
>> -----Original Message-----
>> From: Thomas Kellerer <sham...@gmx.net>
>> Sent: Thursday, December 15, 2022 2:22 PM
>> To: users@netbeans.apache.org
>> Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
>>
>> No, not a requirement. But there are some problems with Gradle (7.x) and
>> NB 16
>>
>> So is it an Ant based project or is using Maven?
>>
>> Sam Lalani schrieb am 15.12.2022 um 18:01:
>> > No, I am not using Gradle.  Is that a requirement for NB16?
>> >
>> > -----Original Message-----
>> > From: Thomas Kellerer <sham...@gmx.net>
>> > Sent: Thursday, December 15, 2022 8:45 AM
>> > To: users@netbeans.apache.org
>> > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
>> >
>> > Are you using Gradle?
>> >
>> >
>> > Sam Lalani schrieb am 15.12.2022 um 15:21:
>> >> I am running NB16 in Windows 10.  I have a Java program that is
>> >> giving this
>> >> error:
>> >>
>> >>         Exception in thread "Thread-2" java.lang.RuntimeException:
>> >> Uncompilable code
>> >>
>> >> However, the same code in NB15 has no problems.
>> >>
>> >> This issue shows up only when I "Clean and Build" in NB16 "AND" run
>> >> it in NB16.
>> >>
>> >> If I "Clean and Build" in NB15 and run it in NB15 then no problem.
>> >> If I "Clean and Build" in NB15 and run it in NB16 then no problem.
>> >> If I "Clean and Build" in NB16 and run the program using the command
>> >> prompt then no problem.
>> >> If I "Clean and Build" in NB16 and run it in NB16 then it shows the
>> error.
>> >>
>> >> The program is fairly large, and I don't think I can provide the
>> >> source code due to company policies.
>> >>
>> >> Here is some info about my system from the NB16 About page:
>> >>
>> >> Product Version: Apache NetBeans IDE 16
>> >> Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
>> >> Runtime: OpenJDK Runtime Environment 17+35-2724
>> >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>> >> User
>> >> directory: C:\Users\samla\AppData\Roaming\NetBeans\16
>> >> Cache directory: C:\Users\samla\AppData\Local\NetBeans\Cache\16
>> >>
>> >> What else can I provide that would make it easier to find the problem
>> >> in NB16?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>> --
>> This email has been checked for viruses by Avast antivirus software.
>> www.avast.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Reply via email to