Re: Upgrade Gradle version.

2024-01-24 Thread Laszlo Kishalmi
Set the Java Runtime Version for Gradle to Java 17 in NetBeans. On 1/24/24 17:43, Owen Thomas wrote: I'm thoroughly lost with Gradle. Can someone please tell me which version of Java I should use and version of this build tool I should upgrade to with the current release of Netbeans? This

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

2023-12-28 Thread Laszlo Kishalmi
On 12/28/23 08:49, Ulrich Mayring wrote: I decided not to leak NetBeans internals into the Output window. That probably would have confused more people, than hiding those things, and again that would leak internals into the output window. I was planning to add an option, that could enable

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

2023-12-28 Thread Laszlo Kishalmi
"runSingle", encourage people to inspect and configure their build script right, instead of relying on NetBeans heuristics. Am 28.12.23 um 04:50 schrieb Laszlo Kishalmi: NetBeans has it's own Gradle Init Script which can inject tasks into the Gradle build. That script is not presented in the

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

2023-12-27 Thread Laszlo Kishalmi
NetBeans has it's own Gradle Init Script which can inject tasks into the Gradle build. That script is not presented 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

Re: Java version: 21 ... not supported by Gradle 8.5

2023-12-04 Thread Laszlo Kishalmi
comes on. Bottom line, AFAICT, NB-20 Cannot open a "gradle with Java" project that uses JDK-21 APIs without warnings/errors no matter how the project is setup. -ernie On 23/12/03 5:58 PM, Laszlo Kishalmi wrote: Well, the rapid changes of Java put pressure on the tool

Re: Java version: 21 ... not supported by Gradle 8.5

2023-12-03 Thread Laszlo Kishalmi
runtime. On 12/3/23 17:20, Ernie Rael wrote: On 23/12/03 3:51 PM, Laszlo Kishalmi wrote: Well, unfortunately gradle init only supports java version specification since Gradle 8.5 NB20 is bundled with Gradle 8.4. The gradle 8.4 release notes say "Java 21 is now supported" if th

Re: Java version: 21 ... not supported by Gradle 8.5

2023-12-03 Thread Laszlo Kishalmi
Well, unfortunately gradle init only supports java version specification since Gradle 8.5 NB20 is bundled with Gradle 8.4. There is a bit workaround needed to run Java 21 projects with Gradle. Set the Java Runtime version for Gradle in Tools > Options > Java > Gradle to Java 20 or below.

Re: Two finger swipe left - right makes editor go wild

2023-10-30 Thread Laszlo Kishalmi
On 10/28/23 12:44, Michael Bien wrote: On 28.10.23 14:09, Laszlo Kishalmi wrote: On 10/28/23 04:52, Neil C Smith wrote: On Sat, 28 Oct 2023, 12:29 Neil C Smith, wrote: On Sat, 28 Oct 2023, 11:59 Laszlo Kishalmi, wrote: It would be good if somebody could test

Re: Creating a Gradle project

2023-10-28 Thread Laszlo Kishalmi
While I've seen that message earlier, I cannot reproduce this with NetBeans 20-rc2. More info on how to reproduce this is required. On 10/28/23 05:29, Arbol One wrote: When creating a Gradle project I get this message: Am I missing something? What am I doing wrong? -- ArbolOne.ca Using

Re: Two finger swipe left - right makes editor go wild

2023-10-28 Thread Laszlo Kishalmi
On 10/28/23 04:52, Neil C Smith wrote: On Sat, 28 Oct 2023, 12:29 Neil C Smith, wrote: On Sat, 28 Oct 2023, 11:59 Laszlo Kishalmi, wrote: It would be good if somebody could test the Mouse Button layouts on Windows and Mac, probably can remove

Re: Two finger swipe left - right makes editor go wild

2023-10-28 Thread Laszlo Kishalmi
3S and MX Master 3 It would be good if somebody could test the Mouse Button layouts on Windows and Mac, probably can remove the MOUSE_BUTTON4 and MOUSE_BUTTON5 registration... On 10/28/23 03:03, Laszlo Kishalmi wrote: Well, it seems to be something with the wheel rotation. Horizontal two

Re: Two finger swipe left - right makes editor go wild

2023-10-28 Thread Laszlo Kishalmi
Well, it seems to be something with the wheel rotation. Horizontal two finger swipe is sent as horizontal scroll by default. Previously that was not working in the IDE. Now I've tested, the touchpad gesture, I can confirm, that it goes back and forth through the editor caret history. So as

Re: How to hide a secret value in my Java code?

