Thanks for pointing that thread out.

I got a reply on StackOverflow, which explains how to revert JUnit 5 in NB 10 to JUnit 4.  This seems to clear up the problems.  I'll suggest following the steps given there for anyone having the same problem, it seems a decent workaround and lets me continue using Ant and not convert the entire project to Maven.

https://stackoverflow.com/questions/54161715/netbeans-10-junit-jar-not-found/54162910#54162910


On 1/12/2019 2:25 PM, Geertjan Wielenga wrote:
Here's where you can search the mailing list:

https://lists.apache.org/list.html?users@netbeans.apache.org

For example, read this:

https://lists.apache.org/thread.html/e3bba5754847899c06b7c6f52185b39ae56882f7d128949e2bdbd3c5@%3Cusers.netbeans.apache.org%3E

Gj

On Sat, Jan 12, 2019 at 7:17 PM Brenden Towey <brendento...@gmail.com <mailto:brendento...@gmail.com>> wrote:

    Hi all,

    I have a new installation of NetBeans 10. Trying to run some initial
    unit tests I just created, I get the following error:

    The <classpath> or <modulepath> for <junit> must include junit.jar
    if not in Ant's own classpath

    I have a question posted about this on StackOverflow if you'd rather
    answer there:
    https://stackoverflow.com/questions/54161715/netbeans-10-junit-jar-not-found

    I could probably hack the build script to includejunit.jar, but I
    want to know: what's the right way to fix this?

    Shouldn't NetBeans come with a version of JUnit already accessible?
    Should I configure my project differently? How do I add a path to the
    library?

    How can I find the classpath for Ant (and what version/binary NetBeans
    is using)?

    The project'Test Libraries'  shows that JUnit 5.3.1 is present, I have
    three Jar files listed there: junit-jipiter-api, junit-jupiter-params,
    junit-jupiter-engine. But it seems to be not actually found.

    The project is a standard Java Library (no main class). I didn't
    add any
    "extras" or mess with the default project setup that NetBeans
    uses. Just
    used the basic setup wizard thing.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto: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