Re: Run File option not enable in Run Menu

2024-10-29 Thread Sean Carrick
Going by this image you posted on your question in StackOverflow: [image: image.png] The TwoDArray class is not a *main class*. In other words, it may not have a public static void main(String... args) method contained in it. The icon in the *Projects* window has no "run" icon on its l

Re: Run File option not enable in Run Menu

2024-10-28 Thread Zulfi Khan
Dear Sean and Rene-I tried your option both from pop up menu and Run menu but Run File option is not enabled. Actually I tried to install Javascript on Netbeans after that it happened. I think insatalltion removed some plugin. Somebody please guide me. I have attached the images. Following

Re: Run File option not enable in Run Menu

2024-10-28 Thread Sean Carrick
Zulfi, If your project uses the Maven build system and is a POM project with multiple sub-projects, the you need to set the sub-project that has your main class as the "Main Project". Doing this will enable the "Run" action in the menu. If you do not set a main project, t

Re: Run File option not enable in Run Menu

2024-10-28 Thread René Pöpperl
Hi Zulfi, the run menu relates to the file you have selected in the projects view. So, single click the file you want to run in the projects view. Then you can open the „run“ menu and choose „Run file“. You can also right click the file in the projects view and select „Run File“ within the

Can't run GUI Program in Apache Netbeans IDE 23- Run File option in Run Menu not enabled

2024-10-23 Thread Zulfi Khan
I am trying to runthe GUI program in Apache NetBeans IDE 23 but “Run File” optionin RunMenu is not enabled. NetBeans is also doingbackgroundprocessing. I have uploaded the image here: https://ibb.co/MZ1Yxb3 The code of Jframeclass is given below: packagecom.mycompany.projexceldb

Re: can't run tests from Netbeans in a certain project

2024-08-07 Thread Neil C Smith
On Wed, 7 Aug 2024 at 16:09, Michael Bien wrote: > (spoiler: its compile-on-save again) Kill it with fire! :-) Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@net

Re: can't run tests from Netbeans in a certain project

2024-08-07 Thread Michael Bien
anyone suggest an approach toward figuring out why we can't run tests from Netbeans? An interesting data point came in today. A member of our team who is on Linux tried and it worked fine for him. Most of us are on Mac, though. As I said in the issue I suspect something happened wh

Re: can't run tests from Netbeans in a certain project

2024-08-07 Thread Pieter van den Hombergh
Tests run without problem on my setup. Netbeans 22 (fresh install). java 21, maven daemon 1.0-m8, so I can't reproduce the issue. I can also run a specific test method by clicking the green arrow in the left gutter. Met vriendelijke groet, Pieter van den Hombergh. Kerboschstraat 12 59

can't run tests from Netbeans in a certain project

2024-08-06 Thread Philip Durbin
HI! I put the details in https://github.com/IQSS/dataverse/issues/10728 but can anyone suggest an approach toward figuring out why we can't run tests from Netbeans? An interesting data point came in today. A member of our team who is on Linux tried and it worked fine for him. Most of us a

Re: Cannot run a web app in Tomcat on NB21

2024-04-28 Thread Brian Allison (ISSRS)
projects. Check for any discrepancies in the way the projects are configured under Project Properties -> Build -> Compiling and Run. Ensure that both are set to use the same JDK and similar settings. 5. Manual Deployment Test: Try manually deploying the WAR file to Tomcat outs

Cannot run a web app in Tomcat on NB21

2024-04-28 Thread Thad Humphries
I have two web app projects in NB21. One app installs to the Tomcat 9 that I use for development, and it runs fine. However the second app will not install, although it uses similar run configuration settings. My NetBeans info is *Product Version:* Apache NetBeans IDE 21 *Java:* 17.0.9; OpenJDK

Re: Run-Time Error: email Validation project still giving errors

2024-03-14 Thread Mark Eggers
ation project in my first email. Kindly guide me what changes I have to make in the pom.xml file so that I can get rid of run-time errors. Zulfi. On Thursday, March 14, 2024 at 11:46:16 AM CDT, Ernie Rael wrote: On 24/03/14 9:21 AM, Zulfi Khan wrote: Dear Ernie-Good Morning, Maven is wo