2023-10-04 Thread Laszlo Kishalmi
Well, the zero secret problem (the secret which allows you to access further secrets), are usually solved by providing an environment. It could be as simple as an environment variable, or some confinement, entitled with policies. On 10/4/23 08:33, Richard Grin wrote: I answer your question:

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

2023-09-27 Thread Laszlo Kishalmi
Well, you can add your own runSingle action and or update the Build Actions for run.single action in the project properties. Unfortunately it's pretty hard to say what to do without seeing the whole stuff in action. On 9/26/23 22:32, Thomas Kellerer wrote: Is there anything I can do about,

Re: The newest version for JavaEE Netbeans / Glassfish

2023-09-20 Thread Laszlo Kishalmi
Well, I'd recommend to install Java versions 8, 11 and 17 on the Server. Locally Java 8, 11, 17, 20 and maybe 21. NetBeans 19 using JDK17 or 20. Then you can start migrating your Glassfish away from Java 8 to Java 11, then from Java EE to Jakarta EE, then another round with Glassfish and

Re: How to make NB use jar instead of build/classes/?

2023-09-19 Thread Laszlo Kishalmi
suggestions on how I can get NB to use the jar when running the application rather than the classes/ directory, I’d love to hear it. It would make my debugging easier. Thanks, Tom On Sep 19, 2023, at 12:05 PM, Laszlo Kishalmi wrote: You probably do not want to do such a thing. Is there a more

Re: How to make NB use jar instead of build/classes/?

2023-09-19 Thread Laszlo Kishalmi
You probably do not want to do such a thing. Is there a more high level of use case why you would get the date of a jar? Usually depending on file dates would make you application very brittle, which would work on development, but when put into production, could lead hours of debugging, whit

Re: Highlighting color in debug session

2023-09-10 Thread Laszlo Kishalmi
Check the Annotations section in the Fonts and Colors. On 9/7/23 03:15, Alexander Kronenwett wrote: Hi, I am using NB18 on MacOS. When I set a breakpoint the respective line is highlighted with a very dark red (or brown). When the line is hit, it is highlighted with a very dark green. I find

Re: antlr

2023-06-02 Thread Laszlo Kishalmi
Hi Ernie, I think the AntlrWorks which is mentioned there is not available anymore. What we have is a new development from Matthias and me. It has syntax highlight, navigation, some code completion and formatting. It supports some trivial error detection as well. Though no high level things

Re: Sorting it out?

2023-05-31 Thread Laszlo Kishalmi
Dear Tim, Are you all right? Your recent emails makes me worry. On 5/31/23 17:10, Tim de Vries wrote: Need a pure JAVA Solution? Like a Gosling, a Jobs, a Gates, maybe a MARKZUCK. or Bezos, if you that. I don't. I TIM. You, Not Me! #All. #Tim. #You. #OhNo! Tim

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

Re: keyboard shortcut - accented characters - NB 16 editor - Windows 10

2023-01-28 Thread Laszlo Kishalmi
I would recommend to play around with different keyboard layouts on Windows. On 1/28/23 06:38, Christopher C. Lanz wrote: Hello, with the help of this group I can now display accented characters in the output window and in the editor. However, I need to _add_ accented characters: because I

Re: no main class error: strangest fix

2023-01-25 Thread Laszlo Kishalmi
Couldn't it be that the Java Parser just got a bad day (red notification bubble in the bottom status bar). Those cases the IDE loss the connection with the code and can't find parser assisted stuff. It should be better with NB17 as we've fixed a few NPE-s along the way. On 1/25/23 10:47,

Re: Tools > Options > Java > Gradle drop down list

2023-01-22 Thread Laszlo Kishalmi
I was able to reproduce the mentioned behavior on GTK+ Look and Feel with light theme. Please use the default FlatLaf fLight or FlatLaf Dark look and feels for the best result. Unfortunately recent changes in GTK, GTK themes and JVM GTK Support provide an uncertain ground for NetBeans to

Re: [EXTERNAL] Re: NB 16 code template expansion

2023-01-14 Thread Laszlo Kishalmi
This feature is enabled by default. Cannot be really switched off. (Disablind it support modules might  work). In Tools > Options > Editor > Code Templates at the bottom of the dialog, the action key (by default) can be changed though. If I remember well there was a time when tha expand

Re: From GlassFish to Tomcat

2023-01-14 Thread Laszlo Kishalmi
Open the project properties and on the Run card select Tomcat as server instead of Glassfish. On 1/14/23 06:27, Amn Ojee Uw wrote: I have a small project that uses Glassfish server, however, I would like to change the server to Tomcat; how do I do that in NetBeans 16. Any suggestions would

