Re: Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Clement Levallois
Hi, Thank you, your questions put me on the right track. I did what you suggested (right click and Debug) and met an error about missing javafx libs. I need to add the javafx plugin, add the javafx lib in NetBeans and basically follow the steps here: https://openjfx.io/openjfx-docs/#introduction

Re: Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Neil C Smith
On Tue, 29 Dec 2020 at 11:21, Clement Levallois wrote: > So... not sure at which step / how I can use the "debug" function in NetBeans > for such a project? You'll likely need to edit the actions for run / debug in project properties to use module path rather than class path (you can still use c

Re: Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Geertjan Wielenga
What happens when you set a breakpoint in your code in NetBeans and right-click the project and choose Debug? You might need to look at the Debug action, after right-clicking the project, choosing Properties, and look in the Actions category to finetune the Debug action for your needs. Gj On Tue

Re: Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Clement Levallois
Hi, The project is made of a parent pom and child maven modules. Yes, I can open it in NetBeans and build it. The build creates a "mods" folder where all the JPMS jars are generated. Then, I run the app with a command which specifies the module-path and the start module: java --module-path mods

Re: Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Geertjan Wielenga
What happens when you use File | Open Project and browse to the root folder? Alternatively, create a new Java project in NetBeans and copy your code into the generated project template. Gj On Tue, 29 Dec 2020 at 12:05, Clement Levallois wrote: > Hi, > > At the moment I run my jigsaw / JPMS proj

Running a modular (JPMS) java project from NetBeans in debug mode?

2020-12-29 Thread Clement Levallois
Hi, At the moment I run my jigsaw / JPMS project from the command line: java --module-path mods/core --module net.clementlevallois.certificateapp.core This works fine but this prevents me from using NetBeans debugging capabilities (line by line debugging in particular). How can I come back to Ne