Re: Netbeans 24 Usages Tab

2024-12-16 Thread Scott Palmer
On Mon, Dec 16, 2024 at 12:47 PM Michael Bien wrote: > On 16.12.24 18:38, Neil C Smith wrote: > > On Mon, 16 Dec 2024 at 17:30, m.war...@corvusengineering.com > > wrote: > >> I noticed with the Netbeans 24 release in the Usages tab is split and > shows the source code for the file results. Is t

Re: NumberFormatException

2024-08-03 Thread Scott Palmer
Change if (str ==“”) to  if (str.isEmpty())Don’t use == to compare strings. The empty string from the text field is a different entity than the constant pool empty string. You are doing an identity comparison. ScottOn Aug 3, 2024, at 10:17 PM, Pieter van den Hombergh wrote:an empty string is neve

Source File dropdown not working on primary monitor

2024-07-19 Thread Scott Palmer
This is a bit weird. i'm not sure if it is a JRE/Swing issue or a NB issue, but the little down arrow to the right of the source file tabs that pops up a menu to select from all the open documents isn't working when it is on my primary monitor (Thinkpad Laptop), but if I drag the NB window so that

Re: AI assistant for NetBeans

2024-02-10 Thread Scott Palmer
> On Feb 9, 2024, at 9:46 PM, Andreas Reichel > wrote: > >  >> >> On Sat, 2024-02-10 at 12:17 +1000, Peter Kirkham wrote: >> Maybe I'm wrong and I'm just a modern-day Luddite. > > No, you are not. It CAN be extremely useful WHEN you know exactly what you > want and are an expert in your top

Re: [ANNOUNCE] Apache NetBeans 20 released

2023-12-19 Thread Scott Palmer
Some of this confusion is caused by the fact that there is no longer a separate JRE download. Java.com was targeted at end users, not developers. There is indeed no update to the Java 8 JRE as the JRE is discontinued. The JDK is a different story. ScottOn Dec 18, 2023, at 2:55 PM, Leo Donahue wrot

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 26.09.2023 um 17:10: >> Could b

Re: Sorting it out?

2023-06-01 Thread Scott Palmer
I’m convinced “Tim” is a bot. Either that or someone that is dealing with some mental health issues. (It sends unlikely but I can’t rule it out.) I suggest the account be removed from the mailing list. If you look at all the post from that account you can see that they are rarely coherent.

Getting Source and JavaDoc for Gradle Dependencies

2023-03-04 Thread Scott Palmer
I see options in Java->Gradle=>Dependencies for "Download Sources Along with the Dependencies" and "Download JavaDoc along with the Dependencies" Both of these options are greyed-out and cannot be changed. For "Sources" it is set to "Always", for "JavaDoc" ti is set to "Never". Sources don't get

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Scott Palmer
> On Feb 26, 2023, at 7:14 AM, Thomas Kellerer wrote: > > Hello, > > I am trying to "migrate" an old NetBeans platform application that I created > with NetBeans 8.0 about 10 years ago > > I decided to create a new NetBeans platform application from scratch as there > is a lot of stuff I w

Re: Profiler does not work for me

2023-02-23 Thread Scott Palmer
Perhaps the same or related to this: https://github.com/apache/netbeans/issues/4524 Scott On Thu, Feb 23, 2023 at 1:57 PM Thomas Wolf wrote: > I haven’t used the NB profiler for a year or so, but last time I did > (running on an x86 mac in NB 12), it ran fine. > > Today I tried to profile my st

Re: How To Add a Custom Bug Report Feature to ErrorManager or Exceptions

2023-02-13 Thread Scott Palmer
That's strange. How did you configure the JDK for your project? On Mon, Feb 13, 2023 at 7:52 AM Sean Carrick wrote: > Hey, Ernie! I don't mind at all. > > I'm using JDK 11 now. I tried using JDK 19, but it didn't work…the > compiler kept stating that source level XX is not supported for every >

Re: New Gradle project creates the wrong sort of project

2023-01-16 Thread Scott Palmer
As you've noted, this is what you get from 'gradle init --type java-application'. I was happy with that behaviour too. I would rather not have the extra layer of an 'empty' parent project for simple things. I personally feel this is an issue to be brought up with Gradle. Gradle init could have a

Re: How to add local jar to Gradle