Re: Embedded Language Question

2023-01-08 Thread Laszlo Kishalmi
??? On 1/8/23 20:47, Tim de Vries wrote: If I had to weigh in, it would be nice to be able to contribute some of the code I don’t understand. I would like to be able to provide, for example, class and method names from jars, similar to IntelliJ, but for all on classpath. There will

Re: Embedded Language Question

2023-01-08 Thread Laszlo Kishalmi
Here is a sample of Language embedding: https://github.com/apache/netbeans/blob/40c25f50231290122f559a4f598624843662ee32/java/languages.antlr/src/org/netbeans/modules/languages/antlr/AntlrTokenId.java#L70 However this one only takes care of the Lexer, other features needs more code. You can

Re: How to add local jar to Gradle

2023-01-08 Thread Laszlo Kishalmi
https://riptutorial.com/gradle/example/8349/add-a-local-jar-file-dependency On 1/7/23 19:41, Amn Ojee Uw wrote: Hello! Can anyone tell how to add a local jar file to a Gradle-Java with Gradle->Web Application using NetBeans 16? Thanks in advance.

Re: Query

2023-01-02 Thread Laszlo Kishalmi
https://github.com/apache/netbeans/issues On 1/1/23 23:00, Murali Govind wrote: Hi If I need to ask a doubt so that community / forum members can help me where do I raise the issue Regards Murali - To unsubscribe, e-mail:

Re: Add server - file permission

2022-12-27 Thread Laszlo Kishalmi
Well, if you do not have right to that directory, then just install Tomcat in your HOME directory. That would work fine. On 12/7/22 04:04, Amn Ojee Uw wrote: In my Debian 11, adding a server to Netbeans 15 requires that I add _*the directory*_ '/opt/tomcat/bin', as the place where server is

Re: how to turn off parameter names?

2022-12-22 Thread Laszlo Kishalmi
View > Show Inline Hints On 12/22/22 12:13, Thomas Wolf wrote: I just upgraded to NB 16 (from 13) and noticed a new feature which, with my poor eyesight, I initially thought was some sort of display driver error. Looking more carefully, whenever I start typing the beginning of a method call,

Re: Graphical Interface Built with JSF Doesn't Appear in Internet Browsers

2022-11-20 Thread Laszlo Kishalmi
Put your project up to github to share On 11/20/22 07:37, Mehmet Fatih ÇİN wrote: Hello, I'm trying to create a login page with the versions I mentioned below. I'm new to this so I don't know if I did something wrong. But when I use facelet tags, I can't see any graphical interface in any

Re: Use jpackage in NB

2022-10-06 Thread Laszlo Kishalmi
You can get that working with suitable plugins for Gradle or Maven. As of Ant just call the commandline tool. On 10/6/22 00:39, Helmut Leininger wrote: Hi, since Java 14 the Java SDK contains jpackage to create deliverables that include necessary Java runtimes. Is it possible to use jpacke

Re: How to see missing implementations of a new method in interface

2022-09-30 Thread Laszlo Kishalmi
The IDE reports an error on the class line which does not implement some abstract methods. using Alt+Enter it offers a fix for implementing them. On 9/30/22 01:40, Mikael Petterson wrote: Hi, I am using Netbeans 15 ( really great IDE!!). When I build using maven I get: error:

Re: NB 12.3 SVN do not lock files

2022-09-30 Thread Laszlo Kishalmi
Make sure when you install SilkSVN to install the Java Bindings as well. The command line client has many shortcomings. So Install the Java binding. Then if you are lucky the IDE will find it, and would display Preferred Client: JavaHL. If it still displays the cli, you have to tell the IDE

Re: SVN diff doesn't work

2022-09-24 Thread Laszlo Kishalmi
Hmmm, It seems that the issue is with the version of libsvn-java package. You should use 1.14.x version. That's the latest LTS series Subversion released. Unfortunately that has not been upgraded in Ubuntu Focal. Try to install the Jammy packages. On 9/24/22 04:22, Jason Abreu wrote: I've

Re: gradle: any way to specify JAVA_HOME for use with gradle?

2022-09-12 Thread Laszlo Kishalmi
Try to run NetBeans on Java 11. So the NB JDK17 do not force to use higher Gradle version than your project needs. On 9/11/22 19:41, Ernie Rael wrote: Thanks Moacir and Scott, I ended setting org.gradle.java.home in gradle.properties. command line "gw clean build" works. Was getting