Re: Run-Time Error: email Validation project still giving errors

2024-03-14 Thread Ernie Rael
wered... Can you create and run a simple maven project using the new project dialog? -ernie On 24/03/11 9:58 PM, Zulfi Khan wrote: Hi-Vic and other Users-Good Evening, I am using English Netwbeans. I can't find Maven on Tools/JavaPlatforms, the image attached. I found Maven in connection

Re: Run-Time Error: email Validation project still giving errors

2024-03-14 Thread Zulfi Khan
d and answered... Can you create and run a simple maven project using the new project dialog? -ernie On 24/03/11 9:58 PM, Zulfi Khan wrote: Hi-Vic and other Users-Good Evening, I am using English Netwbeans. I can't find Maven on Tools/JavaPlatforms, the image attached.

Re: Run-Time Error: email Validation project still giving errors

2024-03-12 Thread Peter Hull
I believe the correct answer was given by M Eggers in https://lists.apache.org/thread/pq84cb84w8822g9rt133vctc14nbzb9f If I take the suggestion from that message and edit the pom.xml in the project you attached earlier, then maven will compile it correctly. Peter

Re: Run-Time Error: email Validation project still giving errors

2024-03-12 Thread Michael Bien
On 12.03.24 05:58, Zulfi Khan wrote: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project ValidateName3: Fatal error compiling: error: release version 11.0.19 not supported -> [Help 1] Something is wrong in your pom.xml. The javac

Re: Run-Time Error: email Validation project still giving errors

2024-03-12 Thread Ernie Rael
I don't remember if this has been asked and answered... Can you create and run a simple maven project using the new project dialog? -ernie On 24/03/11 9:58 PM, Zulfi Khan wrote: Hi-Vic and other Users-Good Evening, I am using English Netwbeans. I can't find Maven on Tools/JavaPlat

Re: Run-Time Error: email Validation project still giving errors

2024-02-27 Thread Vic Ricker
p 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/disp

Re: Run-Time Error: email Validation project still giving errors

2024-02-26 Thread Mark Eggers
lease} In general, it's a good idea to declare all plugins that are used in the build. That way, when the implied parent changes, your build will still be reproducible. Run mvn -X package to get a start on that. Look at the enforcer plugin to enforce a minimum version of Maven. That shou

Run-Time Error: email Validation project still giving errors

2024-02-26 Thread Zulfi Khan
ValidateName3: Fatal error compiling: error: release version 11.0.19 not supported -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible soluti

Run test focused method in NB 21

2024-02-23 Thread PavelTurk
Hello all. When I do right click on test method and select `Run Focused Test Method` or `Debug Focused Test Method` I got message `No provide can handle this test method`. At the same time `Test File` and `Debug Test File` work without any problems. This is a java maven project, test framework

Re: run-time errors in the email validation project using Apache Email Validation class

2024-01-27 Thread Pieter van den Hombergh
Dear Zulfi, If you do not follow up earlier advice, I see no point in helping any further. In the error message it says release version 21 and your runtime is 11. Make them match. Either by installing and using Java 21 or by deleting the line in the pom which says 21. What is the purpose of this e

run-time errors in the email validation project using Apache Email Validation class

2024-01-26 Thread Zulfi Khan
Hi, Following is my code: /* * Clicknbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txtto change this license * Clicknbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to editthis template */ packagecom.mycompany.validatename; importjava.util.logging.Level;

Re: 'Run single' not working outside of IDE 18

2023-12-29 Thread Andreas Reichel
On Fri, 2023-12-29 at 11:09 +0100, Ulrich Mayring wrote: > If this is not a gradlew command-line, but some proprietary syntax, > then > how do I need to translate that into Gradle syntax? And how would my > task "runSingle" then have to look? @Laszlo, please is this Netbeans specific Gradle Bui

Re: 'Run single' not working outside of IDE 18

