Unsubscribe
Unsubscribe Sent from ProtonMail mobile
Error message not correct when using an Omniface socket tag (JSF)
Here is the case: [image.png] How can I report this to the developers of NetBeans? Or is it the developers of Omnifaces who should deal with it? Thank you, Clement -- Clément Levallois Associate Professor emlyon business school Twitter and Skype: @seinecle mobile: +33(0)6 59 08 33 92 Sent with [ProtonMail](https://protonmail.com/) Secure Email.
disable pack200 with the nbm-maven-plugin?
pack200 was removed from the JDK, so running nbm-maven-plugin with a recent JDK throws: A required class was missing while executing org.codehaus.mojo:nbm-maven-plugin:4.1:cluster-app: java/util/jar/Pack200 Is there a way to disable the pack200 compression when using nbm-maven-plugin? -- Clément Levallois Associate Professor emlyon business school Twitter and Skype: @seinecle mobile: +33(0)6 59 08 33 92 Sent with [ProtonMail](https://protonmail.com) Secure Email.
netbeans release 82 integrated in a Jigsaw modular project: package issues
Hi, Basically I get package conflicts when adding the NetBeans platform (release 82) to a modular project. I made it into a [Stackoverflow question](https://stackoverflow.com/questions/66047890/netbeans-platform-module-mymodule-contains-package-java-xml-package-module-jav), but here it is as this is directly relevant to NetBeans specialists: GephiFunctions is my Java library following the module logic of Java (has a module-info.java). The project depends on the [Gephi Toolkit][1], itself depending on the [release 82 of the NetBeans platform][2] (not the NetBeans IDE, to be clear, but the NetBeans platform). When I call a method from this library, I get: Error occurred during initialization of boot layer java.lang.module.ResolutionException: Module GephiFunctions contains package javax.xml.namespace, module java.xml exports package javax.xml.namespace to GephiFunctions I tried to exlude the libraries that included java.xml packages: org.gephi gephi-toolkit 0.9.2 stax stax-api org.apache.xmlgraphics batik-ext xml-apis xml-apis-ext Now the project launches, but these libraries are needed tun run the Gephi toolkit, because this basic call fails (returns null): ProjectController pc = Lookup.getDefault().lookup(ProjectController.class); I need to have this GephiFunctions to be a module, because it is integrated in a larger modular application (having it as a classic jar would turn it into an unnamed module, which would open all its packages and continue creating these conflicting packaging issues). Anything I could try before throwing the towel? [1]: https://github.com/gephi/gephi-toolkit [2]: https://mvnrepository.com/artifact/org.netbeans.api/org-netbeans-modules-java-platform/RELEASE82 -- Clément Levallois Associate Professor emlyon business school Twitter and Skype: @seinecle mobile: +33(0)6 59 08 33 92 Sent with [ProtonMail](https://protonmail.com) Secure Email.
Re: Running a modular (JPMS) java project from NetBeans in debug mode?
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 Still, the debugger was just "listening" without doing anything, the app was not running. I followed the further steps here to attach the debugger: https://stackoverflow.com/questions/56197372/i-cant-debug-an-application-using-netbeans-11-with-javafx-12 And now everything is fine. Thx! Clement ‐‐‐ Original Message ‐‐‐ On Tuesday 29 December 2020 12:32, Geertjan Wielenga wrote: > 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, 29 Dec 2020 at 12:21, Clement Levallois > wrote: > >> 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/gui --module net.clementlevallois.javafxtest.gui >> >> The result looks like: >> https://github.com/seinecle/yetanotherjavafxjmpstest >> >> So... not sure at which step / how I can use the "debug" function in >> NetBeans for such a project? >> >> Clement >> Sent with [ProtonMail](https://protonmail.com) Secure Email. >> >> ‐‐‐ Original Message ‐‐‐ >> On Tuesday 29 December 2020 12:12, Geertjan Wielenga >> wrote: >> >>> 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 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 NetBeans for launching my modular projects? (without maven plugins, >>>> just the equivalent of the command line above: java --module-path etc). >>>> Thx! >>>> >>>> Clement Levallois >>>> --
Re: Running a modular (JPMS) java project from NetBeans in debug mode?
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/gui --module net.clementlevallois.javafxtest.gui The result looks like: https://github.com/seinecle/yetanotherjavafxjmpstest So... not sure at which step / how I can use the "debug" function in NetBeans for such a project? Clement Sent with [ProtonMail](https://protonmail.com) Secure Email. ‐‐‐ Original Message ‐‐‐ On Tuesday 29 December 2020 12:12, Geertjan Wielenga wrote: > 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 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 >> NetBeans for launching my modular projects? (without maven plugins, just the >> equivalent of the command line above: java --module-path etc). Thx! >> >> Clement Levallois >> --
Running a modular (JPMS) java project from NetBeans in debug mode?
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 NetBeans for launching my modular projects? (without maven plugins, just the equivalent of the command line above: java --module-path etc). Thx! Clement Levallois --