Re: Remove old LAFs from application and use new default LAF instead

2022-08-29 Thread Laszlo Kishalmi
Right now we are using all installed LaF-s to display in the combo box. You might create an SPI PR for a filtering interface. It's in the platform/core.windows module. You might create something that checks/changes the following file on startup: $USER_DIR/config/Preferences/laf.properties

Re: Should I exclude ./gradle/nb-cache from commit?

2022-08-06 Thread Laszlo Kishalmi
-0700, Laszlo Kishalmi wrote: gradle/ folder (not the .gradle) usually the place to put additional build logic, and if nothing else that's where Gradle places it's wrapper gardle/wrapper/ Make sure you add the gardle/wrapper/gradle-wrapper.jar along with the grade/wrapper/gradle

Re: Should I exclude ./gradle/nb-cache from commit?

2022-08-06 Thread Laszlo Kishalmi
policy explicitly state otherwise) Although that is a binary file, that is java the entry point of gradlew and gradlew.bat files. That would download the correct Gradle if it is not installed on the system. On 8/5/22 17:54, Andreas Reichel wrote: On Fri, 2022-08-05 at 17:52 -0700, Laszlo

Re: Should I exclude ./gradle/nb-cache from commit?

2022-08-05 Thread Laszlo Kishalmi
,gradle/ folders should be on the ignore list, while gradle/ folders shall be committed On 8/5/22 17:26, Owen Thomas wrote: I have my projects running. All is good in the world. I see the directory indicated in the title of this message sometimes contains files for projects with old names (I

Re: Gradle won't resolve dependency: what's wrong here?

2022-08-01 Thread Laszlo Kishalmi
Well, I've done and see a few dozen of Gradle builds, though this sounds alien to me. If you could share your project structure (main folders and their build.gradle files, maybe we can help sort this thing out. On 8/1/22 22:39, Owen Thomas wrote: While I've been doing other things, I have come

Re: How to set compile dependencies for Gradle in Netbeans.

2022-07-31 Thread Laszlo Kishalmi
Well this one is a good read: https://docs.gradle.org/current/userguide/declaring_dependencies.html Also you might look at existing projects on GitHub or other samples on the web. On NetBeans side you can't really do much in the project properties, like in Ant projects. The information

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)

Re: Gradle "Failed to notify build listener" project load error

2022-06-17 Thread Laszlo Kishalmi
Could you provide more details and/or file an issue on Github? On 6/15/22 10:03, Jonathan Bergh wrote: hi guys, Once again, thanks so much for the new software release. Trying to load existing projects in v14, I am getting a Gradle priming build error "Failed to notify build listener" error

Re: BufferedReader and BufferedWriter : non-static variable cannot be accessed from the static context

2022-06-06 Thread Laszlo Kishalmi
On 5/24/22 08:41, Ernie Rael wrote: On 5/23/22 11:04 PM, slipbits wrote: It is true that there other people on this list nicer than you. But let's look at your reply for a second. You provided no help, only criticism. IMO, that's not accurate. If someone wants to succeed as a

Re: Netbeans with Snap packaged OpenJDK

2022-05-26 Thread Laszlo Kishalmi
It's A little hard to get right, but worth it to set stuff like the JDK and IDE font size  (--fontsize 13 in |netbeans_default_options|) On Wed, May 25, 2022 at 11:13 AM Laszlo Kishalmi wrote: On 5/25/22 06:08, Stroud Custer wrote: I took the sage advice of several of t

Re: Netbeans with Snap packaged OpenJDK

2022-05-25 Thread Laszlo Kishalmi
On 5/25/22 06:08, Stroud Custer wrote: I took the sage advice of several of the responders to this question and installed the Oracle version of Java 18.0.1.1 into my home directory.  I did not have success with placing a modified netbeans.conf in the netbeans/etc file located in the snap

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
nt/netbeans.conf However that's not a tested situation. Here OpenJDK Snap package is confined, runs in it's own security sandbox, while NetBeans does not which could cause troubles especially when NetBeans needs to reach for native libraries outside the one provided by the JDK. On 5/24/22 10:47,

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
On 5/24/22 01:38, Michael Bien wrote: the snap packages are no official packages they are provided by the community. That's kind of official, but in the terms of being convenience binary. Built from Apache repositories on ASF's own build grid. but in general: netbeans/etc/netbeans.conf has

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
Well, However I like the idea of Snap packages (being the main maintainer of the NetBeans one), I'd just install java from the standard Ubuntu debian packages or if you need something exotic, using SDKMAN (search on that if you are thinking about it). This could be as simple as: sudo apt