2023-12-29 Thread Ulrich Mayring
bly scrambled here, so could you give me a hint how to do that? Currently the IDE action "Run File" is mapped to: -PrunClassName=${selectedClass} ${javaExec.workingDir} ${javaExec.environment} runSingle --stacktrace ${javaExec.jvmArgs} ${javaExec.args} If this is not a gradlew

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Laszlo Kishalmi
rt" caused some misunderstanding when used with certain plugins, so we decided to deprecate "runSingle", encourage people to inspect and configure their build script right, instead of relying on NetBeans heuristics. I assumed that "Run Single" and all other commands that are

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Ulrich Mayring
NetBeans heuristics. I assumed that "Run Single" and all other commands that are built into the IDE are an API that has to be implemented by the authors of a build system plugin (like Gradle or Maven). Deprecating this API might make it easier for plugin authors, but it will take a

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Laszlo Kishalmi
ted in the executed command line. If you intend to use a runSingle task outside of NetBeans, it's better to define that task in the build.gradle file. When it is present NetBeans will also attempt to use task instead of injecting one. On 12/27/23 03:08, Ulrich Mayring wrote: Hi folks,

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Andreas Reichel
On Thu, 2023-12-28 at 12:24 +0100, Ulrich Mayring wrote: > then I would find it a valuable feature to be able to do that on the > command-line as well. If the IDE is not able to do this via Gradle, > then > it should not pretend to do so by outputting gradlew scripts. I am very sure, that somewh

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Ulrich Mayring
d to built ant scripts from scratch) Also agreed. The IDE provides functionality above and beyond the build script (otherwise why use an IDE?). If the IDE is able to "Run Single" or "Run focused Test Method" on the basis of the provided Gradle script, then I would find it a

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Andreas Reichel
On Thu, 2023-12-28 at 11:48 +0100, Ulrich Mayring wrote: > Does this select the correct class? The original command-line > included > -PrunClassName=package.MyMainClass as a parameter. You can also forward the Class to run as a parameter. > > But anyway, I think with so

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Ulrich Mayring
efine this task? I want it to do exactly what "Run Single" in the IDE does. So how to write this task? Please disregard, this one works correctly: tasks.register('singleRun'){ dependsOn run } Then you can call from command line: ./gradlew s

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Andreas Reichel
On Thu, 2023-12-28 at 16:59 +0700, Andreas Reichel wrote: > On Thu, 2023-12-28 at 10:48 +0100, Ulrich Mayring wrote: > > Well, how would I know how to define this task? I want it to do > > exactly > > what "Run Single" in the IDE does. So how to write this task? P

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Andreas Reichel
On Thu, 2023-12-28 at 10:48 +0100, Ulrich Mayring wrote: > Well, how would I know how to define this task? I want it to do > exactly > what "Run Single" in the IDE does. So how to write this task? This should work as long as you have a simple single Java Application whic

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Ulrich Mayring
Well, how would I know how to define this task? I want it to do exactly what "Run Single" in the IDE does. So how to write this task? Am 28.12.23 um 10:39 schrieb Andreas Reichel: On Thu, 2023-12-28 at 10:34 +0100, Ulrich Mayring wrote: I find that most unfortunate. I've been

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Andreas Reichel
On Thu, 2023-12-28 at 10:34 +0100, Ulrich Mayring wrote: > I find that most unfortunate. I've been using Netbeans for many years > and the one clear advantage it always had for me over other IDEs is > that > it was just a frontend to my build script. Greetings! You still can very much achieve t

Re: 'Run single' not working outside of IDE 18

2023-12-28 Thread Ulrich Mayring
Ulrich Mayring wrote: Hi folks, when I "Run single" in one of my projects, then the IDE starts my program like this (per the Output Window): JAVA_HOME="/my/path/to/java_sdk_17" cd /home/myuser/myproject/mysubproject; ../gradlew -PrunClassName=package.MyMainClass -s -x check

Re: 'Run single' not working outside of IDE 18

2023-12-27 Thread Laszlo Kishalmi
NetBeans will also attempt to use task instead of injecting one. On 12/27/23 03:08, Ulrich Mayring wrote: Hi folks, when I "Run single" in one of my projects, then the IDE starts my program like this (per the Output Window): JAVA_HOME="/my/path/to/java_sdk_17" cd /home

'Run single' not working outside of IDE 18

2023-12-27 Thread Ulrich Mayring
Hi folks, when I "Run single" in one of my projects, then the IDE starts my program like this (per the Output Window): JAVA_HOME="/my/path/to/java_sdk_17" cd /home/myuser/myproject/mysubproject; ../gradlew -PrunClassName=package.MyMainClass -s -x check -x test runSingle

