Can't attach to a debug process on Java 17
Greetings, I am using NetBeans 15-rc4 on Fedora Linux. I see the same problem under NetBeans 14. I have been debugging my Java app by attaching to a process under Java 8 with no problem. I upgraded my app and system to Java 17. I can no longer attach to the process. NetBeans says, "Connection refused." Interestingly, IntelliJ can attach to the process, so I know it is something to do with NetBeans and Java 17. When I try to attach to the process with NetBeans, I select: Debugger: Java Debugger (JPDA) Connector: SocketAttach (Attaches by socket to other VMs) Transport: dt_socket Host: i9-tower Port: 9090 Timeout [ms]: [blank] These are the same parameters I used with Java 8 that worked fine. Any suggestions? Thanks! Blake McBride
JavaScript global global symbols
Greetings, I have a large web app that has many JavaScript files. Some of those files are classes that define global utility functions that I use everywhere. NetBeans doesn't recognize those global symbols because things are loaded in a complex way. NetBeans wants me to declare the global symbols in each JavaScript file in the form: /* global mysymbol */ Rather than declaring those symbols global in hundreds of JavaScript files, can't I just do those declarations in one place? Thanks! Blake McBride
Debugging with Ant
Greetings, I've got a somewhat unusual setup for some specific reasons. Without getting into the reasons, I have: 1. my own build system (for a large Java app) 2. an Ant driver for my build system Since I have the Ant driver, I can run my build system through NetBeans just fine. However, here is the problem. When I want to debug the program, I go through two steps: a. run the Ant target that (causes my build system) to deploy the app and start tomcat b. I manually attach to the correct debug port through NetBeans After that, I can debug just fine. So here is my question. It would be nice to have a button that: A. runs a pre-defined Ant target B. waits a few seconds for tomcat to semi-start C. attach to the debug port Is there any way to do this? Thank you! Blake McBride
Re: Simple navigation question
Perfect. Thanks! On Thu, Aug 18, 2022 at 2:45 PM Mark A. Flacy wrote: > Right click in the file's edit window and get the pop-up menu. "Select in > Projects" should do the trick. > > -- > Mark A. Flacy > mfl...@verizon.net > > On 2022 M08 18, Thu 14:37:11 CDT Blake McBride wrote: > > Greetings, > > > > I am using NetBeans 14. I have a simple navigation question (in Java). > > > > Let's say I have many classes in a package hierarchy. I am editing a > > particular file / class. I want to click something so that my "Packages" > > window selects the file I am editing. > > > > Seems like a simple need. I just can't figure out how to do it. > > > > Sure appreciate any help. > > > > Blake McBride > > > > > > - > 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 > >
Simple navigation question
Greetings, I am using NetBeans 14. I have a simple navigation question (in Java). Let's say I have many classes in a package hierarchy. I am editing a particular file / class. I want to click something so that my "Packages" window selects the file I am editing. Seems like a simple need. I just can't figure out how to do it. Sure appreciate any help. Blake McBride
Browser refuses HTML debug run
Greetings, I have an HTML/JS app I'd like to debug. I am on NB 14 and Linux. The Chrome extension is installed. When I attempt to run "index.html". the browser comes up correctly. However, I get a message: Browser refused to debug this tab. Close Chrome Developer Tools (or any other browser debugger) and try again. I completely rebooted my machine, logged in, and ran NetBeans. I didn't start anything else. I'm still getting that error. Sure appreciate any pointers. Thanks! Blake McBride
Re: Running with three heads
Thanks! On Wed, Aug 10, 2022 at 7:11 PM Mark A. Flacy wrote: > You can drag off any edit window to another display (or even another > window on > the same display). The overall interface gets a little weird on a Mac, > but > perfectly doable. > > -- > Mark A. Flacy > mfl...@verizon.net > > On 2022 M08 10, Wed 19:05:48 CDT Blake McBride wrote: > > Greetings, > > > > I have three monitors. I like to have the IDE with the back-end on one > > monitor. Another IDE running the front-end on a second monitor. And > then, > > the browser displaying the app on the third monitor. > > > > The problem I am having is that NB (14) will only allow me to have one > > (essentially) head. I know I can open up both projects on the same head, > > but I want to see code from both at the same time. So, I'd like to open > > two copies of NB. One would be open to my front-end project, and the > other > > would be open to my back-end project. Can I do this? > > > > Thanks! > > > > Blake McBride > > > > > > - > 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 > >
Running with three heads
Greetings, I have three monitors. I like to have the IDE with the back-end on one monitor. Another IDE running the front-end on a second monitor. And then, the browser displaying the app on the third monitor. The problem I am having is that NB (14) will only allow me to have one (essentially) head. I know I can open up both projects on the same head, but I want to see code from both at the same time. So, I'd like to open two copies of NB. One would be open to my front-end project, and the other would be open to my back-end project. Can I do this? Thanks! Blake McBride
NB 14 - doesn't detect pre-existing Ant project
Greetings, I have a large Java project that I have been using with IntelliJ. I'd like to switch back to NetBeans. Although I am using IntelliJ, I'm not really using their build system. I actually wrote my own build system. I have a simple Ant script that can interface with my build system, and that's what I've been using to integrate it into the IDE. So, theoretically, if NetBeans sees my build.xml, it should be able to integrate, but it doesn't detect the build.xml as an Ant project. I can't open the project. I suppose I could create an empty NetBeans project and then copy over my source. Is that the only way to do it? Thanks! Blake McBride
12.6-rc1: Can't set breakpoints in Groovy until a Java file is displayed
If I bring up NetBeans 12.6-rc1 on a project with Java & Groovy source files and go to a Groovy source file, the system will not allow me to set a breakpoint. However, if I display a Java file and then go back to the Groovy file, I can then set a breakpoint in the Groovy file. It appears like displaying a Java file is activating something needed by the Groovy file. Once it is activated all works well until I exit NetBeans and go back in. Thanks. Blake McBride
Re: How do I activate Groovy plugin?
Has the activation of the Groovy plugin and the ability to debug Groovy been tested for the upcoming 12.6 release? On Fri, Oct 22, 2021 at 4:30 PM Blake McBride wrote: > Just FYI, the app I'm testing this is at > https://github.com/blakemcbride/Kiss > > On Fri, Oct 22, 2021 at 4:17 PM Anthony DeCarlo > wrote: > >> For whatever it's worth...I have never used groovy, but in NB 12.4, I >> just tried this. >> If I go to Tools -> Options -> Miscellaneous and click >> on the groovy tab, I get a progress bar that says 'Activating Groovy' >> and then after a few seconds it shows instructions on >> how to download and install groovy. >> >> Tony >> >> On 10/22/2021 17:04, Geertjan Wielenga wrote: >> >> Tried creating a Groovy file without having installed any plugins, seems >> to be looking for a plugin that it can't find, in 12.5, something seems >> broken with that plugin, others have reported similar issues with Groovy in >> 12.5. Maybe try 12.4 while we figure it out? >> >> Gj >> >> On Fri, Oct 22, 2021 at 11:02 PM Geertjan Wielenga < >> geertjan.wiele...@googlemail.com> wrote: >> >>> Not sure. Check whether you have syntax coloring before/after having the >>> plugin installed. >>> >>> Gj >>> >>> On Fri, Oct 22, 2021 at 11:01 PM Blake McBride >>> wrote: >>> >>>> On a possibly unrelated note, should I be able to activate the Groovy >>>> plugin? If so, how? >>>> >>>> What does the Groovy plugin do? >>>> >>>> Thanks! >>>> >>>> Blake >>>> >>>> >>>> On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga < >>>> geertjan.wiele...@googlemail.com> wrote: >>>> >>>>> Then you're going to need to describe what you did in a previous >>>>> release (i.e., not guess, but actually debug Groovy in the previous >>>>> release) and do the same as you did then in the current release and, on >>>>> that failing, provide your sequence of steps here so that others can >>>>> reproduce and help. >>>>> >>>>> Gj >>>>> >>>>> On Fri, Oct 22, 2021 at 10:34 PM Blake McBride >>>>> wrote: >>>>> >>>>>> I hope you're wrong. A previous release of NetBeans did allow me to >>>>>> debug Groovy. >>>>>> >>>>>> On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga < >>>>>> geertjan.wiele...@googlemail.com> wrote: >>>>>> >>>>>>> Not sure Groovy debugging is supported. If you see some syntax >>>>>>> coloring and editor features when you open your Groovy file, then that's >>>>>>> the Groovy support that there is. >>>>>>> >>>>>>> Gj >>>>>>> >>>>>>> On Fri, Oct 22, 2021 at 10:24 PM Blake McBride >>>>>>> wrote: >>>>>>> >>>>>>>> Greetings, >>>>>>>> >>>>>>>> I am using NetBeans 12.5 on a Linux box. >>>>>>>> >>>>>>>> If I go to Tools / Plugins / Installed >>>>>>>> I see the Groovy feature there but it is not activated. I tried >>>>>>>> everything I could think of but the "Activate" button never gets >>>>>>>> enabled. >>>>>>>> I even tried running NetBeans as root. >>>>>>>> >>>>>>>> My program uses Groovy but I can't seem to debug Groovy files. I >>>>>>>> presume that is because the Groovy plugin is not activated. How can I >>>>>>>> activate it? >>>>>>>> >>>>>>>> Thank you! >>>>>>>> >>>>>>>> Blake McBride >>>>>>>> >>>>>>>> >>
Re: How do I activate Groovy plugin?
Just FYI, the app I'm testing this is at https://github.com/blakemcbride/Kiss On Fri, Oct 22, 2021 at 4:17 PM Anthony DeCarlo wrote: > For whatever it's worth...I have never used groovy, but in NB 12.4, I just > tried this. > If I go to Tools -> Options -> Miscellaneous and click > on the groovy tab, I get a progress bar that says 'Activating Groovy' > and then after a few seconds it shows instructions on > how to download and install groovy. > > Tony > > On 10/22/2021 17:04, Geertjan Wielenga wrote: > > Tried creating a Groovy file without having installed any plugins, seems > to be looking for a plugin that it can't find, in 12.5, something seems > broken with that plugin, others have reported similar issues with Groovy in > 12.5. Maybe try 12.4 while we figure it out? > > Gj > > On Fri, Oct 22, 2021 at 11:02 PM Geertjan Wielenga < > geertjan.wiele...@googlemail.com> wrote: > >> Not sure. Check whether you have syntax coloring before/after having the >> plugin installed. >> >> Gj >> >> On Fri, Oct 22, 2021 at 11:01 PM Blake McBride >> wrote: >> >>> On a possibly unrelated note, should I be able to activate the Groovy >>> plugin? If so, how? >>> >>> What does the Groovy plugin do? >>> >>> Thanks! >>> >>> Blake >>> >>> >>> On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga < >>> geertjan.wiele...@googlemail.com> wrote: >>> >>>> Then you're going to need to describe what you did in a previous >>>> release (i.e., not guess, but actually debug Groovy in the previous >>>> release) and do the same as you did then in the current release and, on >>>> that failing, provide your sequence of steps here so that others can >>>> reproduce and help. >>>> >>>> Gj >>>> >>>> On Fri, Oct 22, 2021 at 10:34 PM Blake McBride >>>> wrote: >>>> >>>>> I hope you're wrong. A previous release of NetBeans did allow me to >>>>> debug Groovy. >>>>> >>>>> On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga < >>>>> geertjan.wiele...@googlemail.com> wrote: >>>>> >>>>>> Not sure Groovy debugging is supported. If you see some syntax >>>>>> coloring and editor features when you open your Groovy file, then that's >>>>>> the Groovy support that there is. >>>>>> >>>>>> Gj >>>>>> >>>>>> On Fri, Oct 22, 2021 at 10:24 PM Blake McBride >>>>>> wrote: >>>>>> >>>>>>> Greetings, >>>>>>> >>>>>>> I am using NetBeans 12.5 on a Linux box. >>>>>>> >>>>>>> If I go to Tools / Plugins / Installed >>>>>>> I see the Groovy feature there but it is not activated. I tried >>>>>>> everything I could think of but the "Activate" button never gets >>>>>>> enabled. >>>>>>> I even tried running NetBeans as root. >>>>>>> >>>>>>> My program uses Groovy but I can't seem to debug Groovy files. I >>>>>>> presume that is because the Groovy plugin is not activated. How can I >>>>>>> activate it? >>>>>>> >>>>>>> Thank you! >>>>>>> >>>>>>> Blake McBride >>>>>>> >>>>>>> >
Re: How do I activate Groovy plugin?
11.2 allows me to debug Groovy. (It had other problems dealing with a web app so I had to start it externally and then attach to the process.) 12.4 did not allow me to debug Groovy and I had to start the app externally 12.5 was able to start the web app and connect to it but could not debug Groovy Thanks. Blake On Fri, Oct 22, 2021 at 4:04 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Tried creating a Groovy file without having installed any plugins, seems > to be looking for a plugin that it can't find, in 12.5, something seems > broken with that plugin, others have reported similar issues with Groovy in > 12.5. Maybe try 12.4 while we figure it out? > > Gj > > On Fri, Oct 22, 2021 at 11:02 PM Geertjan Wielenga < > geertjan.wiele...@googlemail.com> wrote: > >> Not sure. Check whether you have syntax coloring before/after having the >> plugin installed. >> >> Gj >> >> On Fri, Oct 22, 2021 at 11:01 PM Blake McBride >> wrote: >> >>> On a possibly unrelated note, should I be able to activate the Groovy >>> plugin? If so, how? >>> >>> What does the Groovy plugin do? >>> >>> Thanks! >>> >>> Blake >>> >>> >>> On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga < >>> geertjan.wiele...@googlemail.com> wrote: >>> >>>> Then you're going to need to describe what you did in a previous >>>> release (i.e., not guess, but actually debug Groovy in the previous >>>> release) and do the same as you did then in the current release and, on >>>> that failing, provide your sequence of steps here so that others can >>>> reproduce and help. >>>> >>>> Gj >>>> >>>> On Fri, Oct 22, 2021 at 10:34 PM Blake McBride >>>> wrote: >>>> >>>>> I hope you're wrong. A previous release of NetBeans did allow me to >>>>> debug Groovy. >>>>> >>>>> On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga < >>>>> geertjan.wiele...@googlemail.com> wrote: >>>>> >>>>>> Not sure Groovy debugging is supported. If you see some syntax >>>>>> coloring and editor features when you open your Groovy file, then that's >>>>>> the Groovy support that there is. >>>>>> >>>>>> Gj >>>>>> >>>>>> On Fri, Oct 22, 2021 at 10:24 PM Blake McBride >>>>>> wrote: >>>>>> >>>>>>> Greetings, >>>>>>> >>>>>>> I am using NetBeans 12.5 on a Linux box. >>>>>>> >>>>>>> If I go to Tools / Plugins / Installed >>>>>>> I see the Groovy feature there but it is not activated. I tried >>>>>>> everything I could think of but the "Activate" button never gets >>>>>>> enabled. >>>>>>> I even tried running NetBeans as root. >>>>>>> >>>>>>> My program uses Groovy but I can't seem to debug Groovy files. I >>>>>>> presume that is because the Groovy plugin is not activated. How can I >>>>>>> activate it? >>>>>>> >>>>>>> Thank you! >>>>>>> >>>>>>> Blake McBride >>>>>>> >>>>>>>
Re: How do I activate Groovy plugin?
On a possibly unrelated note, should I be able to activate the Groovy plugin? If so, how? What does the Groovy plugin do? Thanks! Blake On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Then you're going to need to describe what you did in a previous release > (i.e., not guess, but actually debug Groovy in the previous release) and do > the same as you did then in the current release and, on that failing, > provide your sequence of steps here so that others can reproduce and help. > > Gj > > On Fri, Oct 22, 2021 at 10:34 PM Blake McBride > wrote: > >> I hope you're wrong. A previous release of NetBeans did allow me to >> debug Groovy. >> >> On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga < >> geertjan.wiele...@googlemail.com> wrote: >> >>> Not sure Groovy debugging is supported. If you see some syntax coloring >>> and editor features when you open your Groovy file, then that's the Groovy >>> support that there is. >>> >>> Gj >>> >>> On Fri, Oct 22, 2021 at 10:24 PM Blake McBride >>> wrote: >>> >>>> Greetings, >>>> >>>> I am using NetBeans 12.5 on a Linux box. >>>> >>>> If I go to Tools / Plugins / Installed >>>> I see the Groovy feature there but it is not activated. I tried >>>> everything I could think of but the "Activate" button never gets enabled. >>>> I even tried running NetBeans as root. >>>> >>>> My program uses Groovy but I can't seem to debug Groovy files. I >>>> presume that is because the Groovy plugin is not activated. How can I >>>> activate it? >>>> >>>> Thank you! >>>> >>>> Blake McBride >>>> >>>>
Re: How do I activate Groovy plugin?
I hope you're wrong. A previous release of NetBeans did allow me to debug Groovy. On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Not sure Groovy debugging is supported. If you see some syntax coloring > and editor features when you open your Groovy file, then that's the Groovy > support that there is. > > Gj > > On Fri, Oct 22, 2021 at 10:24 PM Blake McBride > wrote: > >> Greetings, >> >> I am using NetBeans 12.5 on a Linux box. >> >> If I go to Tools / Plugins / Installed >> I see the Groovy feature there but it is not activated. I tried >> everything I could think of but the "Activate" button never gets enabled. >> I even tried running NetBeans as root. >> >> My program uses Groovy but I can't seem to debug Groovy files. I presume >> that is because the Groovy plugin is not activated. How can I activate it? >> >> Thank you! >> >> Blake McBride >> >>
How do I activate Groovy plugin?
Greetings, I am using NetBeans 12.5 on a Linux box. If I go to Tools / Plugins / Installed I see the Groovy feature there but it is not activated. I tried everything I could think of but the "Activate" button never gets enabled. I even tried running NetBeans as root. My program uses Groovy but I can't seem to debug Groovy files. I presume that is because the Groovy plugin is not activated. How can I activate it? Thank you! Blake McBride
Problem with tomcat #2
Greetings, This is a shorter version of my previous email containing only the piece I can't get past. I am really stuck and would appreciate help if possible. 2. If I manually deploy the app (copy the war file to the tomcat/webapps directory) the app runs. But I can't get NetBeans to deploy for me. Under Project / Properties / Build / Packaging / WAR Content I have build/web set but it doesn't get deployed. I have CATALINA_BASE and CATALINA_HOME set to the same path. Thank you! Blake McBride
Problems with tomcat
Greetings, I am using NetBeans 11.2 on a 64 bot Linux system with Java 8. I have a working web app and my own instance of tomcat. I am having the following problems: 1. Once tomcat is launched, if things go wrong, I have no way of killing tomcat other than killing the process from the command prompt. There needs to be a button in NetBeans to kill the process by shutting it down normally but if that doesn't work - kill the process. 2. If I manually deploy the app (copy the war file to the tomcat/webapps directory) the app runs. But I can't get NetBeans to deploy for me. Under Project / Properties / Build / Packaging / WAR Content I have build/web set but it doesn't get deployed. I have CATALINA_BASE and CATALINA_HOME set to the same path. I even have the "force stop" option enabled. 3. In terms of setting up tomcat instances under Tools / Servers: a. It would be nice to be able to rename the instance b. Setting of the base should be related to the project and not global. Thanks! Blake McBride
Re: Resolving imports with multiple source roots
Thanks. Good advice. I did figure it out though (thanks stackoverflow!). Now I just need to figure out why Groovy breakpoints aren't honored. On Sat, Nov 17, 2018 at 1:06 PM Geertjan Wielenga wrote: > I'd recommend asking all questions that relate to Gradle and NetBeans here > in the form of issues: > > https://github.com/kelemen/netbeans-gradle-project > > Gj > > On Sat, Nov 17, 2018 at 7:34 PM Blake McBride wrote: > >> On Sat, Nov 17, 2018 at 11:44 AM Emilian Bold >> wrote: >> >>> NetBeans seems to be configured already with the sources (see >>> screenshot). >>> >> >> There are two ways of dealing with the project setup: >> >> 1. A NetBeans project >> 2. A Gradle project >> >> The code on Github is using a NetBeans project and I am able to set the >> dual source tree, and it works. However, it does not honer breakpoint in >> Groovy for some reason. >> >> I tried moving to a Gradle-based project to try to remain IDE nutural. >> That's where I was unable to specify the source roots to the editor. When >> you have a Gradle-based project, you don't get to specify where the source >> roots are through a NetBeans dialog. Perhaps it is expecting something >> from the build.gradle file. I don't know. >> >> In either case, however, NetBeans does no honor breakpoint in dynamically >> loaded Groovy code - but does in dynamically loaded Java code. (IntelliJ >> works in all cases.) >> >> >>> On my machine the problem seems to be there are some missing JARS in >>> lib/ : >>> >> >> You can get the JARS with: >> >>1. gradle war >>2. gradle clean >>3. gradle copyToLibs >>4. git checkout libs >> >> Thanks! >> >> Blake >> >> >> >>> >>> > Warning: Could not find file >>> /Users/apache/CoolBeansProjects/Kiss/libs/log4j-1.2.17.jar to copy. >>> >>> --emi >>> On Sat, Nov 17, 2018 at 7:11 PM Blake McBride >>> wrote: >>> > >>> > Hi, and thanks for the response. >>> > >>> > This is a Gradle / tomcat / Java / Groovy app. The project is at >>> https://github.com/kiss-web/Kiss >>> > >>> > I developed it with IntelliJ and it works well. I'm trying to port it >>> over to NetBeans to allow free development. Under NetBeans, breakpoints in >>> Groovy don't work, and I am having trouble with the two source roots. >>> > >>> > The stuff on GitHub uses NetBeans project-based approach. I'm trying >>> to scratch that and depend more on Gradle. Not having an easy time. >>> > >>> > Any ideas on how I can tell the NetBeans editor that there are two >>> source roots? >>> > >>> > Thanks! >>> > >>> > Blake McBride >>> > >>> > >>> > >>> > On Fri, Nov 16, 2018 at 11:54 PM Emilian Bold >>> wrote: >>> >> >>> >> You didn't mention what kind of project you are using. The Sources >>> >> window you have in the screenshot is for the Debugger so it doesn't >>> >> configure the editor in any way. >>> >> >>> >> The Ant-based 'Java Project with Existing Sources' works for me (just >>> >> tested). You can probably also configure a Maven project for this >>> >> situation. >>> >> >>> >> --emi >>> >> On Sat, Nov 17, 2018 at 5:29 AM Blake McBride >>> wrote: >>> >> > >>> >> > Greetings, >>> >> > >>> >> > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. My app >>> has two source roots with no package name collisions. I combine them as if >>> they were under the same tree. The problem I have is that the IDE tags the >>> imports as errors as if it didn't know where the other source root is. >>> >> > >>> >> > I am attaching a picture of the problem. I have >>> application/services/MyJavaService.java attempting to import >>> java/org/kissweb/database/Connection.java - which exists but the IDE flags >>> it as unknown. >>> >> > >>> >> > How can I fix this? >>> >> > >>> >> > Thanks! >>> >> > >>> >> > Blake McBride >>> >> > >>> >> > >>> >> > >>> - >>> >> > 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 >>> >>
Re: Resolving imports with multiple source roots
I fixed the source path problem by adding the following to build.gradle: sourceSets { main { java { srcDir 'src/main/java' srcDir 'src/main/application' } } } Breakpoints in groovy code are still ignored with either type of project (NetBeans or Gradle). Any ideas there? Thanks! Blake On Sat, Nov 17, 2018 at 12:34 PM Blake McBride wrote: > On Sat, Nov 17, 2018 at 11:44 AM Emilian Bold > wrote: > >> NetBeans seems to be configured already with the sources (see screenshot). >> > > There are two ways of dealing with the project setup: > > 1. A NetBeans project > 2. A Gradle project > > The code on Github is using a NetBeans project and I am able to set the > dual source tree, and it works. However, it does not honer breakpoint in > Groovy for some reason. > > I tried moving to a Gradle-based project to try to remain IDE nutural. > That's where I was unable to specify the source roots to the editor. When > you have a Gradle-based project, you don't get to specify where the source > roots are through a NetBeans dialog. Perhaps it is expecting something > from the build.gradle file. I don't know. > > In either case, however, NetBeans does no honor breakpoint in dynamically > loaded Groovy code - but does in dynamically loaded Java code. (IntelliJ > works in all cases.) > > >> On my machine the problem seems to be there are some missing JARS in lib/ >> : >> > > You can get the JARS with: > >1. gradle war >2. gradle clean >3. gradle copyToLibs >4. git checkout libs > > Thanks! > > Blake > > > >> >> > Warning: Could not find file >> /Users/apache/CoolBeansProjects/Kiss/libs/log4j-1.2.17.jar to copy. >> >> --emi >> On Sat, Nov 17, 2018 at 7:11 PM Blake McBride >> wrote: >> > >> > Hi, and thanks for the response. >> > >> > This is a Gradle / tomcat / Java / Groovy app. The project is at >> https://github.com/kiss-web/Kiss >> > >> > I developed it with IntelliJ and it works well. I'm trying to port it >> over to NetBeans to allow free development. Under NetBeans, breakpoints in >> Groovy don't work, and I am having trouble with the two source roots. >> > >> > The stuff on GitHub uses NetBeans project-based approach. I'm trying >> to scratch that and depend more on Gradle. Not having an easy time. >> > >> > Any ideas on how I can tell the NetBeans editor that there are two >> source roots? >> > >> > Thanks! >> > >> > Blake McBride >> > >> > >> > >> > On Fri, Nov 16, 2018 at 11:54 PM Emilian Bold >> wrote: >> >> >> >> You didn't mention what kind of project you are using. The Sources >> >> window you have in the screenshot is for the Debugger so it doesn't >> >> configure the editor in any way. >> >> >> >> The Ant-based 'Java Project with Existing Sources' works for me (just >> >> tested). You can probably also configure a Maven project for this >> >> situation. >> >> >> >> --emi >> >> On Sat, Nov 17, 2018 at 5:29 AM Blake McBride >> wrote: >> >> > >> >> > Greetings, >> >> > >> >> > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. My app >> has two source roots with no package name collisions. I combine them as if >> they were under the same tree. The problem I have is that the IDE tags the >> imports as errors as if it didn't know where the other source root is. >> >> > >> >> > I am attaching a picture of the problem. I have >> application/services/MyJavaService.java attempting to import >> java/org/kissweb/database/Connection.java - which exists but the IDE flags >> it as unknown. >> >> > >> >> > How can I fix this? >> >> > >> >> > Thanks! >> >> > >> >> > Blake McBride >> >> > >> >> > >> >> > - >> >> > 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 >> >
Re: Resolving imports with multiple source roots
On Sat, Nov 17, 2018 at 11:44 AM Emilian Bold wrote: > NetBeans seems to be configured already with the sources (see screenshot). > There are two ways of dealing with the project setup: 1. A NetBeans project 2. A Gradle project The code on Github is using a NetBeans project and I am able to set the dual source tree, and it works. However, it does not honer breakpoint in Groovy for some reason. I tried moving to a Gradle-based project to try to remain IDE nutural. That's where I was unable to specify the source roots to the editor. When you have a Gradle-based project, you don't get to specify where the source roots are through a NetBeans dialog. Perhaps it is expecting something from the build.gradle file. I don't know. In either case, however, NetBeans does no honor breakpoint in dynamically loaded Groovy code - but does in dynamically loaded Java code. (IntelliJ works in all cases.) > On my machine the problem seems to be there are some missing JARS in lib/ : > You can get the JARS with: 1. gradle war 2. gradle clean 3. gradle copyToLibs 4. git checkout libs Thanks! Blake > > > Warning: Could not find file > /Users/apache/CoolBeansProjects/Kiss/libs/log4j-1.2.17.jar to copy. > > --emi > On Sat, Nov 17, 2018 at 7:11 PM Blake McBride wrote: > > > > Hi, and thanks for the response. > > > > This is a Gradle / tomcat / Java / Groovy app. The project is at > https://github.com/kiss-web/Kiss > > > > I developed it with IntelliJ and it works well. I'm trying to port it > over to NetBeans to allow free development. Under NetBeans, breakpoints in > Groovy don't work, and I am having trouble with the two source roots. > > > > The stuff on GitHub uses NetBeans project-based approach. I'm trying to > scratch that and depend more on Gradle. Not having an easy time. > > > > Any ideas on how I can tell the NetBeans editor that there are two > source roots? > > > > Thanks! > > > > Blake McBride > > > > > > > > On Fri, Nov 16, 2018 at 11:54 PM Emilian Bold > wrote: > >> > >> You didn't mention what kind of project you are using. The Sources > >> window you have in the screenshot is for the Debugger so it doesn't > >> configure the editor in any way. > >> > >> The Ant-based 'Java Project with Existing Sources' works for me (just > >> tested). You can probably also configure a Maven project for this > >> situation. > >> > >> --emi > >> On Sat, Nov 17, 2018 at 5:29 AM Blake McBride > wrote: > >> > > >> > Greetings, > >> > > >> > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. My app > has two source roots with no package name collisions. I combine them as if > they were under the same tree. The problem I have is that the IDE tags the > imports as errors as if it didn't know where the other source root is. > >> > > >> > I am attaching a picture of the problem. I have > application/services/MyJavaService.java attempting to import > java/org/kissweb/database/Connection.java - which exists but the IDE flags > it as unknown. > >> > > >> > How can I fix this? > >> > > >> > Thanks! > >> > > >> > Blake McBride > >> > > >> > > >> > - > >> > 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 >
Fwd: Resolving imports with multiple source roots
Hi, and thanks for the response. This is a Gradle / tomcat / Java / Groovy app. The project is at https://github.com/kiss-web/Kiss I developed it with IntelliJ and it works well. I'm trying to port it over to NetBeans to allow free development. Under NetBeans, breakpoints in Groovy don't work, and I am having trouble with the two source roots. The stuff on GitHub uses NetBeans project-based approach. I'm trying to scratch that and depend more on Gradle. Not having an easy time. Any ideas on how I can tell the NetBeans editor that there are two source roots? Thanks! Blake McBride On Fri, Nov 16, 2018 at 11:54 PM Emilian Bold wrote: > You didn't mention what kind of project you are using. The Sources > window you have in the screenshot is for the Debugger so it doesn't > configure the editor in any way. > > The Ant-based 'Java Project with Existing Sources' works for me (just > tested). You can probably also configure a Maven project for this > situation. > > --emi > On Sat, Nov 17, 2018 at 5:29 AM Blake McBride wrote: > > > > Greetings, > > > > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. My app has > two source roots with no package name collisions. I combine them as if > they were under the same tree. The problem I have is that the IDE tags the > imports as errors as if it didn't know where the other source root is. > > > > I am attaching a picture of the problem. I have > application/services/MyJavaService.java attempting to import > java/org/kissweb/database/Connection.java - which exists but the IDE flags > it as unknown. > > > > How can I fix this? > > > > Thanks! > > > > Blake McBride > > > > > > - > > 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 >
Re: Gradle import flagged as an error
Turns out, it is an error. It was configured for an outdated URL. Don't know why it worked from the command line. Fixed now. On Tue, Nov 13, 2018 at 8:38 PM Blake McBride wrote: > Greetings, > > I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. I have the > "User Installed Plugins" plugin (supporting Gradle) installed and active. I > loaded up a Gradle-based project that is known to work. NetBeans is > flagging the following line in build.gradle as an error: > > import org.akhikhl.gretty.AppStartTask > > NetBeans says: Unable to resolve class org.akhikhl.gretty.AppStartTask > > The entire build.gradle is attached herewith. Also, the entire project is > located at: https://github.com/kiss-web/Kiss > > Sure appreciate any help! > > Thanks! > > Blake McBride > >
Gradle import flagged as an error
Greetings, I am using NetBeans 8.2 on a 64 bit Linux box with Java 8. I have the "User Installed Plugins" plugin (supporting Gradle) installed and active. I loaded up a Gradle-based project that is known to work. NetBeans is flagging the following line in build.gradle as an error: import org.akhikhl.gretty.AppStartTask NetBeans says: Unable to resolve class org.akhikhl.gretty.AppStartTask The entire build.gradle is attached herewith. Also, the entire project is located at: https://github.com/kiss-web/Kiss Sure appreciate any help! Thanks! Blake McBride build.gradle Description: Binary data - 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
Need help getting an existing web app to NetBeans
Greetings, I have an existing Java web app ( https://github.com/kiss-web/Kiss ) that runs fine under IntelliJ. It is a pretty simple app. I am trying to get it to run under NetBeans 8.2. I am pretty sure this would be really easy for someone who knows NetBeans. I would like to develop some instructions to get it up under NetBeans. Given how easy I expect this to be for someone who knows what they're doing with NetBeans, and how difficult it is for me (who hasn't used NetBeans for many years), I thought it would be easier to pay someone to help me than to figure it out myself. So, if there is anyone out there who would like to take on this very short project, please contact me for details. Thank you. Blake McBride blake1...@gmail.com