Re: junit 5 on NB-13

2022-05-11 Thread Laszlo Kishalmi
Maybe you need to change the testrunner in the Ant task. AFAIN JUnit 5 uses a new TestRunner. On 5/11/22 14:27, Ernie Rael wrote: Hi all, Feels like I'm in deep with this one. Using NB-13, I have an old *ant* based project. I was using junit-4.13/JUnitParams-1.1.1. I needed to build a

Re: Adding Payara Server to Jakarta EE 9 Project

2022-05-11 Thread Laszlo Kishalmi
Payara shall work with NetBeans, some Payara devs even contribute code for the Payara plugin, however I have not checked the latest development in that area. On 5/11/22 00:30, Amn wrote: I don't think Payara works under Netbeans. I am migrating from Win to Linux, I'll try under the linux

Re: NetBeans interface with Java

2022-05-10 Thread Laszlo Kishalmi
Tools > Options > Miscellaneous > Output > Font Size On 5/10/22 07:38, Michael Rootshtain wrote: Hi, I have increased the size of the font in the editor in Apache NetBeans but where do I manage to increase the size of the font in the output console. Best regards, Mike Rootshtain

Re: Double click button issue

2022-05-03 Thread Laszlo Kishalmi
It does not seem to be a public project. The link gives 404 On 5/3/22 03:43, Nigel Evenden wrote: Hi You can see the problem here: https://github.com/Niggy148/crapatit Nigel Netbeans 8.1 Java Primefaces - To unsubscribe,

Re: Button double click

2022-04-28 Thread Laszlo Kishalmi
mean. Regards Nigel On Thu, 28 Apr 2022, 18:49 Nigel Evenden, wrote: Ok, thanks. On Thu, 28 Apr 2022, 18:45 Laszlo Kishalmi, wrote: Then probably upload your code somewhere public, like github, so people could look at it and help. Though making the code

Re: Button double click

2022-04-28 Thread Laszlo Kishalmi
Then probably upload your code somewhere public, like github, so people could look at it and help. Though making the code available, not necessary means that anyone would turn up to help. On 4/28/22 10:39, Nigel Evenden wrote: Yes On Thu, 28 Apr 2022, 18:28 Laszlo Kishalmi, wrote

Re: Button double click

2022-04-28 Thread Laszlo Kishalmi
Have you fixed your laptop? On 4/28/22 06:16, Nigel Evenden wrote: Any progress on my request yet? Nigel On Thu, 21 Apr 2022, 11:00 Nigel Evenden, wrote: Hi there I have enhanced the UserCRUD_Annotation example to include a View button, which points to a related Projects page.

Re: Netbeans API to install plugin from local .nbm file ?

2022-04-27 Thread Laszlo Kishalmi
You mean: Tools > Plugins > Downloaded > Add Plugins... ? On 4/27/22 14:26, Jerome Lelasseux wrote: Is there a Netbeans API to install a plugin from a local .nbm file ?    I know that the feature is supported (eg autoupdate), but I can't find the appropriate API... The scenario is that a

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

Re: Horizontal scroll using mouse buttons 6&7 in Netbeans

2022-01-30 Thread Laszlo Kishalmi
Works for JDK 17 and Linux (I guess that feature might be added in JDK 13) On 1/30/22 00:29, May Doušak wrote: Hi there, I know it is possible to scroll horizontally usinf SHIFT+ primary mouse wheel (buttons 4&5). Is there a way make NetBeans treat mouse buttons 6 & 7 (second scroll wheel)

Re: Netbeans 12.6, browsing for superclass does not show project files

2021-12-14 Thread Laszlo Kishalmi
Thanks for the sample project! It seems for some reason NetBeans does not really recognize that as a project unless you create an empty build.gradle in the root directory. From that point it seems to work. On 12/13/21 16:14, Jim Mayer wrote: Hi all, I'm still trying to put together a test

Re: Problems profiling a Gradle application

2021-12-10 Thread Laszlo Kishalmi
That's true. There is no profiler integration support for Gradle projects at the moment. On 12/10/21 05:24, Bob T wrote: Hello, I have a Gradle project that I want to run the Profiler for but I can't get it to work. All options aside from "Attach to External Process" and "Insert Profiling

Re: NB 12.4 creating new project I get this error...

2021-12-02 Thread Laszlo Kishalmi
avail). On Dec 1, 2021 at 6:07:02 PM, Laszlo Kishalmi wrote: It seems you have already something in your (most probably home folder) what NetBeans detects as a project. We have a thing called FileOwnerQuery which shall able to say that a folder belongs to what project. In this case w