How to run simple web mvc project on netbeans

2023-12-21 Thread solmaz partu
Hello NetBeans Fans; I am trying to build and run my simple Spring Web MVC project (which is simple maven archetype with JSTL, servlet,spring-webmvc added) on tomcat from netbeans by pressing the green play button. but I can't figure out what is the way. some web searches tell me to twea

Re: run ant with different jdk

2023-11-14 Thread Pieter van den Hombergh
quot; - Met vriendelijke groet, Pieter van den Hombergh. Kerboschstraat 12 5913 WH Venlo On Tue, Nov 14, 2023 at 10:35 AM Tom Eicher wrote: > Hello, > > so NB19 needs Java11+ to run, which is fine. > > But (for now) I need to run my ant task with Java8, > but it seems ant

Re: run ant with different jdk

2023-11-14 Thread Martin Desruisseaux
Le 2023-11-14 à 10 h 35, Tom Eicher a écrit : Testing, with Java8, on command line "ant dist" builds my ear,  whereas with Java11 I get errors like  cannot find symbol javax.annotation.Generated which is probably expected. Alternatively, did you tried adding the `javax.annotation-api` JAR file

run ant with different jdk

2023-11-14 Thread Tom Eicher
Hello, so NB19 needs Java11+ to run, which is fine. But (for now) I need to run my ant task with Java8, but it seems ant is always launched within the JVM that runs NB. Testing, with Java8, on command line "ant dist" builds my ear, whereas with Java11 I get errors like cannot f

Re: NetBeans 19 Run-Remote Raspberry Pi 4 Not Working

2023-09-30 Thread Blaine Heinfeld
I believe the issue I had with run-remote to a Raspberry Pi after upgrading to NetBeans 19 is the same issue described here: https://github.com/apache/netbeans/issues/4536 although my issue was with NetBeans 19 and Windows 10 versus NetBeans 14 and macOS in issue 4536. The good news is that

Re: NetBeans 19 Run-Remote Raspberry Pi 4 Not Working

2023-09-29 Thread Neil C Smith
On Fri, 29 Sept 2023 at 15:04, Blaine Heinfeld wrote: > The import appears to have correctly imported the RPi 4 platform I use > in 12.6. The RPi 4 platform tests successfully in NetBeans 19. > ... > > When I select that configuration in NetBeans 19 and attempt to run the > ap

NetBeans 19 Run-Remote Raspberry Pi 4 Not Working

2023-09-29 Thread Blaine Heinfeld
select that configuration in NetBeans 19 and attempt to run the application, however, it appears no attempt is made to communicate with the RPi 4. On NetBeans 12.6 I see a sequence like this when I run using the RPi 4 configuration and platform: deploy: jar: Connecting to ... Where the

Re: NetBeans 19, Gradle 7.5 - "Run File" no longer working

2023-09-27 Thread Laszlo Kishalmi
ate task ':server:runSingle'.         at org.gradle.api.internal.tasks.DefaultTaskContainer.taskCreationException(DefaultTaskContainer.java:715) ... ... Caused by: org.gradle.tooling.BuildException: Could not find "run" task to execute. Please upgrade your configura

Re: NetBeans 19, Gradle 7.5 - "Run File" no longer working

2023-09-27 Thread Scott Palmer
Run file is working for me with NB 19 and Gradle 8.3. Scott > On Sep 27, 2023, at 1:34 AM, Thomas Kellerer wrote: > > Is there anything I can do about, or do I have to roll back to 18 (or wait > for 20)? > > Regards > Thomas > > > László Kishalmi schrieb am

Re: NetBeans 19, Gradle 7.5 - "Run File" no longer working

2023-09-26 Thread Thomas Kellerer
le.api.internal.tasks.DefaultTaskContainer$TaskCreationException: > Could not create task ':server:runSingle'. >         at > org.gradle.api.internal.tasks.DefaultTaskContainer.taskCreationException(DefaultTaskContainer.java:715) > ... > ... > Caused by

Re: NetBeans 19, Gradle 7.5 - "Run File" no longer working