2023-01-10 Thread Scott Palmer
“The build file” is the “build.gradle” file that you would be editing to add this local dependency.  So if your .jar file was in the same folder with build.gradle, then you could just use: compile files(‘my_local.jar’)If it was in a subdirectory of your project you could use: compile files(‘project

Re: What happened with Netbeans bug reporting?

2022-12-06 Thread Scott Palmer
I personally would prefer a setting somewhere that lets NB automatically gather exception info. Opt-in only to be privacy-friendly. An automated system that collects exceptions and counts how many are reported for each unique stack trace could help direct developers to things that should be addr

Re: NetBeans `Convert to for (Iterator...) {}' suggestion

2022-11-28 Thread Scott Palmer
I agree that this isn’t usually a good suggestion. It is available as a refactoring for when you might need an iterator, but by no means should the IDE “warn” about it. I think that is the current behaviour though. The line is not marked with a hint lightbulb unless I put the cursor on that l

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

2022-09-11 Thread Scott Palmer
Perhaps best way to deal with this is to use the Gradle feature to set the tool chain version. In your build.gradle file do this: java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } See: https://docs.gradle.org/current/userguide/toolchains.html#header Scott > On

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

2022-08-08 Thread Scott Palmer
To have truly reproducible builds you need to have dependency management for the tools and JDK, not just libraries. That's what the wrapper is about. The wrapper can do hash checks on the downloaded Gradle tool so it should be "safe". Using the Gradle mechanism to run with a specified JDK, and f

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

2022-08-04 Thread Scott Palmer
> On Aug 4, 2022, at 7:37 AM, Owen Thomas wrote: > > On Thu, 4 Aug 2022 at 15:54, László Kishalmi > wrote: > Compile was discouraged at 3.4, marked for deprecation in 4.0 they removed > it in 7.0. that's pretty long time. 4 years > > No problem. I'll just h

Re: NetBeans 13 with JavaFX

2022-04-02 Thread Scott Palmer
https://openjfx.io/openjfx-docs/ There you will find JavaFX and NetBeans SceneBuilder instructions are found here https://github.com/gluonhq/scenebuilder/wiki/Basic-JavaFX-project-with-Scene-Builder Regards, Scott > On Apr 2, 2022, at 8:06 PM,

Re: Why is the JavaFX JavaDoc so bad?

2022-03-30 Thread Scott Palmer
> On Mar 25, 2022, at 2:05 PM, Will Hartung wrote: > > Why is the JavaFX JavaDoc so bad? > > I'm using Maven, JavaFX 17.0.2. I've downloaded the javadocs, I've downloaded > the sources. > > But during autocomplete, it seems most of the javadoc doesn't load. Not all, > there's certainly some

Re: [apache netbeans12[ [javafx] [install] Can't install correctly.

2022-02-14 Thread Scott Palmer
of OpenJDK are builds of OpenJDK. > > Gj > >> On Mon, 14 Feb 2022 at 03:55, Ernie Rael wrote: >> On 2/13/22 6:08 PM, Scott Palmer wrote: >> > >> > I haven’t touch Swing in years and I have no plans to use it again. >> > JavaFX is the way to go…

Re: [apache netbeans12[ [javafx] [install] Can't install correctly.

2022-02-13 Thread Scott Palmer
currently have a >> cross-platform desktop app in beta and the GUI is written in Swing - >> packaging the app with jpackage became a whole lot easier after we decide to >> remove the one JavaFX component we did use (the chart library) and replaced >> it with J

Re: [apache netbeans12[ [javafx] [install] Can't install correctly.

2022-02-10 Thread Scott Palmer
rary) and replaced > it with JFreeChart. > > sorry for the off-topic musing. > tom > > > On Feb 10, 2022 at 12:11:16 PM, Scott Palmer <mailto:swpal...@gmail.com>> wrote: >> Java 11 does not contain JavaFX. You should use the Gradle or Maven >> plugins,

Re: [apache netbeans12[ [javafx] [install] Can't install correctly.

2022-02-10 Thread Scott Palmer
Java 11 does not contain JavaFX. You should use the Gradle or Maven plugins, or use a JDK that has added the JavaFX modules (Such as the “full” Zulu JDK from Azul). I strongly recommend migrating away from Ant if you are refreshing the project to use modern tools. Scott > On Feb 9, 2022, at 6

Re: Array of Object Error: ‘]’ expected, invalid method declaration return type required.

2022-01-31 Thread Scott Palmer
Or add braces around the assignments to make an initialization block: { acc[0] = new Account(200.0, 100, “SSUET1”, ’s’); acc[1] = new Account(300.0, 101, “SSUET2”, ’s’); acc[2] = new Account(400.0, 102, “SSUET3”, ’s’); acc[3] = new Account(500.0, 103, “SSUET4”, ’c’); acc[4] = new Account

Re: JDK 8 vs 11 JAXB problem

2022-01-28 Thread Scott Palmer
Yes it was Java 11. It was a bit of a disaster how they dropped JAXB. It was a JPMS module in JDK 10, and then suddenly that wasn’t possible - you couldn’t get it back by using jlink to build a JRE that looked like the one from JDK 10. I can’t remember exactly which jar it was but basically it

Re: Log4j vulnerability

2021-12-15 Thread Scott Palmer
Also consider if NetBeans Platform apps are likely to be in a situation where malicious input is possible to exploit the vulnerability in the first place. I suppose if the update centre or start page content were hacked it could be a vector to get malicious input into the NB logging. So the ma

Re: Problems profiling a Gradle application

2021-12-11 Thread Scott Palmer
What support is needed for the “Attach to External Process” profiling to work? Scott > On Dec 10, 2021, at 11:57 PM, Laszlo Kishalmi > wrote: > >  > 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, >>

Re: Netbeans 12.6 - nb-javac

2021-12-10 Thread Scott Palmer
> On Dec 10, 2021, at 1:53 PM, Christoph Theis wrote: > > On 10.12.2021 19:24, Marvin P. Warble Jr. wrote: >> You'll need to check the "Show Details" checkbox to see it. > > Ah, that's the trick. Thank you! Does that checkbox add anything useful or is it just there to cause frustration lik

Re: JTextField and JButton variables can't use setEnabled(false) methods

2021-11-12 Thread Scott Palmer
Or put it in an initialization block by surrounding the code with { } Scott > On Nov 12, 2021, at 5:00 AM, Pieter van den Hombergh > wrote: > >  > you are calling a method in the class body, but there you can only do > declarations (of fields and methods). To do this kind of call you must be

Re: With JDK 17, Oracle moves back to a free license

2021-09-14 Thread Scott Palmer
That says for a year after the *NEXT* LTS release, so not until a year from now. That should mean a year after JDK 21 is released in 2023, so freely supported for 3 years from now. I’ve been using Azul builds these days anyway, since they make a JDK with Java FX included. Scott > On Sep 14

Re: Errors with a new JavaFX project on Netbeans 12.4

2021-09-06 Thread Scott Palmer
> On Sep 6, 2021, at 2:15 PM, Will Hartung wrote: > >> On Sun, Sep 5, 2021 at 2:09 PM Scott Palmer wrote: >> >> The easiest way to get JavaFX working smoothly is to use a JDK that has >> JavaFX modules built-in. Azul and BellSoft provide such installs of Open &

Re: Errors with a new JavaFX project on Netbeans 12.4

2021-09-05 Thread Scott Palmer
> On Sep 5, 2021, at 1:15 AM, Will Hartung wrote: > > You don't want to use a generic Maven Java project. > > You should use either "FXML JavaFX Maven Archetype (Gluon)" or "Simple JavaFX > Maven Archetype (Gluon)" > > It takes more than simply adding dependencies to get JavaFX to work, and

Re: How to installAFX on Netbeans 12.4

2021-09-01 Thread Scott Palmer
I like to run an OpenJDK build that includes JavaFX. It just simplifies things not having to deal with external module paths. Things tend to “just work” with that configuration. Azul and Bell-soft provide such builds. Otherwise follow the instructions at OpenJFX.io for a Maven or Gradle proje

Re: Netbeans struggles with hierarchical Gradle Projects

2021-08-21 Thread Scott Palmer
The ‘compile’ configuration shouldn’t be used. It has been deprecated[1][2] in favour of ‘implementation’ and ‘api’ for a long time now. It is no-longer available in Gradle 7.[3] Scott [1] https://docs.gradle.org/current/userguide/upgrading_version_5.html#changes_6.0 [2] https://stackoverfl

Re: Java : HelloWorld

2021-08-04 Thread Scott Palmer
That’s the standard install location on Windows. If it doesn’t work with NetBeans it would be broken for most people on Windows. Scott > On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga > wrote: > > Maybe connected to installing in a dir with spaces, i.e., C:\Program > Files\Java\jdk-16.0.2\bi

Re: NetBeans Platform "Golden Path"

2021-07-12 Thread Scott Palmer
; JPMS is necessary if you want to use jlink, according to the oracle manual. > It is the reason I am migrating my old programs to JPMS as and when the mood > takes me. > > >> On Thu, 8 Jul 2021, 13:50 Scott Palmer, wrote: >> Use of jlink and jpackage does NOT require

Re: NetBeans Platform "Golden Path"

2021-07-08 Thread Scott Palmer
Use of jlink and jpackage does NOT require that you use JPMS. I have never made a “modular” application using JPMS, but I use jpackage all the time (but I wasn’t making NetBeans platform apps). You just need to know which modules from the JDK to include in the runtime, assuming you don’t need a

Re: No main classes found

2021-06-28 Thread Scott Palmer
Yeah, the main method shown in your screen shot has the wrong signature.. taking a String instead of a String [] Scott > On Jun 28, 2021, at 9:26 PM, Andreas Reichel > wrote: > > Greetings. > > You will need to set the "Main Class" in the Project Properties as shown > below. > The "Main Cla

Re: Gradle support and depending projects

2021-06-21 Thread Scott Palmer
This usually goes away for me if I reload the project after building to ensure the classes being imported have been compiled. It would certainly be better if that wasn’t required. Scott > On Jun 21, 2021, at 8:35 AM, Christian Pervoelz wrote: > >  > Hi, > > I have a gradle container projec

Re: Problem with gradle 7 (try with netbeans 12.2 and 12.4)

2021-06-01 Thread Scott Palmer
Replace the (deprecated) ‘compile’ with ‘implementation’ > On Jun 1, 2021, at 4:40 AM, mez...@yahoo.com.invalid > wrote: > > Hi to All, > I went from Gradle 6.5 to 6.8 to 6.9 with no problems with a very small > project. > > With Gradle 7 (all 7s) Netbeans 12.2 and 12.4, openjdk 15.0.2, the

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

2021-04-21 Thread Scott Palmer
> On Apr 21, 2021, at 2:15 AM, Owen Thomas wrote: > > I think Ant is lovely. Most of my projects only extend the Java SE API. I > don't see the need to change to a build tool that manages third party > libraries unless and until I need to use third party libraries. > > Keep supporting Ant a

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

2021-04-20 Thread Scott Palmer
> On Apr 20, 2021, at 1:10 PM, Lisa Ruby wrote: > >  For those of you who have used Maven for a long time it may seem simple and > straightforward, but for those of us who haven't it's not. I've struggled to > try and understand it and figure out how to use it for my software project > and

Re: Gradle 7 support?

2021-04-13 Thread Scott Palmer
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 64-Bit Server VM 14.0.2+12 > Runtime: OpenJDK Runtime Environment 14.0.2+12 > System: Linu

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

2021-03-05 Thread Scott Palmer
an use the following project properties: > > runClassName for the main class to be run and runArgs which is a string > for the arguments (needed to be processed to array first), if that's > being used > > Configure your extra JVM Args in the runSingle task. > > > On 3/3/21 9:35 AM,

Setting JVM args for Run Single File in Gradle project

2021-03-03 Thread Scott Palmer
Just a quick question... How do I configure JVM options for running a single file (via right-click) for a Gradle project in NB 12.x? (I need to add a javaagent.) If there are docs somewhere please let me know. Thanks, Scott

Re: possibly naive question

2021-01-15 Thread Scott Palmer
Have you tried digging into the app bundle and using the same command a given before: /Applications/NetBeans/Apache\ NetBeans\ 11.3.app/Contents/Resources/NetBeans/netbeans/bin/netbeans --open file1[:line1]... On Fri, Jan 15, 2021 at 9:41 AM Thomas Wolf wrote: > Hi again, > You wouldn’t happen

Re: possibly naive question

2021-01-14 Thread Scott Palmer
I would, but I miss my Amiga with ARexx :-) https://en.wikipedia.org/wiki/ARexx Or AppleScript on macOS: “tell application ‘NetBeans’ open project ‘HelloWorld’” https://en.wikipedia.org/wiki/AppleScript Scriptable applications can be very powerful. I’m not sure REST is the right mechanism, but

Re: Java FX Scenebuilder w/12.2

2020-12-28 Thread Scott Palmer
I had similar issues until I manually launched SceneBuilder and opened some FXML files. After that it seemed to work. Scott > On Dec 28, 2020, at 6:14 PM, Will Hartung wrote: > >  > I just installed 12.2 and imported my 12.0 settings. > > In 12.0, if you double click on an FXML file, it wou

Re: Netbeans installer on macOS Big Sur can't find JDK

2020-12-23 Thread Scott Palmer
thing back. So >>> that would explain why the installer doesn’t see it, I guess. But it >>> doesn’t explain why previously installers *did* see it, but now they >>> don't. Nothing’s really changed - except the the default shell Apple uses >>> is now zsh and I d

Re: Netbeans installer on macOS Big Sur can't find JDK

2020-12-23 Thread Scott Palmer
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode) > > I use the Apache-NetBeans-12.2-bin-macosx.dmg installer on macOs Big Sur with > AdoptOpenJDK installed with sdkman > > >> On Wed, Dec 23, 2020 at 6:32 PM Scott Palmer wrote: >> I noticed so

Re: Netbeans installer on macOS Big Sur can't find JDK

2020-12-23 Thread Scott Palmer
I noticed something like this just yesterday when I was replacing my JDKs with Zulu JDK FX. Until I set JAVA_HOME with launchctl I would get the same message. Are you sure you don’t have a JAVA_HOME set for GUI apps that isn’t valid? (This is not the same as setting JAVA_HOME in the command lin

Re: C++ and gradle

2020-12-21 Thread Scott Palmer
It is possible, however the project view will not show your C++ source files. For that you have to use the Files view. I would love to see better integration for Gradle-based C++ projects as I often work on projects with a JNI component. Also the Gradle native builds work with the Visual C++

Re: How to upgrade from netbeans directly

2020-12-21 Thread Scott Palmer
And it has always caused this confusion... We should at least add a message in the update UI to tell users to do a manual download and install to move to a new release. I think a better option would be to have a button to upgrade to a new release when one is available. It should also be explic

Re: Getting NetBeans to work following macOS Big Sur installation

2020-11-15 Thread Scott Palmer
Yes, I suspect this is caused by a bug in Big Sur where the /usr/libexec/java_home command is completely broken. Feel free to complain to Apple through the Feedback app. I have, though they didn't seem to understand. Scott On Sun, Nov 15, 2020 at 10:18 AM David Gradwell wrote: > Hi, > > > > I

Re: NetBeans on Mac 11 stopped working

2020-11-13 Thread Scott Palmer
I’ve been running since the Big Sur betas and the only significant issue I noticed was that Big Sur breaks /usr/libexec/java_home so that it is almost completely useless. I think the NB installer might use that to get the directory for the installed JDK. Otherwise I’ve been extracting NB betas

Re: Best Java version for Netbeans

2020-11-03 Thread Scott Palmer
Well, that is only if you don't add other JDK platforms and set project-specific JDKs. (Just making sure everyone is aware that you can compile a project with Java 14 even though NetBeans itself is running on Java 8 or 11.) Scott On Tue, Nov 3, 2020 at 4:43 AM Geertjan Wielenga wrote: > Probabl

Re: Netbeans and macOS Big Sur

2020-10-24 Thread Scott Palmer
There was a minor install issue that was dealt with in 12.1. NetBeans works fine, but anyone testing Big Sur can’t comment about it outside of Apple’s developer forums. Scott > On Oct 24, 2020, at 6:30 AM, Juan Miguel Escribano > wrote: > >  > Hi Geertjan, > > I would like to do it but,

Re: Problem with dialog windows in macOS Big Sur

2020-10-23 Thread Scott Palmer
I have not seen anything like this. Scott > On Oct 23, 2020, at 8:21 AM, Julio Cesar Machado wrote: > >  > Hi everyone. > > I’m using Netbeans in macOS Big Sur. The programs runs normally, but as soon > as I access a project properties dialog (for example or search dialog), the > whole pr

How do you set the default source level?

2020-10-06 Thread Scott Palmer
When I attach source files to a jar, NetBeans is assuming a source level of 5 and showing red underlines to indicate errors. Is there a way to tell NB to default the source level for source files that are not part of a project to some other level? (E.g. 8 in my case) Scott

Re: Uninstall on MAC OS X

2020-10-06 Thread Scott Palmer
NetBeans is visible in /Applications for me. The actual application is in a NetBeans subfolder. You would need to delete that, and also : ~/Library/Application Support/NetBeans ~/Library/Caches/NetBeans to remove every trace. Cheers, Scott On Tue, Oct 6, 2020 at 10:06 AM Matthias Barmeier

Re: 12.1 ?

2020-09-29 Thread Scott Palmer
AM, Geertjan Wielenga wrote: > > Take a look, for example, at nodejs.org <http://nodejs.org/>, where you can > either download the LTS release or the current feature release -- they're > quite distinct. > > Gj > > On Tue, Sep 29, 2020 at 3:56 PM Scott Palmer <

Re: 12.1 ?

2020-09-29 Thread Scott Palmer
The distinction can be confusing. A feature release IS a kind of update. I think a feature should be added to check for new versions of NetBeans, not just plugins. Perhaps such a check can be automatic and the existence of new versions can be added to the About box? Scott > On Sep 29, 2020

Re: JavaFX 12

2020-08-05 Thread Scott Palmer
You might also consider running with a distribution of OpenJDK that includes JavaFX. That simplifies things quite a bit. No need to fiddle with the module path. One such distribution is Bell Soft’s Liberica JDK (Full version, not Standard) https://bell-sw.com/pages/downloads/#/java-14-current

Re: Plugin install problem NB 12

2020-07-31 Thread Scott Palmer
> On Jul 31, 2020, at 12:27 PM, Mitch Claborn wrote: > > The secret here was the "Show details" checkbox at Tools -> Plugins -> > Installed. I never saw it. > > It makes more sense to me for the default for that box to be checked. It makes more sense to me to get rid of the checkbox complet

Re: Help in setting up JavaFX on NB 12 and OpenBeans 12

2020-06-25 Thread Scott Palmer
gt; } > > javafx { > version = "14" > modules = [ 'javafx.controls' ] > } > > I tried several versions of adding an "apply plugin:" for JavaFX without > success. Don't know what else to do. > > thanks > art >

Re: Help in setting up JavaFX on NB 12 and OpenBeans 12

2020-06-25 Thread Scott Palmer
> On Thu, Jun 25, 2020 at 5:27 PM slipbits > wrote: > Under Java with Maven I see "FXML JavaFX Maven Archetype (Gluon)" and "Simple > JavaFX Maven Archteype (Gluon)". I suspect one of these should be chosen. The > book I'm reading, JavaFX 8 by Example, recommends J

Re: Apache NetBeans 12.0 released

2020-06-09 Thread Scott Palmer
> On Jun 9, 2020, at 12:41 PM, Geertjan Wielenga wrote: > > Hi all, > > 12.0 has been released, many thanks in particular to our amazing and > persistent release manager Eric Barboni. > > Features: > > http://netbeans.apache.org/download/nb120/index.html >

Re: Netbeans and malware article

2020-05-29 Thread Scott Palmer
The malware explicitly targets NetBeans: The malware is capable of identifying the NetBeans project files and embedding malicious payload both in project files and build JAR files. Below is a high -evel description of the Octopus Scanner operation: • Identify user's NetBeans directory

Re: Native packaging

2020-05-28 Thread Scott Palmer
+1 to NetBeans packaging option flipping to use jpackage on JDK 14+. In fact, if NB is running on JDK14 or greater, or even just has a Java 14 or greater JDK configured, it should be able to use jlink/jpackage to package an application even if the application project is configured to use an ea

Re: API key storage best practices: help from NetBeans?

2020-05-22 Thread Scott Palmer
Or if you are less paranoid, store and retrieve it with the Java Preferences API. Encrypt it so it isn’t stored in plaintext. The User preferences should be isolated from other user’s access. If your software requires a user to authenticate in any way, use that authentication in the encryption

Re:

2020-05-19 Thread Scott Palmer
Please see the Getting Started documentation at https://openjfx.io/openjfx-docs/ That will tell you how to use Gradle or Maven to build an application with JavaFX on JDK 11 or later. And please use a subject in your email messages to the list. Scott > On May 19, 2020, at 10:11 PM, Brain Rebooti

Re: Mouse quirks

2020-05-01 Thread Scott Palmer
;>> clicks. Same story for a similar problem with opening files via >>> double-click. >>> >>> On 2020-04-30 18:39, Alan wrote: >>>> That's a definite possibility... I'm a "drive by clicker", notorious for >>>> small mous

Re: Mouse quirks

2020-04-30 Thread Scott Palmer
Same on macOS. It seems if the mouse moves a single pixel between mouse down and mouse up then it may not count as a click. Scott > On Apr 30, 2020, at 11:59 AM, Darin Miller wrote: > >  > I also observe the "ultra precise" mouse behavior. Both on win7 and win10 > desktops. > > o__ > >/

Re: PSA: Modular Ant based projects no longer build on latest JDK builds

2020-04-23 Thread Scott Palmer
> On Apr 23, 2020, at 3:24 PM, Ty Young wrote: > I tried converting an modular Ant project to Gradle once and I could never > figure it out(this was early days when Modules where still new). learning an > entire language just to build is a bit much, so I was relying on IDE support. > Maven wa

Re: PSA: Modular Ant based projects no longer build on latest JDK builds

2020-04-23 Thread Scott Palmer
+1 If you aren’t already using Maven, skip it. Gradle will also be somewhat of a “do it yourself” approach, but in the long run it will be easier to manage than Maven and worth learning. You won’t get the same level of IDE support because Gradle build scripts are too easy to customize in ways

Re: Freeze/Crash of NB 11.3 on Windows - anyone else?

2020-04-03 Thread Scott Palmer
What is the memory situation And CPU usage like? Perhaps the combination of NetBeans and Gradle daemon JVMs is consuming too many resources for some reason? Scott > On Apr 3, 2020, at 3:01 PM, Rob Walker wrote: > >  > Yeah. Also agree it's unlikely NB alone. Definitely seems to need Java &Gra

Re: Java project LD_LIBRARY_PATH

2020-03-23 Thread Scott Palmer
You should set both. The LD_LIBRARY_PATH environment variable for the operating system, and the java.library.path system property for the JVM. Scott > On Mar 23, 2020, at 8:30 AM, Vladimir Kokovic > wrote: > > Hi, > Does this mean that the only solution is java.library.path system property, >

Re: Java project LD_LIBRARY_PATH

2020-03-23 Thread Scott Palmer
It works for me. If you are loading the native library directly for JNI you must also set the java.library.path system property. Scott > On Mar 23, 2020, at 8:12 AM, gmail Vladimir Koković > wrote: > - To unsubscribe, e-mai

Re: Running a modules suite with OpenJavaFX

2020-03-21 Thread Scott Palmer
The correct thing to do is to use jlink to create a JRE for your application, including the JavaFX JMODs. Package the JRE with the application, sa that is noe the recommended practice. The new jpackage tool in JDK 14 can help with that. Regards, Scott > On Mar 21, 2020, at 12:30 PM, Jean-

Re: bringing an old javafx RCP project into the modern era

2020-01-29 Thread Scott Palmer
> On Jan 29, 2020, at 12:21 PM, Neil C Smith wrote: > > > > On Wed, 29 Jan 2020, 17:06 Scott Palmer, <mailto:swpal...@gmail.com>> wrote: > > Isn’t the “right” way to create a JRE using jimage which includes the JavaFX > modules via JavaFX JMOD files and

Re: bringing an old javafx RCP project into the modern era

2020-01-29 Thread Scott Palmer
> On Jan 29, 2020, at 5:00 AM, Neil C Smith wrote: > > On Wed, 29 Jan 2020 at 06:58, Boris Heithecker > wrote: >> the problem with including JavaFX in a NetBeans RCP app is deployment, >> because you need different versions of the extension for different operating >> systems. All of the ha

Re: Gradle use cases / your opinion needed! Give Feedback by 5th of January!

2019-12-30 Thread Scott Palmer
What kind of compiling options would this affect? Anything that disrupts the configuration of compiler options that are set by the gradle script would cause problems. Scott > On Dec 30, 2019, at 11:30 AM, Laszlo Kishalmi > wrote: > > Dear all, > > I'm thinking about to change the Gradle proj

Re: Java 8 still on Java.com

2019-10-01 Thread Scott Palmer
I would go with the jpackage EA build. That tool is going to be part of the JDK as of Java 14 after all. Scott > On Sep 30, 2019, at 9:06 PM, Derik Devecchio wrote: > >  > Emillian, > > Thanks for getting back to me.I am not trying to re-invent “write once > run anywhere”.I accept

Re: Java 8 still on Java.com

2019-09-30 Thread Scott Palmer
There are no JRE downloads after Java 8. You are expected to bundle Java with your application. Scott > On Sep 30, 2019, at 12:39 PM, Derik Devecchio > wrote: > > I know that the Netbeans’s forum doesn’t maintain Java.com > . But I don’t know anyone else to ask off hand.

Re: A Bad Thing has happened to the promise of platform independence

2019-09-28 Thread Scott Palmer
with the changes in each release. Anyway, let’s build that path forward and get NB smoothly operating. With the right tool support we can get rid of some of these pain points. Scott > On Sep 28, 2019, at 1:50 PM, Walter Oney wrote: > > From: Scott Palmer > Oracle does no

Re: A Bad Thing has happened to the promise of platform independence

2019-09-28 Thread Scott Palmer
Oracle does not state that JavaFX is included in Java 11. Java 11 is the release where many modules were removed. Java 11 and later must use the modules from the JavaFX SDK. The Maven and Gradle plugins should make that fairly easy. Though working with external modules is awkward in general b

Re: Question on Netbeans 11 and C++

2019-09-28 Thread Scott Palmer
rs is not what makes open > source community work. > > > Am 28. September 2019 03:32:41 MESZ schrieb Scott Palmer : >> >> The other option is MinGW, both it and Cygwin are *NEVER* used by >> professional developers on Windows. >> >> They don’t work with

Re: Question on Netbeans 11 and C++

2019-09-27 Thread Scott Palmer
C on the command line if XCode won't cut it. > > Al > > On Fri, Sep 27, 2019 at 9:51 AM Scott Palmer <mailto:swpal...@gmail.com>> wrote: > Would be great to see C/C++ support via Gradle’s 'cpp-library’ plugin. A > smooth Java + JNI project setup wo

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
This is a good first step. I think some rough edges remain though. For example, if you go to the project properties ->Build->Compile and flip the JDK between Java from 8 to 11+, I’m guessing everything breaks. Can we do anything helpful in that situation? JavaFX 13 requires Java 11. What versi

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
I'm beginning to think I should just return to > Java 8. I have solved many problems in migrating to Java 11, but I am getting > a bit discouraged when I contemplate the possibility of many problems still > to come, problems that suggest I should change professions from statisticia

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
n I contemplate the possibility of many problems still > to come, problems that suggest I should change professions from statistician > to Java developer -- not something I want to contemplate at this stage in my > career. > > Any advice for the harried and distraught

Re: Question on Netbeans 11 and C++

2019-09-27 Thread Scott Palmer
Would be great to see C/C++ support via Gradle’s 'cpp-library’ plugin. A smooth Java + JNI project setup would be welcome along with it. Existing NetBeans C/C++ support on Windows is not very practical. Bordering on almost unusable actually. (It requires use of a toolset that is virtually n

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
essions from statistician > to Java developer -- not something I want to contemplate at this stage in my > career. > > Any advice for the harried and distraught _amateur_ programmer? > > Thank you in advance! > > -- Chris > > > > > > - Original

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-24 Thread Scott Palmer
The target should be 11 not 1.11. Scott > On Sep 24, 2019, at 8:49 PM, Chris Olsen wrote: > > Hello, Everyone -- > > I have downloaded AdoptOpenJDK, JavaFX 11, and Maven (or so I believe). I > have waded through getting to zero FX compile errors, and with the clarion > call of "Excelcio

Re: Netbeans 11 and Gradle

2019-04-08 Thread Scott Palmer
Hi Mark, I use Gradle exclusively. (To the point where if I have to work on a project that isn’t using Gradle the first thing I do is convert it to Gradle so I don’t have to suffer further ;-).) #1 - Check the project description as defined in the build.gradle file. Then check the option: Jav

Re: Refresh project with netbeans 11

2019-03-27 Thread Scott Palmer
I found the project was automatically re-evaluated as soon as a saved a change to the build.gradle file. Gradle grabs the new dependencies at that point. Scott > On Mar 27, 2019, at 10:50 AM, Marc Collin wrote: > > hope there is a real solution > > Le mar. 26 mars 2019 à 16:39, hanas...@gmai

Failing Gradle support for modular JavaFX project in 11-vc2

2019-03-08 Thread Scott Palmer
I just recently attempted to make a modular project. I’m using JavaFX so I tried the somewhat-official javafx gradle plugin and used the modular gradle example from here: https://github.com/openjfx/samples/tree/master/CommandLine/Modular/Gradle/hellofx

Re: Trying out NB10

2019-03-05 Thread Scott Palmer
I have my NB under C:\Program Files\ and it doesn’t appear to be causing any issues, but if you really need to eliminate the spaces and still put things in your cloud drive, just use the subst command to remap the cloud drive path to an unused drive letter. Scott > On Mar 5, 2019, at 4:28 PM,

Re: Calling all Gradle users!

2019-01-26 Thread Scott Palmer
I exclusively use Gradle, so I will be testing extensively. The new plugin (or maybe it is partly the NB build) does have some issues with my projects. I will attempt to isolate a test case. I already emailed Laszlo, but he needs to be able to reproduce the issue. Scott > On Jan 26, 2019, at

  1   2   >