Re: NB 12.4 creating new project I get this error...

2021-12-01 Thread Laszlo Kishalmi
is this information stored?  Does NB go through my entire filesystem looking for files like the above to find existing projects? Any further help is appreciated, Tom On Dec 1, 2021 at 6:07:02 PM, Laszlo Kishalmi wrote: It seems you have already something in your (most probably home folder) what

Re: NB 12.4 creating new project I get this error...

2021-12-01 Thread Laszlo Kishalmi
It seems you have already something in your (most probably home folder) what NetBeans detects as a project. We have a thing called FileOwnerQuery which shall able to say that a folder belongs to what project. In this case we call it on /Users/twols/spectare/satriage/src and we are expecting a

Re: NB taking up 200% CPU checking for external changes :-(

2021-10-20 Thread Laszlo Kishalmi
There is a Profile the IDE button next to the Memory Gauge. Start profiling when the CPU usage spikes, let it run for a minute or so, then stop the profiling. You will see what is happening behind the scenes. That data can be exported as well, just zip that, create an issue in the JIRA and

Re: Does Netbeans have this IntelliJ Log feature?

2021-08-27 Thread Laszlo Kishalmi
Well, we had a plugin for something like that ages ago, that might went even deeper than that for log4j as far as I remember. Writing one would be an interesting task for a beginner. Go for it! It would be good to add a new module to the ide cluster. I'd do that in the following order: 1.

Re: Netbeans struggles with hierarchical Gradle Projects

2021-08-21 Thread Laszlo Kishalmi
Well that is a heritage from Ant I guess, though the statement only adds a new resourcedir to the set of resourcedirs It would be better to use: sourceSets.main.resources.srcDirs = files('src/main/java') Though that would be just a slight change. Also an exclude for "**/*.java" might be

Re: Netbeans struggles with hierarchical Gradle Projects

2021-08-21 Thread Laszlo Kishalmi
make sure that the Tools > Options > Java > Gradle > Experimental > Enable 'lazy' Source Group Initialization is turned off. You may test NetBeans 12.5-beta1 On 8/20/21 10:43 PM, Andreas Reichel wrote: Greetings. On Fri, 2021-08-20 at 18:52 -0700, Laszlo Kishalmi wrote: Try

Re: Netbeans 11.3 enterprise application

2021-08-09 Thread Laszlo Kishalmi
Even Maven provides a pretty bad support for EAR-s. Go for WAR... On 8/7/21 12:02 PM, José Contreras wrote: I just tested this on master and got the same error when trying to build the EAR. The problem is that the pom files are badly created, to solve this you will have to rectify the pom

Re: Gradle support and depending projects

2021-06-21 Thread Laszlo Kishalmi
Please check the Experimental Gradle Settings and disable the Lazy Source Group Initialization. On 6/21/21 9:20 AM, Thomas Kellerer wrote: For me, switchting to a different project groups fixes this error (at least most of the time) Christian Pervoelz schrieb am 21.06.2021 um 15:34: Yes,

Re: Why does NB start gradle 7

2021-06-17 Thread Laszlo Kishalmi
The question is which JDK is your NetBeans running on. If it is Java 16, then NetBeans has no other option than to run Gradle 7 even for project loading, otherwise the discovery would throw an unknown class version exception. On 6/17/21 9:10 AM, Martin Meeser wrote: Hello, have you tried

Re: Should I install nb-javac plugin?

2021-05-20 Thread Laszlo Kishalmi
Yes for hot code reload. NetBeans just compiles the required classes either with the used build tool. If you happen to enable CoS, then some build tools can use shortcuts, not to invoke a lengthy build process, but that's it. On 5/20/21 1:14 AM, Neil C Smith wrote: On Thu, 20 May 2021 at

Re: netbeans 12.3 doesn't support gradle 7.0.1? (keeps trying to use 6.7 for something)

2021-05-11 Thread Laszlo Kishalmi
Well, more properly NetBeans 12.3 bundles Gradle 6.7 tooling API which does not support Java 16. Actually NetBeans 12.3 does not officially supports Java 16. Though you do not need to worry that much. NetBeans 12.4 will support Java 16, including Gradle 7.x The 12.4-rc3 is in the pipeline,

Re: Too many open gradle files

2021-05-10 Thread Laszlo Kishalmi
Known issue, fixed in12.3. On 5/9/21 10:32 PM, Will Hartung wrote: So, running 12.2, "routinely", recently, my IDE has been just seizing up saying that it can not get exclusive access to a bunch of files (like my .java files in my project). The only recourse was a hard kill of the IDE, which

Re: NetBeans 8 app flickering/uncontrolled window movement on Alienware Dell - anyone seen this ?

2021-05-06 Thread Laszlo Kishalmi
y 5, 2021 at 10:04 AM Laszlo Kishalmi mailto:laszlo.kisha...@gmail.com>> wrote: Try to upgrade your JDK On 5/5/21 7:53 AM, bruehlicke wrote: > We have a mature NetBeans 8.2 app with Java 1.8u112 running on Win 10 > without any problems. No

Re: NetBeans 8 app flickering/uncontrolled window movement on Alienware Dell - anyone seen this ?

2021-05-05 Thread Laszlo Kishalmi
Try to upgrade your JDK On 5/5/21 7:53 AM, bruehlicke wrote: We have a mature NetBeans 8.2 app with Java 1.8u112 running on Win 10 without any problems. Now we got an Alienware and from time to time the app becomes unusable as the different windows within the app are moving randomly around

Re: java.lang.NumberFormatException: For input string: ""

2021-05-03 Thread Laszlo Kishalmi
That seems to be right. On 5/3/21 9:30 PM, Zulfi Khan wrote: Hi, I am getting following message when I am compiling my program on NetBeans 12.3 on Ubuntu 18.04: cd /home/zulfi/NetBeansProjects/GUI1; JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 /snap/netbeans/45/netbeans/java/maven/bin/mvn

Re: Gradle - displaying dependency graph like Maven

2021-05-03 Thread Laszlo Kishalmi
That's the best thing you can do now. There is no UI Graph representation of dependencies implemented for Gradle. On 5/3/21 12:00 AM, Giles Winstanley wrote: `gradle dependencies` is a good starting place (I typically also use the -q option to remove the cruft). There's also, for example:

Re: removing the "new project" support for Ant projects

2021-04-23 Thread Laszlo Kishalmi
:22, Laszlo Kishalmi wrote: > > Ant projects can be fairly simply can be migrated to Gradle. It can > > support your current folder structure. Your file/directory based library > > dependencies, and occasional customization you made. > > Been there, tried that, and failed.

Re: removing the "new project" support for Ant projects

2021-04-23 Thread Laszlo Kishalmi
If someone has a well establised Ant project and he would migrate that to Maven, then he/she is looking at the wrong direction. Ant projects can be fairly simply can be migrated to Gradle. It can support your current folder structure. Your file/directory based library dependencies, and

Re: Adding dependencies in Gradle

2021-04-22 Thread Laszlo Kishalmi
You can have a file dependency to the other project artifact. Or use composite Gradle builds: https://docs.gradle.org/current/userguide/composite_builds.html On 4/22/21 2:55 PM, Don wrote: That shows a general dependency on another project.  In a NetBeans Ant project there are 2 main

Re: Gradle 7 support?

2021-04-13 Thread Laszlo Kishalmi
https://github.com/apache/netbeans/pull/2861 On 4/13/21 2:40 PM, Scott Palmer wrote: I believe this is a known issue. Hopefully a fix will make it into 12.4. Scott On Apr 13, 2021, at 3:04 PM, Fred Welland wrote:  *Product Version:* Apache NetBeans IDE 12.3 *Java:* 14.0.2; OpenJDK

Re: Manjaro/Arch XFCE - When running application in Tomcat passwords are asked

2021-04-04 Thread Laszlo Kishalmi
try to add the password at the server properties. On 4/1/21 2:33 AM, Mladen Adamović wrote: Hi all, I'm running the latest Manjaro XFCE (fork of Arch). I have enabled "Launch GNOME services at startup" in my XFCE. I'm running an application in Tomcat 9. Each first time I run the application,

Re: NetBeans 12.3 . I can not open some projects

2021-04-02 Thread Laszlo Kishalmi
Delete your netbeans userdir (maybe cache as well) The way storing  java preferences on Windows got changed with older JDKs and not in a compatible way. On 4/2/21 7:17 PM, Miguel Castañeda wrote: Hi, I had opened a java 5 version  project and after that, I can not open any java 8 project.I

Re: NetBeans Platform modules with Gradle

2021-03-29 Thread Laszlo Kishalmi
You might take a chance with: https://github.com/radimk/gradle-nbm-plugin Though it has not been updated for a while. I'm sorry but the Gradle Tooling for NBMs are pretty down on my list at the moment. I'd rather see NetBeans itself (at least the platform) being build with Gradle first.

Re: Specify JVM arguments with Gradle

2021-03-25 Thread Laszlo Kishalmi
I think bootRun task is a JavaExec task which forks a VM That does not inherit the Gradle SystemProperties. In this case I have to say you need to customize your bootRun task in your build.gradle file. On 3/25/21 6:50 AM, Thomas Kellerer wrote: Hmm... I added -Dsomeprop=somevalue

Re: Doesn't Help-->Check for Updates update 12.1 to 12.3?

2021-03-23 Thread Laszlo Kishalmi
That's for just plugin updates. We are planning to experiment using that for version updates as well, but it's too early to say anything. On 3/23/21 8:41 PM, Varuna Seneviratna wrote: Hello        I tried to update 12.1 to 12.3 by going to Help-->Check for Updates but the message is your IDE

Re: master password

2021-03-23 Thread Laszlo Kishalmi
Well, if it is Gnome. Our JNA support Gnome 2 API only which is no longer available in recent Ubuntu (and probably other) distributions. There was an option to install that library 18.04, but that is no longer available. On 3/23/21 2:00 PM, Eric Bresie wrote: Sounded like somethings were 

Re: Fwd: [java] JUnit 4 tests lead to "Forked Java VM exited abnormally"

2021-03-09 Thread Laszlo Kishalmi
Achim -- Forwarded message - Von: *Laszlo Kishalmi* <mailto:laszlo.kisha...@gmail.com>> Date: Mo., 8. März 2021 um 20:09 Uhr Subject: Re: [java] JUnit 4 tests lead to "Forked Java VM exited abnormally" To: mailto:users@netbeans.apache.org>> You might need to check the

Re: [java] JUnit 4 tests lead to "Forked Java VM exited abnormally"

2021-03-08 Thread Laszlo Kishalmi
You might need to check the VM args in the test, sometimes it passes some bootclasspath related arguments which got removed from newer JDK-s, That could result such an error. I'd recommed to switch on debug logging and check how the JVM is being invoked. On 3/8/21 10:11 AM, Achim Zielesny

Re: NetBeans installed but can't execute

2021-03-07 Thread Laszlo Kishalmi
Well, first make sure that you have removed the netbeans package with apt: sudo apt remove netbeans When that's installed the Snap package does not work Also I've noticed that your JAVA_HOME is bad. It should not point to the java executable, but a the directory where Java is being

Re: Setting JVM args for Run Single File in Gradle project

2021-03-03 Thread Laszlo Kishalmi
Well, that's not really supported without any tweaks. There is workaround though: Create a custom task named: runSingle (It might be a JavaExec type) in your Gradle build. It can use the following project properties: runClassName for the main class to be run and runArgs which is a string

Re: Error when connecting to Remote Git Repository

2021-02-25 Thread Laszlo Kishalmi
Well, if it is BitBucket (not BibBucket which I do not know of), then the trick with using it with ssh keys is Cloning the repository with the bitbucket user name instead of "git" (however it is the later which BitBucket offer by default): eg: Instead of: git clone g...@bitbucket.org:/.git

Re: Error when connecting to Remote Git Repository

2021-02-25 Thread Laszlo Kishalmi
That's bad. I guess it's because changes in BigSur. As I see NetBeans is not able to talk with the Native keyring. Please file a bug into the JIRA, at worst case NetBeans shoud offer to use its private KeyRing implementation instead of throwing a NCDFE. On 2/25/21 12:12 PM,

Re: Problem running Netbeans 12.0 debugger.

2021-02-15 Thread Laszlo Kishalmi
It seems something is to be replaced with null during your maven execution evaluation. Maybe you have an extra property to be replaced somewhere, but left unspecified. On 2/15/21 10:13 AM, Nelligan, Steven M wrote: Any suggestions on how to fix this problem? This works on other

Re: gradle problems (NetBeans 12.2)

2021-02-01 Thread Laszlo Kishalmi
. It seems I will have to evaluate other options for this project :( Regards Thomas Laszlo Kishalmi schrieb am 29.01.2021 um 20:44: Give it a try to 12.3 beta1. Well it might not get drastic changes, there are a few improvements made unfortunately not as many as I'd liked. https://github.com

Re: gradle problems (NetBeans 12.2)

2021-01-29 Thread Laszlo Kishalmi
Give it a try to 12.3 beta1. Well it might not get drastic changes, there are a few improvements made unfortunately not as many as I'd liked. https://github.com/apache/netbeans/pulls?q=is%3Apr+is%3Aclosed+milestone%3A12.3+label%3AGradle Though even if it won't entirely resolve your issues this

  1   2   3   >