2023-09-26 Thread László Kishalmi
ny more: > > Caused by: > org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: > Could not create task ':server:runSingle'. > at > org.gradle.api.internal.tasks.DefaultTaskContainer.taskCreationException(DefaultTaskContainer.java:715) > ... > ... > Caused by: o

NetBeans 19, Gradle 7.5 - "Run File" no longer working

2023-09-26 Thread Thomas Kellerer
le'. at org.gradle.api.internal.tasks.DefaultTaskContainer.taskCreationException(DefaultTaskContainer.java:715) ... ... Caused by: org.gradle.tooling.BuildException: Could not find "run" task to execute. Please upgrade your configuration to use standard run-style tasks instead of d

Unable to run webapp when relative URL has multiple parameters

2023-08-04 Thread Tellis, Wyatt
I have my webpp configured to use a relative URL with multiple parameters: [cid:image001.png@01D9C718.15DC6C50] However, when I try to run it I get the following error: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or

Cannot run /usr/bin/firefox

2023-05-24 Thread Scott Derrick
Fedora 38, fairly new install Netbeans 17 installed using dnf install netbeans, no issues installing. I'm moving to a new machine, on my old machine running Mint and Netbeans 17 this works fine.  I have scp's all my projects over to my new machine and making sure they all still bui

Re: NB17 Extra lines after Run??

2023-05-01 Thread Amn Ojee Uw
might have done some tweaking  and being the newbie that I am I ended up messing up NB17. Now when I Click on Run, I get the proper output as well as the following lines: *BUILD SUCCESSFUL (total time: 0 seconds) Could not load a dependent class (jdepend/textui/JDep

Re: NB17 Extra lines after Run??

2023-04-29 Thread joe foe
test method to determine what's real. > > Tim > > > probably a static {this, that} block within a class within your > classpath.., yes/no? , ... > > > James > On 2023-04-28 6:15 p.m., Amn Ojee Uw wrote: > > Hey folks! > > I might have done some tweaking a

Re: NB17 Extra lines after Run??

2023-04-28 Thread Tim de Vries
folks! I might have done some tweaking  and being the newbie that I am I ended up messing up NB17. Now when I Click on Run, I get the proper output as well as the following lines: *BUILD SUCCESSFUL (total time: 0 seconds) Could not load a dependent class (jdepend/textui/JDepend

Re: NB17 Extra lines after Run??

2023-04-28 Thread Tim de Vries
, graphics, extract and format.,..., that kind of thing? Tim On 2023-04-28 6:15 p.m., Amn Ojee Uw wrote: Hey folks! I might have done some tweaking  and being the newbie that I am I ended up messing up NB17. Now when I Click on Run, I get the proper output as well as the following lines

NB17 Extra lines after Run??

2023-04-28 Thread Amn Ojee Uw
Hey folks! I might have done some tweaking  and being the newbie that I am I ended up messing up NB17. Now when I Click on Run, I get the proper output as well as the following lines: *BUILD SUCCESSFUL (total time: 0 seconds) Could not load a dependent class (jdepend/textui/JDepend

Re: How to run a program in Netbeans 17 with the -D option

2023-04-23 Thread Michael Bien
d K. wrote: Peter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only

Re: How to run a program in Netbeans 17 with the -D option

2023-04-21 Thread Tim de Vries
ter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only on 'jar&

Re: How to run a program in Netbeans 17 with the -D option

2023-04-21 Thread Brad K.
Peter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only on &#

Re: How to run a program in Netbeans 17 with the -D option

2023-04-20 Thread Antonio
See, for instance: https://stackoverflow.com/questions/39820709/netbeans-8-1-java-how-to-add-command-line-arguments-when-you-want-to-run-java It really depends on the kind of project you're using. For Maven or Gradle projects this is different. Cheers, Antonio On 20/4/23 19:02,

How to run a program in Netbeans 17 with the -D option

2023-04-20 Thread Peter Ivarsson
Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter

Re: NetBeans 16, Gradle 7.5 and "Run File"

2023-02-02 Thread Thomas Kellerer
t; > On 2/1/23 23:35, Thomas Kellerer wrote: >> I use NetBeans 16 with Gradle 7.5.1, Java 11. >> >> When I run a class with a main method ("Run File") I get this exception in >> the output window: >> >> JAVA_HOME="C:\etc\open-jdk-11&q

Re: NetBeans 16, Gradle 7.5 and "Run File"

2023-02-02 Thread Laszlo Kishalmi
This issue is fixed in the upcoming NetBeans 17 (The NetBeans 17-rc3 just got out). Otherwise you can declare your own runSingle task in your Gradle Project. On 2/1/23 23:35, Thomas Kellerer wrote: I use NetBeans 16 with Gradle 7.5.1, Java 11. When I run a class with a main method ("Run

NetBeans 16, Gradle 7.5 and "Run File"

2023-02-01 Thread Thomas Kellerer
I use NetBeans 16 with Gradle 7.5.1, Java 11. When I run a class with a main method ("Run File") I get this exception in the output window: JAVA_HOME="C:\etc\open-jdk-11" cd **; ..\gradlew.bat --configure-on-demand -PrunClassName=com.mypackage.RunMe -s -x che

Re: Can't run NetBeans 16 app on MacOS

2022-12-22 Thread Thomas Wolf
up site. > > The installer works perfectly every time, but when I try to run the app, I > consistently get: > > > > “Apache NetBeans 16.app” is damaged and can’t be opened. This file was > downloaded on an unknown date.” > > When I go to Settings/Privacy & S

Can't run NetBeans 16 app on MacOS

2022-12-22 Thread David Gradwell
Hi, I have tried downloading NetBeans 16 installer for MacOS several times and from the backup site. The installer works perfectly every time, but when I try to run the app, I consistently get: [cid:image001.png@01D91631.52B62E60] “Apache NetBeans 16.app” is damaged and can’t be opened. This

Re: java.io.IOException: Cannot run program "C:\Program Files\Zulu\zulu-15\bin\java.exe" (in directory "C:\Users\eraonel\git\apps"): CreateProcess error=206, The filename or extension is too long

2022-12-14 Thread Arnaud bourree
07:14, Mikael Petterson a écrit : > Hi, > > > > Is there a way around this error message when I run “Debug File”? > > > > Br, > > > > //mike >

java.io.IOException: Cannot run program "C:\Program Files\Zulu\zulu-15\bin\java.exe" (in directory "C:\Users\eraonel\git\apps"): CreateProcess error=206, The filename or extension is too long

2022-12-13 Thread Mikael Petterson
Hi, Is there a way around this error message when I run “Debug File”? Br, //mike

File's run/debug doesn't work with --enable-preview

2022-12-13 Thread Ernie Rael
With JDK19/NB16, maven project, I can compile and the run/debug buttons work. But if I use Run/debug file, error because preview not enabled. Ah, I finally see that the file actions, in project properties, didn't have --enable preview. Guess I must have added them to the actions for run/

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 16:47, László Kishalmi wrote: > Project Properties > Build > Build Actions Thanks, but yes, I know that page. I've only just realised that you can select the *already selected* Custom... in the combobox to create a new action. Sorry, but that's not the most intuitive UI.

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Ernie Rael
ting how NB saves these actions in gradle.properties. -ernie On 9/6/22 8:04 AM, László Kishalmi wrote: Actually we have a pretty good UI for custom actions. Though passing JVM arguments to a build is a sensitive topic mostly due to the daemon execution model. The way you set up the run task in you

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread László Kishalmi
Project Properties > Build > Build Actions On Tue, Sep 6, 2022 at 8:09 AM Neil C Smith wrote: > On Tue, 6 Sept 2022 at 16:05, László Kishalmi > wrote: > > Actually we have a pretty good UI for custom actions. > > Agreed. My comment was specifically that I can't see a way to add a > custom acti

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 16:05, László Kishalmi wrote: > Actually we have a pretty good UI for custom actions. Agreed. My comment was specifically that I can't see a way to add a custom action directly from the project properties, which Maven does have. Or have I missed something blindingly obvio

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread László Kishalmi
Actually we have a pretty good UI for custom actions. Though passing JVM arguments to a build is a sensitive topic mostly due to the daemon execution model. The way you set up the run task in your project is a good way to do that. On Tue, Sep 6, 2022 at 4:10 AM Neil C Smith wrote: > On Mon

Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
gradle I tried, on the "Main Project" > > I was hoping to find a way to *do it from NetBeans*, > > but the following in build.gradle works for now > > tasks.run { > systemProperties['com.raelity.jvi.DEBUG'] = 'true' > enable

Re: gradle project: how to pass jvm args for debug/run

2022-09-05 Thread Ernie Rael
On 9/4/22 4:47 PM, Ernie Rael wrote: Just converted an ancient project from ant to gradle. With ant and I did    project.properties:run.jvmargs=-Dcom.raelity.jvi.DEBUG\=true -ea With gradle I tried, on the "Main Project" I was hoping to find a way to *do it from NetBeans*, but the following

gradle project: how to pass jvm args for debug/run

2022-09-04 Thread Ernie Rael
Just converted an ancient project from ant to gradle. With ant and I did project.properties:run.jvmargs=-Dcom.raelity.jvi.DEBUG\=true -ea With gradle I tried, on the "Main Project" properties > BuildActions > ConfigureAction > debug I added "-Dcom.raelity.jvi.DEBUG\=true -ea" to the arug

Re: Configuring Inno setup on NB Maven project breaks Run / Run file

2022-09-02 Thread Neil C Smith
On Fri, 2 Sept 2022 at 12:03, Jonathan Bergh wrote: > 1) Any info on what Release-Profile is - is the a NB provided profile? Its > not configured in my settings/xml, so I assume its from the Maven conf > packaged with NB? AFAIK from Maven itself - eg. see https://issues.apache.org/jira/browse/M

Re: Configuring Inno setup on NB Maven project breaks Run / Run file

2022-09-02 Thread Jonathan Bergh
nfigured but > still be able to run maven projects which are under development? > > > > It would be a bit annoying to have to deconfigure that build step (Inno > packaging) and run it manually after the fact just to allow NB to run the > project during development. > > Y

Re: Configuring Inno setup on NB Maven project breaks Run / Run file

2022-09-02 Thread Neil C Smith
On Fri, 2 Sept 2022 at 11:23, Jonathan Bergh wrote: > Is there any way to keep an existing execution process configured but still > be able to run maven projects which are under development? > > It would be a bit annoying to have to deconfigure that build step (Inno > packag

Re: Configuring Inno setup on NB Maven project breaks Run / Run file

2022-09-02 Thread negora
Hi: Does NetBeans also breaks if you put your task in a separate Maven profile? Regards. On 02/09/2022 12:22, Jonathan Bergh wrote: hi there, It's clear that when using NB with Maven, NB uses the exec-maven-plugin to run the jar, but configuring another process using that plugin b

Configuring Inno setup on NB Maven project breaks Run / Run file

2022-09-02 Thread Jonathan Bergh
hi there, It's clear that when using NB with Maven, NB uses the exec-maven-plugin to run the jar, but configuring another process using that plugin breaks the Run / Run File facility in NB (Inno Setup, for example). Is there any way to keep an existing execution process configured but sti

Browser refuses HTML debug run

2022-08-11 Thread Blake McBride
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 Tool

Re: Run-time Error in array of Object program Netbeans IDE 14 Ubuntu 18.04

2022-07-03 Thread Pieter van den Hombergh
tests to your code so you are more selfsufficient. Maybe have a > glance at https://testfirstj.github.io/index.html that gives an > introduction to Test Driven Design. > > > Met vriendelijke groet, > Pieter van den Hombergh. > Kerboschstraat 12 > 5913 WH Venlo > > >

Re: Run-time Error in array of Object program Netbeans IDE 14 Ubuntu 18.04

2022-07-03 Thread Pieter van den Hombergh
Zulfi Khan wrote: > Hi, > > I am getting a run-time error in the following program,using Netbeans ID: > 14, ubuntu 18.04: > > > /* > > * Click > nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to > change this license > > * Click >

Re: Run-time Error in array of Object program Netbeans IDE 14 Ubuntu 18.04

2022-07-01 Thread Laszlo Kishalmi
On 7/1/22 16:32, Zulfi Khan wrote: Exception in thread "main" java.lang.NullPointerException at com.mycompany.add2strjop.Add2StrJOp.showRecords(Add2StrJOp.java:41)

Run-time Error in array of Object program Netbeans IDE 14 Ubuntu 18.04

2022-07-01 Thread Zulfi Khan
rror: 1 (Exit value: 1) -> [Help 1] To see the fullstack trace of the errors, re-run Maven with the -e switch. Re-run Maven usingthe -X switch to enable full debug logging. For more informationabout the errors and possible solutions, please read the followingarticles: [Help 1]ht

Re: Run ear in TomEE?

2022-04-27 Thread Laszlo Kishalmi
The NetBeans Java EE support for Gradle does not support EAR. It is that simple. On 4/27/22 09:54, Terry wrote: I have a very simple Gradle project called MyApp. MyApp is built as an .ear file that contains a .war file with a test.jsp page. Gradle can build it and the app will run in TomEE if

Run ear in TomEE?

2022-04-27 Thread Terry
I have a verysimple Gradle project called MyApp. MyApp is built as an .ear file thatcontains a .war file with a test.jsp page. Gradle can build it and the app willrun in TomEE if I deploy the .ear file manually to the /webapps folder.    Now I'mtrying to run it from NetBeans 13 in TomEE

Re: Cross-IDE standard for "Run Configurations"

2022-03-04 Thread Neil C Smith
ions" or > "Tasks" that can be run on a project. E.g. "Run", "Debug", "Build Jar", etc.. > > It would be nice if there were some well-supported metadata standard for this > that was supported by all IDEs.Does anyone know if such a stand

Cross-IDE standard for "Run Configurations"

2022-03-04 Thread Steve Hannah
Maven makes some things much easier by standardizing many of the build settings in a way that is IDE agnostic. However, every IDE seems to provide its own proprietary "Actions" configuration for defining the "Actions" or "Tasks" that can be run on a project. E.g. &q

Re: How to run/debug Integration Test class from contextual menu?

2022-01-18 Thread Michael Bien
existing one? My feeling about tutorial should be more how Netbeans help us to write/run tests than what are JUnit tests. What do you think? Regardes Arnaud Le mar. 18 janv. 2022 à 20:12, Michael Bien a écrit : i saw it, looks good on first glance but i had no time to test it so far

Re: How to run/debug Integration Test class from contextual menu?

2022-01-18 Thread Michael Bien
://github.com/apache/netbeans/pull/3470 Maybe to late for NB13. Regardes Arnaud Le jeu. 13 janv. 2022 à 15:40, Arnaud bourree a écrit : Again thanks you William I said that custom action cannot provide workaround : that's false Here is workaround to run all tests fr

Re: How to run/debug Integration Test class from contextual menu?

2022-01-17 Thread Arnaud bourree
t's false > > Here is workaround to run all tests from on integration test class: > >1. right click in editor of you integration test file >2. select "Run Maven >" then "Goals..." >3. as Goals, enter "integration-test" or "verify&q

Re: How to run/debug Integration Test class from contextual menu?

2022-01-13 Thread Arnaud bourree
Again thanks you William I said that custom action cannot provide workaround : that's false Here is workaround to run all tests from on integration test class: 1. right click in editor of you integration test file 2. select "Run Maven >" then "Goals..." 3.

Re: How to run/debug Integration Test class from contextual menu?

2022-01-13 Thread Arnaud bourree
Thank you William. I never use Gradle, I suppose you are right. With Maven's project, we can also add custom actions,That could be a good workaround. But actions are not contextual actions such as "Test File" or "Run Focused Test Method", they work at project level n

Re: How to run/debug Integration Test class from contextual menu?

2022-01-12 Thread * William
Hi Arnaud, I am able to run integration tests from the netbeans project tree using Gradle, may be there is something similar with Maven. Under each project you want to use a Gradle task you can set-=up an entry in the project's " gradle.properties" file, so: ## N

Re: How to run/debug Integration Test class from contextual menu?

2022-01-12 Thread Arnaud bourree
Hello, As mentioned in another thread about contributing, I investigate myself to explain HowTo First, some explanation about what I call unitary tests and integration tests. Both are JUnit or TestNG tests, but theyr run in different maven phase: - Unitary test are run during test phase and they

  1   2   3   >