Re: [somewhat off-topic] need advice for new Mac notarization reqs.

2024-10-04 Thread Thomas Wolf
Thanks for the feedback everyone.
I guess, instead of encrypting my executables to evade Apple's notarization, 
I'll go the codesign route as well.  The only question I'm asking myself is: 
why doesn't jpackage handle this?  I feed it the --macsign and 
--mac-signing-key-user-name arguments, but it only seems to sign the actual 
package with that.

Best everyone - and sorry again for the off-topic thread.
Tom


> On Oct 4, 2024, at 11:35 AM, Eirik Bakke  wrote:
> 
> > But what to do about the JGit JNA dependency?  I read sometime back that 
> > Netbeans also uses JGit - if that's true, how do the community members that 
> > provide the DMG installer of NB handle this notarization requirement?  Or 
> > is there a version of JGit that's pure Java that I could use instead and 
> > avoid the issue altogether?
>  
> For my own NetBeans Platform application [1] I have various GitHub Actions 
> scripts that assemble and sign the executables for Windows, MacOS, and Linux. 
> My MacOS notarization script includes running "codesign" on various 
> individual files inside the package. Sometimes that requires unzipping a JAR 
> file, signing a native library inside it, and zipping it back up again.
>  
> E.g. currently I'm running codesign manually on...
> platform/modules/lib/aarch64/libjnidispatch-nb.jnilib
> platform/modules/lib/x86_64/libjnidispatch-nb.jnilib
> platform/modules/lib/libflatlaf-macos-x86_64.dylib
> platform/modules/lib/libflatlaf-macos-arm64.dylib
> platform/modules/ext/flatlaf-3.5.1.jar (some specific files inside this one)
> platform/modules/ext/jna-5.14.0.jar (some specific files inside this one)
>  
> -- Eirik
> [1] https://www.ultorg.com/
>  
>  
> From: Thomas Wolf 
> Date: Thursday, October 3, 2024 at 1:13 PM
> To: NetBeans Mailing List 
> Subject: [somewhat off-topic] need advice for new Mac notarization reqs.
>  
> Hi,
> I'll be up-front: this isn't strictly a Netbeans question, but I do wonder 
> how NB developers handle this situation and, hopefully, get some ideas about 
> what I can do myself.
>  
> Recently, I went through my usual notarization process with my application (a 
> DMG installer produced by jpackage) only to see the submission fail.  Looking 
> at the log, Apple is now complaining about the native macOS executables I'm 
> bundling in my application's jar file as well as the JNA jar that JGit's jar 
> depends on.  It seems Apple is getting ever more watchful on what runs on 
> their Macs.
>  
> I was able to get around the notarization failure on my native executables by 
> simply encrypting them.  I know, the 'right' thing to do would be to actually 
> do the three things Apple now asks for (signing each executable, providing a 
> secure time stamp, and having them run in a hardened runtime environment), 
> but I have neither the time nor Mac-specific knowledge to go down that path.  
> Encrypting those executables will prevent future snooping by Apple as well.
>  
> But what to do about the JGit JNA dependency?  I read sometime back that 
> Netbeans also uses JGit - if that's true, how do the community members that 
> provide the DMG installer of NB handle this notarization requirement?  Or is 
> there a version of JGit that's pure Java that I could use instead and avoid 
> the issue altogether?
>  
> Thanks in advance,
> Tom
>  
>  
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> <mailto:users-unsubscr...@netbeans.apache.org>
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> <mailto:users-h...@netbeans.apache.org>
>  
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: [somewhat off-topic] need advice for new Mac notarization reqs.

2024-10-03 Thread Thomas Wolf
Uh, I actually "misspoke" when I said that JGit uses JNA.  It seems that it 
works just fine - at least for how my app uses it (clone and pull) - without 
the JNA jar.  So my app now passes the notarization process.  But I do still 
wonder what others are doing to insulate themselves from what appears to be 
Apple's constant - and unannounced - changes to its notarization process?

Best,
Tom


> On Oct 3, 2024, at 1:13 PM, Thomas Wolf  wrote:
> 
> Hi,
> I'll be up-front: this isn't strictly a Netbeans question, but I do wonder 
> how NB developers handle this situation and, hopefully, get some ideas about 
> what I can do myself.
> 
> Recently, I went through my usual notarization process with my application (a 
> DMG installer produced by jpackage) only to see the submission fail.  Looking 
> at the log, Apple is now complaining about the native macOS executables I'm 
> bundling in my application's jar file as well as the JNA jar that JGit's jar 
> depends on.  It seems Apple is getting ever more watchful on what runs on 
> their Macs.
> 
> I was able to get around the notarization failure on my native executables by 
> simply encrypting them.  I know, the 'right' thing to do would be to actually 
> do the three things Apple now asks for (signing each executable, providing a 
> secure time stamp, and having them run in a hardened runtime environment), 
> but I have neither the time nor Mac-specific knowledge to go down that path.  
> Encrypting those executables will prevent future snooping by Apple as well.
> 
> But what to do about the JGit JNA dependency?  I read sometime back that 
> Netbeans also uses JGit - if that's true, how do the community members that 
> provide the DMG installer of NB handle this notarization requirement?  Or is 
> there a version of JGit that's pure Java that I could use instead and avoid 
> the issue altogether? 
> 
> Thanks in advance,
> Tom
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[somewhat off-topic] need advice for new Mac notarization reqs.

2024-10-03 Thread Thomas Wolf
Hi,
I'll be up-front: this isn't strictly a Netbeans question, but I do wonder how 
NB developers handle this situation and, hopefully, get some ideas about what I 
can do myself.

Recently, I went through my usual notarization process with my application (a 
DMG installer produced by jpackage) only to see the submission fail.  Looking 
at the log, Apple is now complaining about the native macOS executables I'm 
bundling in my application's jar file as well as the JNA jar that JGit's jar 
depends on.  It seems Apple is getting ever more watchful on what runs on their 
Macs.

I was able to get around the notarization failure on my native executables by 
simply encrypting them.  I know, the 'right' thing to do would be to actually 
do the three things Apple now asks for (signing each executable, providing a 
secure time stamp, and having them run in a hardened runtime environment), but 
I have neither the time nor Mac-specific knowledge to go down that path.  
Encrypting those executables will prevent future snooping by Apple as well.

But what to do about the JGit JNA dependency?  I read sometime back that 
Netbeans also uses JGit - if that's true, how do the community members that 
provide the DMG installer of NB handle this notarization requirement?  Or is 
there a version of JGit that's pure Java that I could use instead and avoid the 
issue altogether? 

Thanks in advance,
Tom


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Does right-click no longer work in macOS Beta 2?

2024-06-25 Thread Thomas Wolf
Thanks Neil!

That actually did the trick - didn't expect it as I had not changed anything 
about either NB nor the JDK it was using in over 2 years (yes, I did know that 
JDK 21 wasn't supported by NB 16, but I needed JDK 21 and, hey, it worked just 
fine :-)  Anyway, I downloaded the NB 22/JDK22 installer and it works as 
expected.

Best,
Tom


> On Jun 25, 2024, at 1:16 PM, Neil C Smith  wrote:
> 
> On Tue, 25 Jun 2024 at 18:07, Thomas Wolf  wrote:
>> I haven't changed my NB setup for a long time - still on version 16 and the 
>> jdk I use for both NB and my app is OpenJDK 21.
> 
> NetBeans 16 doesn't support running on JDK 21!  That may not be the
> issue, of course.
> 
> More recent ASF and community installers are also properly signed with
> hardened runtime.
> 
> Best wishes,
> 
> Neil
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Does right-click no longer work in macOS Beta 2?

2024-06-25 Thread Thomas Wolf


Can someone confirm this?  I noticed that after downloading the second dev beta 
of macOS 15, right-clicking - at least the two-finger tap on the touchpad I use 
as I have no mouse - does not work in Netbeans.  Then I noticed it didn't work 
in the swing app I was working on either.  So I think it simply doesn't work in 
any Java-based application.

I haven't changed my NB setup for a long time - still on version 16 and the jdk 
I use for both NB and my app is OpenJDK 21.

Thanks for confirming,
Tom


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to create property/getter/setter methods for JavaFX property using NB 22

2024-05-07 Thread Thomas Wolf
The solution doesn’t really have anything to do with Java FX.  Put your cursor 
where you want to put the getter/setter methods and then right-click 
menu->Insert Code… and pick creation of getter/setter methods.

Tom

> On May 7, 2024, at 7:50 AM, PavelTurk  wrote:
> 
> Hello all,
> 
> Could anyone say how create property/getter/setter methods for JavaFX 
> property?
> 
> For example, if I have:
> 
> private StringProperty test = new SimpleStringProperty();
> 
> I want NB to generate:
> 
> public StringProperty testProperty() {
> return this.test;
> }
> 
> public String getTest() {
> return this.test.get();
> }
> 
> public void setTest(String test) {
> this.test.set(test);
> }
> 
> I installed JavaFX plugin but I can't find how to do it. I tried Alt + INS -> 
> Add property but it seems that it can't do that.
> 
> Best regards, Pavel
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: RAM usage

2024-04-10 Thread Thomas Wolf
I've been writing Java applications since around 1995 and I have written many 
sizable ones that didn't require a huge amount of RAM.  Of course the JVM 
itself is a fixed overhead which is now, what, 50MB? (but even that can be 
ameliorated via modularization these days), and more and more third-party 
libraries and frameworks are in use, all of which add to an application's 
footprint.  And then there's the skill of the developer, lack of emphasis on 
design and testing, etc.  When applications had a life span of years or even 
decades, the cost of design, testing, performance tuning, etc. was worth it.  
Nowadays, there's much more of an emphasis of speed-to-market and the resulting 
software quality and performance reflects that.  But that's a general 
observation that doesn't just hold for Java applications - today's web apps in 
whatever language they're written are pretty slow and humongous in their RAM 
requirements.  But folks don't often complain about their Google Chrome or 
Safari browsers reaching giga-bytes in size?!

Back in the late 90's, when Netbeans first came out, it was a *lot* smaller.  
But back then, life was simple.  There was no groovy, maven, ivy, built-in web 
servers, support for web apps and frameworks, other programming languages, 
terminals, to-do lists, different IDE look & feels,...the list is endless - and 
it all adds up.

Also, Java app processes reserve memory via various JVM arguments (-Xms, -Xmx, 
etc.)  I don't know what Netbeans sets those parameters to these days, but you 
can adjust them yourself in the netbeans.conf file.  And Netbeans may not 
actually be using as much memory as you see the process take up - but once a 
Java process claims operating system memory (e.g. it needed a lot of RAM for a 
particular, but temporary operation), it doesn't give it back (at least that's 
how it used to be).

In sum, I think blaming Java for Java applications' large memory consumption is 
misguided.  If you could write the sort of applications written in Java in 
other languages (and it's not at all clear you could, given the huge Java 
ecosystem of ready-made third-party components/functionality), and in the time 
allowed to write those applications, they'd probably use just as much RAM.  
(yes, I do understand that what I just wrote may not hold in specific 
application domains, but I'm making a cross-domain point).

Just my $.02.
Tom



> On Apr 10, 2024, at 12:18 PM, Raul Cosio  wrote:
> 
> That's the question I've asked myself for years... In the first versions of 
> Java that was a concern: Why did Netbeans use 200MB of RAM when Visual Basic 
> used just 10MB or less? PC's were more limited in RAM, maybe that's why Java 
> was not popular in desktop apps, but succeeded with web servers, where you 
> could afford a server with more RAM and disk drive. We had a joke at the 
> office: "Java was slow and used huge amounts of RAM, however, now PC's have 
> faster processors and lots of RAM!" :)
> These days it is not uncommon to see Netbeans using 1.5GB of RAM, yes it uses 
> caches, precompiling, error detection, popup documentation and many more 
> features but it still does not make sense.
> I don't know if somebody has an answer to this question but I guess it is 
> related to performance and GC: If you have a considerable amount of RAM 
> reserved, it's much faster to allocate new objects. Java is very efficient at 
> Object allocation, in the same way, garbage collection is so fast that you 
> don't even notice when it is running, so I would say: Java uses lots of RAM 
> because performance is more important.
> Finally, I remember many years ago when a coworker went to a JBoss training 
> course, and he asked the instructor: Why do Java and JBoss have to use such 
> amounts of RAM? The instructor made a small pause and then he said 
> (rephrasing at today's economy): How much is a developer salary? 20-30 
> dollars an hour? And, how much is a 16 GB stick of RAM? 16 dollars? Well, 
> just buy more RAM for your developers and let them focus on solving business 
> problems...
> 
> 
> On Wed, Apr 10, 2024 at 3:32 AM Tom  > wrote:
>> Why does Java and Netbeans use extreme amounts of RAM for simple apps?
>> Can there be done something about it?
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
>> 
>> For additional commands, e-mail: users-h...@netbeans.apache.org 
>> 
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 



Re: NetBeans integrated terminal

2024-04-02 Thread Thomas Wolf
I don't know how the Netbeans team chose to implement its terminal feature.  
But I'd imagine it would involve a Java Swing component such as JEditorPanel 
and sending Midnight commander's stdout/stderr streams to that panel and 
forwarding keyboard input to the stdin of that application.

tom

> On Apr 2, 2024, at 4:47 PM, PavelTurk  wrote:
> 
> midnight commander TUI interface



Re: NetBeans integrated terminal

2024-04-02 Thread Thomas Wolf
Just because an application was written in Java doesn't mean it can't run 
external processes.  Look into the java API documentation on ProcessBuilder 
class.
Tom


> On Apr 2, 2024, at 4:36 PM, PavelTurk  wrote:
> 
> Hello all.
> 
> Could anyone explain how it is possible to run native application, for 
> example, midnight commander in NB terminal?
> I mean NB is a java application and as I understand it uses swing library for 
> UI. And how  was native application made
> to work inside java application with swing? What is the magic here?
> 
> Best regards, Pavel
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to stop output "wobbling"?

2024-03-07 Thread Thomas Wolf
You’re making all the Swing calls in the EDT (vs directly in the threads you mentioned), right?TomOn Mar 7, 2024, at 6:40 AM, Owen Thomas  wrote:The numbers running down the left are milliseconds, all others are nanos. As you can see, all this happens within the same millisecond, and perhaps I'm thinking that Swing wasn't built with rendering output at this rate in mind.Anyway, I'd love to know what people have to say. :)On Thu, 7 Mar 2024 at 22:04, Owen Thomas  wrote:Hello Netbeans people. This is not a question for Netbeans itself, but I know there are a lot of clever people here who may be able to give me a pointer or two, so please look away if this question might offend. I hope it doesn't. :)My program uses Swing. It outputs text to a window. The output is attached. At a particular point (the line is highlighted in the attached screenshot) the output begins to wobble; that is, the line spacing becomes uneven and (perhaps) even characters appear to be squashed.Now, I thought this might be something to do with how quickly the output is produced (it is produced very quickly - those numbers are time measurements in nanoseconds) and how competing threads might cause the Swing GUI innards to lose their grip somehow, but when I tried wrapping some of my code within synchronised blocks, I didn't see any improvement.Surely I think to myself things like this have been done before. Does anyone know how I might be able to stop this wobbling?Thanks,  Owen.



Re: Adjusting to monitor resolution

2023-12-06 Thread Thomas Wolf
Others will most likely provide a more helpful answer, but just in case not, 
one of the potential problems is with the version of the JRE you’re running 
Netbeans with.  I believe before Java 17, things like fonts didn’t scale well.  
So running with Java 17+ might help.  Plus in Windows (I’m  a mac/linux user) 
isn’t there a font related display setting that you can increase?  Lastly, when 
I asked this question a few years ago, a kind soul gave some arguments you 
could give to Netbeans in its config file to help.  Google searches for 
“netbeans” “quad resolution” and “tiny” might yield useful results.

good luck,
tom

> On Dec 6, 2023, at 2:39 PM, Greenberg, Gary  wrote:
> 
> I am working with NB 18 on DELL laptop in two locations (1/2 day in each), 
> where I am connecting laptop to external monitors.
> My problem is that monitors have different resolutions.
> 3840X2160
> 1920X1200
> When connected to a higher resolution monitor, fonts becoming small and 
> uncomfortable.
> Changing the font settings in Netbeans twice a day is cumbersome. Changing 
> monitor setting is blocked by sysadmins.
> Can I configure options to automatically adjust NB to monitor resolution?
>  
> Gary Greenberg
> Staff Software Engineer



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

2023-09-19 Thread Thomas Wolf
Thanks!  Definitely better than using the lastModified() date on the File I was 
using :-)

With respect to the build modification, I’m old school and still stuck on ant.

But many thanks for the ImplementationVersion suggestion.
tom


> On Sep 19, 2023, at 2:03 PM, Laszlo Kishalmi  
> wrote:
> 
> Well, if using a home brew solution, I may rely on the hidden gem of:
> 
> MyClass.class.getPackage().getImplementationVersion()
> 
> If you provide a nice MANIFEST.MF with your jar that should work.
> 
> The original problem would still persist, in that case you need to configure 
> your build system.
> 
> If that would happen to be Gradle then:
> 
> tasks.named("jar") {
> manifest {
> attributes("Implementation-Title": project.name,
> "Implementation-Version": "1.0",
> "Main-Class": application.mainClass,
>     )
>     }
> }
> 
> tasks.named("run") {
> classpath = files(tasks.jar)
> }
> 
> 
> 
> On 9/19/23 10:26, Thomas Wolf wrote:
>> Hi Laszlo,
>> My J2SE application is installed by a jpackage-created installer on 
>> mac/linux/windows and can be either a client or a server.  The application, 
>> upon startup, checks if there’s a new version of the app jar available on a 
>> server instance and, if so, downloads it so the next time the application 
>> starts up, the new jar is used.  If one assumes the jar has no external 
>> dependencies that might break as a result of moving to a newer version, I 
>> don’t think this method leads to added brittleness in the application.  But 
>> maybe I’m missing something?  I’d love to hear your perspective.
>> 
>> In answer to your question, the high level problem I’m trying to solve with 
>> this is the avoidance of our user having to re-install our application - or 
>> even having to update it manually.  I looked into using jdeploy, but we 
>> (i.e. our company) don’t want our code accessible in a public repository 
>> like npmjs or GitHub.  So I’m kind of forced to ‘roll my own’.  Using the 
>> build date of the jar is just my first, crude step in doing this because it 
>> is easiest to implement.
>> 
>> If you have any 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 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 somebody screaming at the end.
>>> 
>>> On 9/19/23 07:38, Thomas Wolf wrote:
>>>> Hi,
>>>> My application has a bit of code that tries to do something based on the 
>>>> build date of the jar file.  To get the jar file, it does something like 
>>>> this:
>>>> 
>>>>File jarFile = new 
>>>> File(Startup.class.getProtectionDomain().getCodeSource().getLocation().toURI());
>>>> 
>>>> This works fine when the application is run outside of NB, but when 
>>>> debugging inside NB, the File that gets pointed to is the 
>>>> $HOME/NetBeansProjects/myproject//build/classes/ directory.  Is there a 
>>>> way to config the NB project to use the jar file that it generates - i.e. 
>>>> $HOME/NetBeansProjects/myproject/dist/app.jar ?
>>>> 
>>>> Any info is much appreciated,
>>>> Tom
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>> 
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>> 
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



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

2023-09-19 Thread Thomas Wolf
Hi Laszlo,
My J2SE application is installed by a jpackage-created installer on 
mac/linux/windows and can be either a client or a server.  The application, 
upon startup, checks if there’s a new version of the app jar available on a 
server instance and, if so, downloads it so the next time the application 
starts up, the new jar is used.  If one assumes the jar has no external 
dependencies that might break as a result of moving to a newer version, I don’t 
think this method leads to added brittleness in the application.  But maybe I’m 
missing something?  I’d love to hear your perspective.

In answer to your question, the high level problem I’m trying to solve with 
this is the avoidance of our user having to re-install our application - or 
even having to update it manually.  I looked into using jdeploy, but we (i.e. 
our company) don’t want our code accessible in a public repository like npmjs 
or GitHub.  So I’m kind of forced to ‘roll my own’.  Using the build date of 
the jar is just my first, crude step in doing this because it is easiest to 
implement.

If you have any 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 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 somebody screaming at the end.
> 
> On 9/19/23 07:38, Thomas Wolf wrote:
>> Hi,
>> My application has a bit of code that tries to do something based on the 
>> build date of the jar file.  To get the jar file, it does something like 
>> this:
>> 
>>  File jarFile = new 
>> File(Startup.class.getProtectionDomain().getCodeSource().getLocation().toURI());
>> 
>> This works fine when the application is run outside of NB, but when 
>> debugging inside NB, the File that gets pointed to is the 
>> $HOME/NetBeansProjects/myproject//build/classes/ directory.  Is there a way 
>> to config the NB project to use the jar file that it generates - i.e. 
>> $HOME/NetBeansProjects/myproject/dist/app.jar ?
>> 
>> Any info is much appreciated,
>> Tom
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



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

2023-09-19 Thread Thomas Wolf
Hi,
My application has a bit of code that tries to do something based on the build 
date of the jar file.  To get the jar file, it does something like this:

File jarFile = new 
File(Startup.class.getProtectionDomain().getCodeSource().getLocation().toURI());

This works fine when the application is run outside of NB, but when debugging 
inside NB, the File that gets pointed to is the 
$HOME/NetBeansProjects/myproject//build/classes/ directory.  Is there a way to 
config the NB project to use the jar file that it generates - i.e. 
$HOME/NetBeansProjects/myproject/dist/app.jar ?

Any info is much appreciated,
Tom


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Static Code Analysis Tutorial Review - FindBugs plugin not available

2023-08-26 Thread Thomas Wolf
I think the successor to FindBugs is SpotBugs - although I don’t know if there’s a NB plug-in for it.TomOn Aug 26, 2023, at 8:46 PM, Stroud Custer  wrote:
  


  
  
Static
Code Analysis Tutorial
This tutorial includes instructions for using a plugin called
  FindBugs, which is not shown in the list of Available  Plugins in
  NB19.  Is there a source for an NB19 version of this plugin?

  



Re: Git branch display

2023-03-25 Thread Thomas Wolf
I don’t have NB in front of me, but there’s a menu option - I think under “View” to show version labels - that shows branch info.On Mar 25, 2023, at 1:25 PM, Jerome Lelasseux  wrote:
Not exactly what you ask, but the project tooltip shows the current branch, as shown below<1679765052193blob.jpg>Jerome





Le samedi 25 mars 2023 à 18:15:22 UTC+1, Admin @ Goodun  a écrit :



Is there a way of getting NetBeans to (always) display the git branch Icurrently am switched to?Mark(v17)-To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.orgFor additional commands, e-mail: users-h...@netbeans.apache.orgFor further information about the NetBeans mailing lists, visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

<1679765052193blob.jpg>-To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.orgFor additional commands, e-mail: users-h...@netbeans.apache.orgFor further information about the NetBeans mailing lists, visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Project Folder Icons "clear"?

2023-03-16 Thread Thomas Wolf
Re-read your post and ask yourself “Does this even have a modicum of 
information for anybody to reply with anything except ‘works for me’?”



> On Mar 16, 2023, at 12:06 PM, Peter Borreggine  
> wrote:
> 
> Hello,
> 
> I have a problem with NB16, the SAVE doesn't work... I have to abandon and 
> use 12.5. Why is this happening?  It's not stable.
> 
> Regards,
> 
> Peter Borreggine
> Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO
> WebParity.net
> A Service Connected Disabled Veteran Owned Business
> WA State License: 603-501-609
> 360-830-8926 C
> 
> “The proper function of man is to live, not to exist. I shall not waste my 
> days in trying to prolong them. I shall use my time.”
> - - Jack London
> 
> This email message is for the sole use of the intended recipient(s) and may 
> contain confidential and privileged information. If you are not the intended 
> recipient, please contact the sender and destroy all copies of the original 
> message and its attachments. Any unauthorized review, use, disclosure, or 
> distribution is prohibited.
> 
> -Original Message-
> From: Brad K.  
> Sent: Thursday, March 16, 2023 9:03 AM
> To: users@netbeans.apache.org
> Subject: Project Folder Icons "clear"?
> 
> Hello --
> 
> I just upgraded from NetBeans 15 to 17. I noticed that the folder icons in 
> both the Project tab and the Files tab are uncolored outlines of folders 
> instead of the "standard" manila folder look.
> 
> Is this on purpose or is my installation amiss?
> 
> V/r,
> 
> Brad
> 
> Environment: Windows 10 Pro, Java 17
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Profiler does not work for me

2023-02-23 Thread Thomas Wolf
Thanks - I added my vote and confirmation comment to that bug report.
Best,
Tom


> On Feb 23, 2023, at 2:04 PM, Scott Palmer  wrote:
> 
> 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  <mailto:tjw...@gmail.com>> 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 standalone JSE application in NB 16 with JDK 
>> 17.05 on my ARM-based Mac for the first time and the profiler just sits in a 
>> calibration dialog (see 1st attachment) forever.  If I cancel that dialog, I 
>> get several other dialogs before I finally get out of the profiling session. 
>>  The output from the Output window is shown below also.  Lastly, I don’t see 
>> much in the IDE log either (other than the same error message about a data 
>> transfer error during instrumentation calibration).
>> 
>> I restarted the IDE and tried again - same result.  When I run the same 
>> identical project on an x86 Mac on the same version Netbeans 16, JDK 17 
>> (17.06 vs. 17.05 on ARM), and same macOS, the profiler works just fine.
>> 
>> Has anyone come across this issue?  i will upgrade my ARM-based Mac to 17.06 
>> - just to make everything identical, but I doubt it’ll have an effect.
>> 
>> Any help/info appreciated,
>> Tom
>> 
>> 
>> *** Profiler message (Thu Feb 23 13:38:13 EST 2023): Starting target 
>> application...
>> /Library/Java/JavaVirtualMachines/jdk-17.0.5.jdk/Contents/Home/bin/java 
>> -agentpath:/Applications/NetBeans/Apache NetBeans 
>> 16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib
>>  
>> <http://16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib>
>>  -Xbootclasspath/a:/Applications/NetBeans/Apache NetBeans 
>> 16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server.jar:/Applications/NetBeans/Apache
>>  
>> <http://16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server.jar:/Applications/NetBeans/Apache>
>>  NetBeans 
>> 16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server-15.jar
>>  
>> <http://16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server-15.jar>
>>  org.netbeans.lib.profiler.server.ProfilerServer 
>> /Applications/NetBeans/Apache NetBeans 
>> 16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac 
>> <http://16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac>
>>  5141 10 Profiler+Calibration+Run
>> *** Profiler error (Thu Feb 23 13:38:56 EST 2023): connection with server 
>> not open
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
>> <mailto:users-unsubscr...@netbeans.apache.org>
>> For additional commands, e-mail: users-h...@netbeans.apache.org 
>> <mailto:users-h...@netbeans.apache.org>
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Profiler does not work for me

2023-02-23 Thread Thomas Wolf
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 standalone JSE application in NB 16 with JDK 17.05 
on my ARM-based Mac for the first time and the profiler just sits in a 
calibration dialog (see 1st attachment) forever.  If I cancel that dialog, I 
get several other dialogs before I finally get out of the profiling session.  
The output from the Output window is shown below also.  Lastly, I don’t see 
much in the IDE log either (other than the same error message about a data 
transfer error during instrumentation calibration).

I restarted the IDE and tried again - same result.  When I run the same 
identical project on an x86 Mac on the same version Netbeans 16, JDK 17 (17.06 
vs. 17.05 on ARM), and same macOS, the profiler works just fine.

Has anyone come across this issue?  i will upgrade my ARM-based Mac to 17.06 - 
just to make everything identical, but I doubt it’ll have an effect.

Any help/info appreciated,
Tom


*** Profiler message (Thu Feb 23 13:38:13 EST 2023): Starting target 
application...
/Library/Java/JavaVirtualMachines/jdk-17.0.5.jdk/Contents/Home/bin/java 
-agentpath:/Applications/NetBeans/Apache NetBeans 
16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib
 -Xbootclasspath/a:/Applications/NetBeans/Apache NetBeans 
16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server.jar:/Applications/NetBeans/Apache
 NetBeans 
16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server-15.jar 
org.netbeans.lib.profiler.server.ProfilerServer /Applications/NetBeans/Apache 
NetBeans 
16.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac 
5141 10 Profiler+Calibration+Run
*** Profiler error (Thu Feb 23 13:38:56 EST 2023): connection with server not 
open











-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Combobox - letter size

2023-01-15 Thread Thomas Wolf
Layouts were invented so one doesn’t ’t have to compute sizes.  If one learns to use the right layouts, panels continue to look good when windows need to be resized because of screen resolution changes, font changes, language changes, etc.E.g. what will an application with null layouts look like to a visually impaired person who globally changes the app font size from the 14pt size assumed in all positioning to 36pt?Swing/AWT has lots of layout classes, but I’ve been writing applications in Swing for almost 30 years and I really only ever use 3: GridbagLayout, BorderLayout, and FlowLayout. If I remember correctly,  the original Netbeans GUI editor, Matisse, defaulted to using no layout but did a great job when one switched to GridBagLayout.  Much later, a new layout (Spring?) was added and I think the GUI editor eventually defaulted to it.  That layout manager, in my opinion, was only ever good for creating screens with a GUI builder - manually writing code with it was more cumbersome than with the above mentioned layout managers.  At least to me.Anyway - that’s my long winded explanation for why layout managers are your friend 😀On Jan 14, 2023, at 11:39 PM, Tim de Vries  wrote:I use a SizedPanel extends JPanel for null Layout and it works for all my needs. But you have to compute sizing yourself. I use it that way for both BoundingBox’es and GUI components. I use it in Swing and Awt. I use a mix of both or it doesn’t work correctly. It all works properly. There used to be some issues with doLayout, but after not calling the doLayout method and calling tec_layout, that code shadowing problem went away, similar with what goes on with spring framework transitive dependencies, but that’s another story.TimSent from my iPhoneOn Jan 13, 2023, at 8:07 AM, Thomas Wolf <tjw...@gmail.com> wrote:You are using code - it’s just that the NB GUI editor creates the Java code for you.   The height of the combobox is constrained by how much space the containing panel is giving it.  In other words, it doesn’t matter how tall you tell the combo box to be, if the panel doesn’t give it that much space, it’s irrelevant.  I would look into that.  I can’t help you any more since you’re not familiar with the basics of how Java Swing works nor how the NB GUI editor works.  I would read up on Java Layout management.Good luck,TomOn Jan 12, 2023, at 11:06 PM, Murali Govind <murali...@gmail.com> wrote:HiThanks for responding. I am not using any code. I am using the GUI component.I don’t know which of the properties will change the way it looks.RegardsMuraliOn 12 Jan 2023, at 8:09 PM, Thomas Wolf <tjw...@gmail.com> wrote:Like I said earlier, it might be a layout issue.  Saying “help” isn’t enough detail for anyone to actually help.  You have to actually post the code that has the problem for people to try and help.  Like the snippet of your code that creates the panel that has the combo box that has the problem.TomOn Jan 12, 2023, at 2:46 AM, Murali Govind <murali...@gmail.com> wrote:HiApologies for the delay. I have tried all size like properties to make the letters visible. None of them seem to work. Would you happen to know which property I need to set?RegardsMuraliOn 6 Jan 2023, at 8:28 PM, Thomas Wolf <tjw...@gmail.com> wrote:Not enough detail, but it looks like you’re not giving the combo box enough space to size itself around the size of the container items. Check the layout and/or size of the surrounding panel(s).Hope that helpsTomOn Jan 5, 2023, at 10:25 PM, Murali Govind <murali...@gmail.com> wrote:HiI am able to change the size of the combobox. I can change the size of font also. But the area inside the combobox where the text is displayed remains the same size. As a result it truncates the text.Anyone can help how to fix it?RegardsMurali

Re: Combobox - letter size

2023-01-13 Thread Thomas Wolf
You are using code - it’s just that the NB GUI editor creates the Java code for 
you.   The height of the combobox is constrained by how much space the 
containing panel is giving it.  In other words, it doesn’t matter how tall you 
tell the combo box to be, if the panel doesn’t give it that much space, it’s 
irrelevant.  I would look into that.  I can’t help you any more since you’re 
not familiar with the basics of how Java Swing works nor how the NB GUI editor 
works.  I would read up on Java Layout management.

Good luck,
Tom


> On Jan 12, 2023, at 11:06 PM, Murali Govind  wrote:
> 
> Hi
> 
> Thanks for responding. I am not using any code. I am using the GUI component.
> 
> 
> 
> I don’t know which of the properties will change the way it looks.
> 
> Regards
> Murali
> 
>> On 12 Jan 2023, at 8:09 PM, Thomas Wolf > <mailto:tjw...@gmail.com>> wrote:
>> 
>> Like I said earlier, it might be a layout issue.  Saying “help” isn’t enough 
>> detail for anyone to actually help.  You have to actually post the code that 
>> has the problem for people to try and help.  Like the snippet of your code 
>> that creates the panel that has the combo box that has the problem.
>> Tom
>> 
>>> On Jan 12, 2023, at 2:46 AM, Murali Govind >> <mailto:murali...@gmail.com>> wrote:
>>> 
>>> Hi
>>> 
>>> Apologies for the delay. I have tried all size like properties to make the 
>>> letters visible. None of them seem to work. Would you happen to know which 
>>> property I need to set?
>>> 
>>> Regards
>>> Murali
>>> 
>>>> On 6 Jan 2023, at 8:28 PM, Thomas Wolf >>> <mailto:tjw...@gmail.com>> wrote:
>>>> 
>>>> Not enough detail, but it looks like you’re not giving the combo box 
>>>> enough space to size itself around the size of the container items. Check 
>>>> the layout and/or size of the surrounding panel(s).
>>>> 
>>>> Hope that helps
>>>> Tom
>>>> 
>>>>>> On Jan 5, 2023, at 10:25 PM, Murali Govind >>>>> <mailto:murali...@gmail.com>> wrote:
>>>>> 
>>>>> Hi
>>>>> 
>>>>> I am able to change the size of the combobox. I can change the size of 
>>>>> font also. But the area inside the combobox where the text is displayed 
>>>>> remains the same size. As a result it truncates the text.
>>>>> 
>>>>> 
>>>>> 
>>>>> Anyone can help how to fix it?
>>>>> 
>>>>> Regards
>>>>> Murali
>>> 
> 



Re: Combobox - letter size

2023-01-12 Thread Thomas Wolf
Like I said earlier, it might be a layout issue.  Saying “help” isn’t enough 
detail for anyone to actually help.  You have to actually post the code that 
has the problem for people to try and help.  Like the snippet of your code that 
creates the panel that has the combo box that has the problem.
Tom

> On Jan 12, 2023, at 2:46 AM, Murali Govind  wrote:
> 
> Hi
> 
> Apologies for the delay. I have tried all size like properties to make the 
> letters visible. None of them seem to work. Would you happen to know which 
> property I need to set?
> 
> Regards
> Murali
> 
>> On 6 Jan 2023, at 8:28 PM, Thomas Wolf  wrote:
>> 
>> Not enough detail, but it looks like you’re not giving the combo box enough 
>> space to size itself around the size of the container items. Check the 
>> layout and/or size of the surrounding panel(s).
>> 
>> Hope that helps
>> Tom
>> 
>>>> On Jan 5, 2023, at 10:25 PM, Murali Govind  wrote:
>>> 
>>> Hi
>>> 
>>> I am able to change the size of the combobox. I can change the size of font 
>>> also. But the area inside the combobox where the text is displayed remains 
>>> the same size. As a result it truncates the text.
>>> 
>>> 
>>> 
>>> Anyone can help how to fix it?
>>> 
>>> Regards
>>> Murali
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Combobox - letter size

2023-01-06 Thread Thomas Wolf
Not enough detail, but it looks like you’re not giving the combo box enough 
space to size itself around the size of the container items. Check the layout 
and/or size of the surrounding panel(s).

Hope that helps
Tom

> On Jan 5, 2023, at 10:25 PM, Murali Govind  wrote:
> 
> Hi
> 
> I am able to change the size of the combobox. I can change the size of font 
> also. But the area inside the combobox where the text is displayed remains 
> the same size. As a result it truncates the text.
> 
> 
> 
> Anyone can help how to fix it?
> 
> Regards
> Murali

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Can't run NetBeans 16 app on MacOS

2022-12-22 Thread Thomas Wolf
I just got a new MBP and downloaded NB 16 yesterday.  Other than the installer 
requiring “Rosetta” to be installed in order to proceed, I encountered no 
problem at all.  NB app works as expected.  I downloaded from the official 
Apache NB site (pushed the “Download” button on the main web page and then 
picked the suggested mirror.)

I’m on Ventura 13.1 with an M1 Max MBP and running NB with JDK 17.05.

tom



> On Dec 22, 2022, at 1:22 PM, David Gradwell  wrote:
> 
> 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:
>  
> 
>  
> “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 & Security/Security I see:
>  
> 
>  
> When I go “Open anyway” NetBeans opens OK and runs as expected.
>  
> Has anyone else encountered this issue ?
>  
> I have experience of the Apple Notarisation process and am happy to help 
> who-ever made the .dmg if they would get in touch.
>  
> Regards
>  
> David Gradwell



Re: how to turn off parameter names?

2022-12-22 Thread Thomas Wolf
Thanks!
Tom

> On Dec 22, 2022, at 3:19 PM, Laszlo Kishalmi  
> wrote:
> 
> 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, NB 16, in a tiny grey font, displays the argument variable name!  
>> While I’m sure it can be valuable, I find it more distracting than anything 
>> else.  Is there a way to turn this off via preferences?  I looked in the 
>> more obvious places Settings->Editor->Code Completion & Hints but didn’t see 
>> anything relevant.
>> 
>> Any pointer would be appreciated.
>> Tom
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



how to turn off parameter names?

2022-12-22 Thread Thomas Wolf
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, 
NB 16, in a tiny grey font, displays the argument variable name!  While I’m 
sure it can be valuable, I find it more distracting than anything else.  Is 
there a way to turn this off via preferences?  I looked in the more obvious 
places Settings->Editor->Code Completion & Hints but didn’t see anything 
relevant.

Any pointer would be appreciated.
Tom


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Why is max heap under NB different than outside it?

2022-12-05 Thread Thomas Wolf
Never mind - the stupid bug struck hard (long time ago I must’ve set the 4GB as 
a VM option in the configuration I was using).
Sorry about the noise.
tom


> On Dec 5, 2022, at 3:20 PM, Thomas Wolf  wrote:
> 
> 
> I was running my J2SE application inside of NB and with a large data set ran 
> out of heap space.  I don’t specify a -Xmx arg for my app and I was curious 
> why with 32GB of physical memory that should happen.  I ran the application 
> again and, from the command-line, did
>   jinfo -flag MaxHeapSize xxx (xxx is my app’s process id)
> to see how much heap the JVM decided to allocate.  It returned
>   -XX:MaxHeapSize=4294967296
> Weird - that’s 1/8th of my physical memory.  If memory served, Java was 
> supposed to use up to 1/4th physical memory for max heap size.  So I ran the 
> application again - this time straight from the command-line rather than from 
> inside NB.   And outside of NB, jinfo reported the expected 8GB of heap:
>   -XX:MaxHeapSize=8589934592
> 
> Does anyone know why that is?
> 
> Although I doubt it matters, I’m running on macOS 13.1, NB 13, with NB and my 
> app both using JDK/JRE 17.
> 
> thanks,
> Tom
> 
> 
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Why is max heap under NB different than outside it?

2022-12-05 Thread Thomas Wolf


I was running my J2SE application inside of NB and with a large data set ran 
out of heap space.  I don’t specify a -Xmx arg for my app and I was curious why 
with 32GB of physical memory that should happen.  I ran the application again 
and, from the command-line, did
jinfo -flag MaxHeapSize xxx (xxx is my app’s process id)
to see how much heap the JVM decided to allocate.  It returned
-XX:MaxHeapSize=4294967296
Weird - that’s 1/8th of my physical memory.  If memory served, Java was 
supposed to use up to 1/4th physical memory for max heap size.  So I ran the 
application again - this time straight from the command-line rather than from 
inside NB.   And outside of NB, jinfo reported the expected 8GB of heap:
-XX:MaxHeapSize=8589934592

Does anyone know why that is?

Although I doubt it matters, I’m running on macOS 13.1, NB 13, with NB and my 
app both using JDK/JRE 17.

thanks,
Tom





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Possibility of Netbeans supporting more languages

2022-09-20 Thread Thomas Wolf
I think the suggestion is to learn about a subject before making statements about it.  E.g. it isn’t the “job of the Apache Netbeans” [to implement user requested features.]. A “job” is a function performed for pay - work. Who is getting paid - and by whom - to implement those features?I think Andreas put it well in his response with respect to how features get implemented in a community supported tool.On Sep 20, 2022, at 7:46 AM, Amn Ojee Uw  wrote:Thanks, I would love to check it out when I get some downtime. However,  something tells me that you know the law, but not the message in it, thank you nonetheless. 😊 On Tue., Sep. 20, 2022, 7:40 a.m. Geertjan Wielenga,  wrote:Take a look around at the apache.org website to see what it is about (i.e., all volunteer programmers, just like you; you want something, you build it).GjOn Tue, 20 Sep 2022 at 13:38, Amn Ojee Uw  wrote:Well, isn't that the job of the Apache Netbeans.The features requests is what users do.If I have a request and Netbeans wants to include any of us in that teem, one could help. I love the suggestion of the OP, and respect the suggestion being offered. However, accepting that suggestion would require too much effort for a single developer; not only time wise, but also mental and physical, just to mention some. This kind of endeavours are better suited for a stablish company like Apache.I'm offering my help, in case one of the developers need coffee or something from the kitchen :), 7 to 10 hour a week.I truly hope Apache is not just reading this emails,  but also giving them the cerebral value they deserve.On Tue., Sep. 20, 2022, 3:37 a.m. László Kishalmi,  wrote:Well, pick a language and start writing the support for that. It's that simple.On Tue, Sep 20, 2022, 00:22 N  wrote:Hello,I was an ardent user of Netbeans from 2009 to around 2016, while using Java (and for a short while when using C++ and Python). I've even written about it, and linked to James Gosling's support for Netbeans.The reason for mentioning this, is because current popular IDE's lack the usability that Netbeans has. There is a LOT of features that are very thoughtfully crafted, and has left me wishing it was there in other IDE's too. Problems with other IDE's:Intellij Idea: Too heavy on resources. Can't run it on my 2GB RAM, Celeron laptop.VS Code: The various view panels are inflexible in position and simple tasks that should have been easily runnable, are complex in accessibility and usage. Julia's plugin for VS Code makes it extremely slow to run Julia programs.Spyder: Poor support for refactoring.Sublime text: Unbelievably un-intuitive IDE. Need to Google search for how to do anything in it.Atom: Is already being sunsetted.Eclipse and LiClipse: Is kind of ok, but not as good as Netbeans.It's not just me. When using Java, many of my juniors were also enthusiastically vocal in their preference for Netbeans. You've built a great IDE. If Netbeans could be streamlined to be lightweight, bug-free and if support for languages like Python, Julia, R and C++ is added/improved, and if Netbeans could be marketed more, it'd be a great help to the software community.-- Regards,Navin






Re: Simple navigation question

2022-08-21 Thread Thomas Wolf
If I understood the question, right-clicking in the file and selecting “Select 
in Project” will highlight the file in the project tree.

Tom


> On Aug 21, 2022, at 8:09 AM, Amn  wrote:
> 
> 
> Nice!! How do you do that?
> 
> On 2022-08-18 3:43 p.m., Patrik Karlström wrote:
>> Just select "Synchronize Editor with Views" in the View menu should do it, 
>> live.
>> 
>> Den tors 18 aug. 2022 kl 21:38 skrev Blake McBride :
>>> Greetings,
>>> 
>>> I am using NetBeans 14.  I have a simple navigation question (in Java).
>>> 
>>> Let's say I have many classes in a package hierarchy.  I am editing a 
>>> particular file / class.  I want to click something so that my "Packages" 
>>> window selects the file I am editing.
>>> 
>>> Seems like a simple need.  I just can't figure out how to do it.
>>> 
>>> Sure appreciate any help.
>>> 
>>> Blake McBride
>>> 


macOS Ventura and Stage Manager

2022-08-12 Thread Thomas Wolf
A bit of a sidebar:

This isn’t strictly a Netbeans question, but since it affects Netbeans, I’ll 
ask it here: does anyone know how to make Java apps like Netbeans work better 
with macOS Ventura’s Stage Manager?  Specifically, here’s the problem I see 
with all my Java apps, including Netbeans, now: if you have Stage Manager 
enabled, when you open an application (or application window), whatever app was 
on the screen before should ‘leave the stage’ - i.e. should get minimized off 
to the left side - leaving only the newly opened application window. 

Well, with Java applications this seems to extend to any dialog box as well.  
Click on a menu entry to open a file and your application window disappears 
while the File Chooser pops up.  Open Netbeans Go-to-Type search dialog or Find 
Usage dialogs or any dialog - same thing.  It’s always disconcerting - and 
annoying in cases where you might still want to see the data on the main screen 
while answering the dialog’s question.  Native apps don’t have this issue - 
e.g. if you do a File->Open File in Safari, a file chooser dialog comes up, but 
the main safari window stays.

It is a Java issue - probably the mechanism it uses for displaying dialogs 
(maybe under the covers they are merely ‘windows’ in macOS rather than native 
dialogs) - but I wonder if there’s a workaround or if the next version of Java 
will address this?

tom


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: FlatLAF on NB 14

2022-06-26 Thread Thomas Wolf
I don’t know anything about NB platform apps but the LAFs you said were 
included come with the JDK, whereas FlatLAF is not.  At one point FlatLAF also 
didn’t come with the IDE and had to be added as a plugin - ie an nbm file.  
Maybe you need to do that?

Hope that helps,
Tom

> On Jun 26, 2022, at 8:09 AM, Mike Hallan  wrote:
> 
> 
> Hi, 
> 
> I upgraded an existing NB Platform Application (using Ant) to NB 14 and want 
> to get the app to use FlatLAF Light as the default on startup. It doesn't and 
> the FlatLAF doesn't even appear as an option in the app's LAF combo box.
> 
> Even if I create a completely a new Platform Application the FlatLAF does not 
> appear in the app's LAF combo box. All I see in the app's 
> Tools>Options:Appearance>Look and Feel combo box is: Metal, Nimbus, 
> CDE/Motif, Windows (default) and Windows Classic. Whereas in the NB 14 IDE's 
> LAF combo box I also see FlatLAF options and even an additional FlatLAF 
> options tab.
> 
> Can anybody please tell me if I do need to manually install some kind of 
> FlatLAF JAR with additional calls to UIManager.installLookAndFeel() etc so 
> that a NB Platform Application (built by NB14) will start with FlatLAF listed 
> in its LAF combo box and ideally have the application start with FlatLAF as 
> default. It just seems wrong bc FlatLAF is already in the IDE and has 
> probably been optimized for NB too.
> 
> Thanks,
> Mike


Re: fresh install netbeans 12 windows 11 won't launch

2022-06-18 Thread Thomas Wolf
Are you saying that you are trying to run NB 12 with JDK 18?  I don’t think 
that’s a supported configuration - i.e. to run NB itself you probably need an 
earlier version of the JDK - e.g. 16 or before (not sure about the specific 
one).  But your projects can use the latest JDK afaik.

hope that’s useful
tom


> On Jun 18, 2022, at 1:18 PM, Christopher C. Lanz  
> wrote:
> 
> Hello,
> 
> I see many posts about earlier versions, but my question doesn't seem to have 
> been addressed, or anyway, I can't find it.
> 
> I just installed java jdk 18 64bit for windows and netbeans 12, on a new 
> windows 11 machine. The splash screen appears, and gets through "done loading 
> modules" and then the blue & white window disappears, and no netbeans launch 
> appears to have happened.
> 
> Suggestions?
> 
> Thanks.
> 
> 
> Chris Lanz
> Department of Computer Science
> 340 Dunn Hall, SUNY Potsdam
> lan...@potsdam.edu 315 268 1547



Any idea when the macOS installer of 13 will become available?

2022-03-10 Thread Thomas Wolf
….just curious.  Been seeing the “in progress” message at
https://netbeans.apache.org/download/nb13/nb13.html since the NB 13 release.
Thnx,
tom


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

2022-02-10 Thread Thomas Wolf
 Totally off-topic: does anyone find it ironic that the successor to Swing
was taken out of the JDK while Swing itself survives?  Makes me feel rather
good about never having jumped on the JavaFX bandwagon.  We 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 JFreeChart.

sorry for the off-topic musing.
tom


On Feb 10, 2022 at 12:11:16 PM, Scott Palmer  wrote:

> 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:25 PM, Robert Lockwood  wrote:
>
> I have a Java application from some years ago using an old Netbeans,
> JavaFX, Scene Builder, and Java 8.  I've been asked to add features to and
> thought that I would migrate it to a more current IDE etc. and put an end
> to the warnings I receive when I build. I'm using macOA Monterey and an
> Apple Silicon M1 macBook.
>
> I've managed to fix all the syntax errors with help from Dr. Google but
> cannot complete a build. It cannot find the executable or the deployment
> library in the JDK.  I've supplied the locations in the libraries and jars
> list and have added the path to the Java Home folder in /Library/... (as a
> side issue Netbeans cannot find the javadocs).
>
> I don't know what I missed and what to try next so I'm asking for help
> here.  First time use of this mailing list, too. The application won't be
> deployed BTW.  I understand the Nashorn warnings.
>
> Path to JDK /Lbrary/Java/JavaVirtualMachines/jdk-11.0.2.jdk added to $PATH
>
> Build output slightly edited with '***' prepended to warnings and
> errors of note:
>
> *** Warning: java executable not found in JDK, evaluating java executable
> in RT instead.
> init:
> deps-clean:
> Updating property file:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-clean.properties
> Deleting directory
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
> clean:
> init:
> deps-jar:
> Created dir:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
> Updating property file:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-jar.properties
> Created dir:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> Created dir:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/empty
> Created dir:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/generated-sources/ap-source-output
> Compiling 9 source files to
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> Copying 5 files to
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> compile:
> < 14 Nashorn warnings >
> Warning: Nashorn engine is planned to be removed from a future JDK release
>
> Copying 11 files to
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/dist/lib
> *** : java executable not found in JDK, evaluating java executable in RT
> instead.
> Detected JavaFX Ant API version 1.0
>
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3550:
> The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3578:
> The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3597:
> The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:524:
> Error:
> *** JavaFX deployment library not found in active JDK.
>
> *** Please check that the JDK is correctly installed and its version is at
> least 7u4 on Mac or 7u6 on other systems.
> BUILD FAILED (total time: 7 seconds)
>
>
>


Re: JDK 8 vs 11 JAXB problem

2022-01-28 Thread Thomas Wolf
 He’s using ant.
tom


On Jan 28, 2022 at 10:02:03 AM, Lister Jonathan 
wrote:

> Hi Scott,
> we build against both JDK 8 and JDK 11 versions and manage the JAXB issue
> by adding this to our Maven pom.xml
>
> 
> 
> javax.xml.bind
> jaxb-api
> runtime
> 
>
> Hope this helps.
> --
> *From:* Scott Palmer 
> *Sent:* 28 January 2022 2:57 PM
> *To:* NetBeans Mailing List 
> *Cc:* Tom Eicher ; Thomas Wolf 
> *Subject:* Re: JDK 8 vs 11 JAXB problem
>
> 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 became de-modularized as far as jlink is concerned.  So a step backwards
> that Oracle didn’t seem to be concerned with. Not to mention the fact that
> the package names change if you want to upgrade to newer versions - so even
> if the jakarta people have finally got around to making it modular again
> (they didn’t seem to care either), you can’t drop the modules in and have
> things work.  I unfortunately had a large project made from over a hundred
> independently developed plugins making it very difficult to manage.
>
> So you have to add old versions of JAXB to the classpath to move to JDK 11
> or beyond unless you can refactor your project to the new packages.
>
> Scott
>
> On Jan 28, 2022, at 9:08 AM, Thomas Wolf  wrote:
>
> I think JAXB stopped being included with the JDK somewhere around JDK 11.
> You should find the JAXB jar files on the ’net (I got them from maven
> central) and include them in your project’s class path .  At least that’s
> what I did - I also have an ant based project.  The files I use for all my
> JAXB-related code are (some are run-time, not build-time required):
> jaxb-impl-3.0.2.jar
> jakarta.activation-2.0.1.jar
> jakarta.xml.bind-api-4.0.0-RC2.jar
> jaxb-core-3.0.2.jar
>
> Hope this helps.
> Tom
>
>
> On Jan 28, 2022 at 6:00:53 AM, Tom Eicher  wrote:
>
> Hello,
>
> I'm back to my problem that has hindered me updating to
> any Netbenas after 8.2...
>
> My Application (ear, ejb, war) is still on JDK 8 with
> an ant build.
>
> When I start NB 12.6 with JDK8 runtime, all is fine with
> the application.
> But I can't edit; the editor has strange behaviour and
> reports show a missing method CharBuffer.flip()
> (just sent a problem report from NB)
>
> When I start NB 12.6 with JDK11 runtime, all is fine with
> NB and editors.
> But I can't compile:
> Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
> in the ant build.
>
> So I add JDK8 as a NB platform, and change my project
> to use JDK8 ... but this seems not to affect the ant
> build. It still breaks. Seems the ant build does not
> respect JDK platform setting?
>
> Ideas welcome.
>
> Thanks Tom.
>
>


Re: JDK 8 vs 11 JAXB problem

2022-01-28 Thread Thomas Wolf
 I think JAXB stopped being included with the JDK somewhere around JDK 11.
You should find the JAXB jar files on the ’net (I got them from maven
central) and include them in your project’s class path .  At least that’s
what I did - I also have an ant based project.  The files I use for all my
JAXB-related code are (some are run-time, not build-time required):
jaxb-impl-3.0.2.jar
jakarta.activation-2.0.1.jar
jakarta.xml.bind-api-4.0.0-RC2.jar
jaxb-core-3.0.2.jar

Hope this helps.
Tom


On Jan 28, 2022 at 6:00:53 AM, Tom Eicher  wrote:

> Hello,
>
> I'm back to my problem that has hindered me updating to
> any Netbenas after 8.2...
>
> My Application (ear, ejb, war) is still on JDK 8 with
> an ant build.
>
> When I start NB 12.6 with JDK8 runtime, all is fine with
> the application.
> But I can't edit; the editor has strange behaviour and
> reports show a missing method CharBuffer.flip()
> (just sent a problem report from NB)
>
> When I start NB 12.6 with JDK11 runtime, all is fine with
> NB and editors.
> But I can't compile:
> Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
> in the ant build.
>
> So I add JDK8 as a NB platform, and change my project
> to use JDK8 ... but this seems not to affect the ant
> build. It still breaks. Seems the ant build does not
> respect JDK platform setting?
>
> Ideas welcome.
>
> Thanks Tom.
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Thomas Wolf
 Just looking briefly at the Project->Inspect and Transform and the
Source->Inspect… the main difference I see is that the latter allows the
scope to be “Current Folder” - which the former doesn’t have.  So it
doesn’t look like one is a strict superset of the other.

tom

On Jan 13, 2022 at 4:38:46 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> If the one does similar plus more and works. maybe we should simply hide
> the other.
>
> Gj
>
> On Thu, 13 Jan 2022 at 22:34, Michael Bien  wrote:
>
>> ah interesting i can reproduce it too.
>>
>> try using refactor -> "inspect and transform" instead. It has similar
>> functionality + it can refactor after inspection.
>>
>> Don't know why inspect behaves differently. Inspect and transform uses
>> jackpot, while "inspect" can use other plugins too - there might be
>> something wrong in the check whats available and what is not.
>>
>> -mbien
>>
>> On 13.01.22 22:16, Thomas Wolf wrote:
>>
>> Hi Michael,
>> All my projects use “IDE-wide” in the project property hints as that
>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>> the “Inspect” button, but the results tab simply shows “Required Plugin
>> Missing” even when the configuration I’ve defined and run uses the built-in
>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>> a configuration - just select the “Default” one - which uses the “Netbeans
>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>> see (at least I do) the result of “Required Plugin Missing”.
>>
>> Sure looks like a big ‘ole bug to me.
>>
>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>> relevant here.
>>
>> Thanks,
>> Tom
>>
>>
>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>
>>> Hi Tom,
>>>
>>> "NetBeans Java Hints" should be there out of the box. Its the same
>>> system which is responsible for the in-editor hints. Difficult to say
>>> what is going on there. But in general:
>>>
>>> There are two configs, one is global which is applied to all projects by
>>> default, and the per-project config which can replace the global default
>>> if so configured.
>>>
>>> You can find the settings in the project properties -> hints section.
>>> The global config is also replicated again in tools -> options -> editor
>>> -> hints.
>>>
>>> You can run a custom set of rules via refactor -> inspect and transform
>>>
>>> Additionally to all that you can also write your own hint rules. Some
>>> example are here:
>>>
>>> https://github.com/mbien/jackpot-inspections
>>>
>>> (read the readme)
>>>
>>> regards,
>>>
>>> michael
>>>
>>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>>> > Geertjan,
>>> > How do I create a configuration that uses simply the Netbeans Java
>>> Hints"
>>> > analyzer? Under “Configuration” one can pick “Default” and then
>>> “Manage…”
>>> > button becomes active. I then create a custom configuration using the
>>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>>> > so, which one? I looked into the available plugins dialog and don’t see
>>> > one named that.
>>> >
>>> > Thinking that I might need to click the “Install” button with my custom
>>> > configuration selected, I try it - but it still looks for “FindBugs”
>>> - even
>>> > though my configuration doesn’t use it.
>>> >
>>> > Is the answer “You’re just not holding it right”?
>>> >
>>> > Any advice appreciated,
>>> > Tom
>>> >
>>> >
>>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>>> > geertjan.wiele...@googlemail.com> wrote:
>>> >
>>> > > Yes, FindBugs is no longer supported and that reference to it should
>>> be
>>> > > removed.
>>> > >
>>> > > Gj
>>> > >
>>> > > On 

Re: Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Thomas Wolf
 Yes, " Project->Inspect and Transform” seems to work.
Tom


On Jan 13, 2022 at 5:03:52 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Can you try the other one and see if it does what you need?
>
> Gj
>
> On Thu, 13 Jan 2022 at 23:01, Thomas Wolf  wrote:
>
>> Done:
>> https://issues.apache.org/jira/browse/NETBEANS-6388
>>
>> Tom
>>
>>
>> On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com> wrote:
>>
>>> Can you report it with steps, would be happy to try to reproduce it. And
>>> I think we need to remove all FindBugs support since it's broken and no
>>> longer supported.
>>>
>>> Something that looks like a big 'ole bug is welcome to be turned into an
>>> issue.
>>>
>>> Gj
>>>
>>> On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:
>>>
>>>> Hi Michael,
>>>> All my projects use “IDE-wide” in the project property hints as that
>>>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>>>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>>>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>>>> the “Inspect” button, but the results tab simply shows “Required Plugin
>>>> Missing” even when the configuration I’ve defined and run uses the built-in
>>>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>>>> a configuration - just select the “Default” one - which uses the “Netbeans
>>>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>>>> see (at least I do) the result of “Required Plugin Missing”.
>>>>
>>>> Sure looks like a big ‘ole bug to me.
>>>>
>>>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>>>> relevant here.
>>>>
>>>> Thanks,
>>>> Tom
>>>>
>>>>
>>>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>>>
>>>>> Hi Tom,
>>>>>
>>>>> "NetBeans Java Hints" should be there out of the box. Its the same
>>>>> system which is responsible for the in-editor hints. Difficult to say
>>>>> what is going on there. But in general:
>>>>>
>>>>> There are two configs, one is global which is applied to all projects
>>>>> by
>>>>> default, and the per-project config which can replace the global
>>>>> default
>>>>> if so configured.
>>>>>
>>>>> You can find the settings in the project properties -> hints section.
>>>>> The global config is also replicated again in tools -> options ->
>>>>> editor
>>>>> -> hints.
>>>>>
>>>>> You can run a custom set of rules via refactor -> inspect and transform
>>>>>
>>>>> Additionally to all that you can also write your own hint rules. Some
>>>>> example are here:
>>>>>
>>>>> https://github.com/mbien/jackpot-inspections
>>>>>
>>>>> (read the readme)
>>>>>
>>>>> regards,
>>>>>
>>>>> michael
>>>>>
>>>>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>>>>> > Geertjan,
>>>>> > How do I create a configuration that uses simply the Netbeans Java
>>>>> Hints"
>>>>> > analyzer? Under “Configuration” one can pick “Default” and then
>>>>> “Manage…”
>>>>> > button becomes active. I then create a custom configuration using the
>>>>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit
>>>>> “Inspect”,
>>>>> > the dialog disappears as if everything is cool, but the “Inspector”
>>>>> tab
>>>>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin?
>>>>> If
>>>>> > so, which one? I looked into the available plugins dialog and don’t
>>>>> see
>>>>> > one named that.
>>>>> >
>>>>> > Thinking that I might need to click the “Install” button with my
>>>>> custom
>>>>> > configuration selected, I try it - but it still looks for “FindBugs”
>>>>> - even
>>>>> > though my configuration do

Re: Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Thomas Wolf
 Done:
https://issues.apache.org/jira/browse/NETBEANS-6388

Tom


On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Can you report it with steps, would be happy to try to reproduce it. And I
> think we need to remove all FindBugs support since it's broken and no
> longer supported.
>
> Something that looks like a big 'ole bug is welcome to be turned into an
> issue.
>
> Gj
>
> On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:
>
>> Hi Michael,
>> All my projects use “IDE-wide” in the project property hints as that
>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>> the “Inspect” button, but the results tab simply shows “Required Plugin
>> Missing” even when the configuration I’ve defined and run uses the built-in
>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>> a configuration - just select the “Default” one - which uses the “Netbeans
>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>> see (at least I do) the result of “Required Plugin Missing”.
>>
>> Sure looks like a big ‘ole bug to me.
>>
>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>> relevant here.
>>
>> Thanks,
>> Tom
>>
>>
>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>
>>> Hi Tom,
>>>
>>> "NetBeans Java Hints" should be there out of the box. Its the same
>>> system which is responsible for the in-editor hints. Difficult to say
>>> what is going on there. But in general:
>>>
>>> There are two configs, one is global which is applied to all projects by
>>> default, and the per-project config which can replace the global default
>>> if so configured.
>>>
>>> You can find the settings in the project properties -> hints section.
>>> The global config is also replicated again in tools -> options -> editor
>>> -> hints.
>>>
>>> You can run a custom set of rules via refactor -> inspect and transform
>>>
>>> Additionally to all that you can also write your own hint rules. Some
>>> example are here:
>>>
>>> https://github.com/mbien/jackpot-inspections
>>>
>>> (read the readme)
>>>
>>> regards,
>>>
>>> michael
>>>
>>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>>> > Geertjan,
>>> > How do I create a configuration that uses simply the Netbeans Java
>>> Hints"
>>> > analyzer? Under “Configuration” one can pick “Default” and then
>>> “Manage…”
>>> > button becomes active. I then create a custom configuration using the
>>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>>> > so, which one? I looked into the available plugins dialog and don’t see
>>> > one named that.
>>> >
>>> > Thinking that I might need to click the “Install” button with my custom
>>> > configuration selected, I try it - but it still looks for “FindBugs”
>>> - even
>>> > though my configuration doesn’t use it.
>>> >
>>> > Is the answer “You’re just not holding it right”?
>>> >
>>> > Any advice appreciated,
>>> > Tom
>>> >
>>> >
>>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>>> > geertjan.wiele...@googlemail.com> wrote:
>>> >
>>> > > Yes, FindBugs is no longer supported and that reference to it should
>>> be
>>> > > removed.
>>> > >
>>> > > Gj
>>> > >
>>> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>>> > >
>>> > >> Hi,
>>> > >> Sorry if this has been asked before, but...
>>> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
>>> > >> clicking on “Install” next to “Additional plugins required for the
>>> selected
>>> > >> configuration.”, it fails to do so (see screenshots) after
>>> searching for
>>> > >> “FindBugs Integration” module on NetBeans plugin portal…
>>> > >>
>>> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
>>> there
>>> > >> a known problem with the plugin portal?
>>> > >>
>>> > >> Any suggestions are appreciated,
>>> > >> Tom
>>> > >>
>>> > >>
>>> > >>
>>> -
>>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>>> > >>
>>> > >> For further information about the NetBeans mailing lists, visit:
>>> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> > >
>>> > >
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>


RE: Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Thomas Wolf
 Hi Michael,
All my projects use “IDE-wide” in the project property hints as that seems
to be the default.  The problem I’m having isn’t that Netbeans can’t find
“Netbeans Java Hints”.  The problem is that when I try to define a
configuration via the Source-Inspect… dialog, it lets me define it and hit
the “Inspect” button, but the results tab simply shows “Required Plugin
Missing” even when the configuration I’ve defined and run uses the built-in
“Netbeans Java Hints".  As a matter of fact, you don’t even have to define
a configuration - just select the “Default” one - which uses the “Netbeans
Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
see (at least I do) the result of “Required Plugin Missing”.

Sure looks like a big ‘ole bug to me.

I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s relevant
here.

Thanks,
Tom


On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:

> Hi Tom,
>
> "NetBeans Java Hints" should be there out of the box. Its the same
> system which is responsible for the in-editor hints. Difficult to say
> what is going on there. But in general:
>
> There are two configs, one is global which is applied to all projects by
> default, and the per-project config which can replace the global default
> if so configured.
>
> You can find the settings in the project properties -> hints section.
> The global config is also replicated again in tools -> options -> editor
> -> hints.
>
> You can run a custom set of rules via refactor -> inspect and transform
>
> Additionally to all that you can also write your own hint rules. Some
> example are here:
>
> https://github.com/mbien/jackpot-inspections
>
> (read the readme)
>
> regards,
>
> michael
>
> On 2022/01/11 20:17:01 Thomas Wolf wrote:
> > Geertjan,
> > How do I create a configuration that uses simply the Netbeans Java Hints"
> > analyzer? Under “Configuration” one can pick “Default” and then “Manage…”
> > button becomes active. I then create a custom configuration using the
> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
> > the dialog disappears as if everything is cool, but the “Inspector” tab
> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
> > so, which one? I looked into the available plugins dialog and don’t see
> > one named that.
> >
> > Thinking that I might need to click the “Install” button with my custom
> > configuration selected, I try it - but it still looks for “FindBugs”
> - even
> > though my configuration doesn’t use it.
> >
> > Is the answer “You’re just not holding it right”?
> >
> > Any advice appreciated,
> > Tom
> >
> >
> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> > geertjan.wiele...@googlemail.com> wrote:
> >
> > > Yes, FindBugs is no longer supported and that reference to it should be
> > > removed.
> > >
> > > Gj
> > >
> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
> > >
> > >> Hi,
> > >> Sorry if this has been asked before, but...
> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
> > >> clicking on “Install” next to “Additional plugins required for the
> selected
> > >> configuration.”, it fails to do so (see screenshots) after
> searching for
> > >> “FindBugs Integration” module on NetBeans plugin portal…
> > >>
> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
> there
> > >> a known problem with the plugin portal?
> > >>
> > >> Any suggestions are appreciated,
> > >> Tom
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
> > >>
> > >> For further information about the NetBeans mailing lists, visit:
> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-11 Thread Thomas Wolf
 Geertjan,
How do I create a configuration that uses simply the Netbeans Java Hints"
analyzer?   Under “Configuration” one can pick “Default” and then “Manage…”
button becomes active.  I then create a custom configuration using the
“Netbeans Java Hints” analyzer.  But after doing so, if I hit “Inspect”,
the dialog disappears as if everything is cool, but the “Inspector” tab
show “Required Plugins Missing”.  Is “Netbeans Java Hints” a plugin?  If
so, which one?  I looked into the available plugins dialog and don’t see
one named that.

Thinking that I might need to click the “Install” button with my custom
configuration selected, I try it - but it still looks for “FindBugs” - even
though my configuration doesn’t  use it.

Is the answer “You’re just not holding it right”?

Any advice appreciated,
Tom


On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Yes, FindBugs is no longer supported and that reference to it should be
> removed.
>
> Gj
>
> On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>
>> Hi,
>> Sorry if this has been asked before, but...
>> I just downloaded/installed 12.6.  When going to Source->Inspect and
>> clicking on “Install” next to “Additional plugins required for the selected
>> configuration.”, it fails to do so (see screenshots) after searching for
>> “FindBugs Integration” module on NetBeans plugin portal…
>>
>> I’m not actually sure whether this is a 12.6 specific problem.  Is there
>> a known problem with the plugin portal?
>>
>> Any suggestions are appreciated,
>> Tom
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-11 Thread Thomas Wolf
 Thanks Geertjan,
Tom

On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Yes, FindBugs is no longer supported and that reference to it should be
> removed.
>
> Gj
>
> On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>
>> Hi,
>> Sorry if this has been asked before, but...
>> I just downloaded/installed 12.6.  When going to Source->Inspect and
>> clicking on “Install” next to “Additional plugins required for the selected
>> configuration.”, it fails to do so (see screenshots) after searching for
>> “FindBugs Integration” module on NetBeans plugin portal…
>>
>> I’m not actually sure whether this is a 12.6 specific problem.  Is there
>> a known problem with the plugin portal?
>>
>> Any suggestions are appreciated,
>> Tom
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


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

2021-12-03 Thread Thomas Wolf
 Hi Eric,
Thanks for the suggestion but I don’t think that’s the case.  Eventually
creating a project with this exact same combination worked (but, again, I
don’t know what changes - removing an old ~/.netbeans/ or creating a
different project of same name elsewhere - caused it to work again).

I love that I’m up and running again, but hate that I haven’t got a clue
what fixed things :-(  Next time, I will know how to set Netbeans to the
max logging level to hopefully get better insight.

Best,
Tom


On Dec 3, 2021 at 3:20:30 AM, Eric Bresie  wrote:

> Not sure if this is the case or matter anymore but
>
> There was a satriage in the path with a satriage project being created.
> So could this
>
> /Users/twolf/spectare/git/*satriage*/src/*satriage*
>
> be seen as a package within a package with the same name?
>
> Would a project with a different name work?
>
> Eric Bresie
> ebre...@gmail.com
>
> On 12/1/21 13:55, Thomas Wolf wrote:
>>>>
>>>> Hi everyone,
>>>> I’m at a loss here.  I hope you guys can help:
>>>>
>>>> I created a completely new GIT repository on my mac at:
>>>>
>>>> /Users/twolf/spectare/git/satriage
>>>> and then created a src/ directory under it.
>>>>
>>>> Next, I opened Netbeans and tried to create a project this way (have
>>>> done this dozens of times without trouble):
>>>>
>>>> New Project… -> Java with Ant -> Java with Existing Source
>>>>
>>>> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to
>>>> enter a source package folder.  I try to enter:
>>>>
>>>> /Users/twolf/spectare/git/satriage/src/
>>>>
>>>> but I get an error message about that package having been used in
>>>> another project??? (see attached error dialog)
>>>> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
>>>> directory to see if any project references this directory - but none do.  I
>>>> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
>>>> cached info that might be to blame - but no luck.  Still getting that error
>>>> :-(
>>>> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still
>>>> the same error :-(
>>>> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same
>>>> error :-(
>>>>
>>>> In my desperation, I installed Netbeans 12.5 from scratch and without
>>>> importing any settings from 12.4 .  But
>>>> STILL the same error :-(  Neither NB 12.4 nor 12.5 had any projects open
>>>> when I did this, so how does NB decide that the package is in use in
>>>> another project???
>>>>
>>>>
>>>> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>>>>
>>>> If anyone has any ideas, please let me know.  Thanks a bunch,
>>>> tom
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.orgFor 
>>>> additional commands, e-mail: users-h...@netbeans.apache.org
>>>> For further information about the NetBeans mailing lists, 
>>>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>


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

2021-12-02 Thread Thomas Wolf
 Thanks a bunch.
Tom


On Dec 2, 2021 at 4:39:24 PM, Laszlo Kishalmi 
wrote:

> Just add a system property .level=< logging level >
>
> Example start netbeans with:
>
> netbeans -J-Dorg.netbeans.api.project.level=FINEST
> On 12/2/21 13:24, Thomas Wolf wrote:
>
> Hi again,
> I have no idea why, but using the package now works?!?!?!?!?
>
> The only thing I’ve done, afaik, since the last time when it didn’t work
> is to try creating a project with a directory still called ’satriage’ but
> in a different parent directory - and removing an old ~/.netbeans/
> directory (which appeared to be a leftover from NB 6.9 I discovered when
> trying to find anything ’nb’. :-(
>
> Anyway - my problem went away, but if anyone can tell me how to change
> Netbeans logging level globally, I’d appreciate the info.  I’ll use that
> the next time I encounter something I can’t figure out.
>
> Best,
> Tom
>
>
> On Dec 2, 2021 at 4:12:46 PM, Thomas Wolf  wrote:
>
>> I just realized i hit ‘r’eply on a couple messages rather than ‘Reply to
>> all :-(
>> Just to summarize: I removed the ~/Library/Caches/NetBeans/* and
>> ~/Library/Application Support/NetBeans/** directories - and still get
>> the problem of NB not accepting my package because it’s supposedly also
>> used in a  project named ’twolf’- which is also my userid.
>>
>> I’m not familiar with how Netbeans does logging.  I looked at the
>> FileOwnerQuery.java file and see that it does do some logging at the “FINE”
>> level.  Could someone tell me how I would turn that on?  Perhaps in the
>> netbeans.conf file as a parameter?  This way maybe I’ll get a clue as to
>> where Netbeans thinks the project is that supposedly owns the package
>> directory i’m trying to specify.
>>
>> Again, any help much appreciated.
>> tom
>>
>> p.s.  if I create a ~/junk/satriage/src/ directory and specify that as my
>> source root, Netbeans accepts it - so it’s definitely something about the
>> ~/spectare/git/satriage/src/ directory location :-(  I vaguely remember
>> creating such a directory a year or two ago - and possibly having created a
>> NB project that referred to it.  But that project no longer exists on my
>> machine as far as I can tell (I did searches on ’twolf’, ’nbbuild.xml, etc.
>> to no 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 we call it on
>>> /Users/twols/spectare/satriage/src and we are expecting a null (not owned
>>> by any project), instead that query says that this folder belongs to a
>>> project called twolf
>>>
>>> So I'd look for project files like nbproject/ folder, build.xml,
>>> pom.xml, build.gradle and settings.gradle files in your home folder.
>>>
>>>
>>> On 12/1/21 13:55, Thomas Wolf wrote:
>>>
>>> Hi everyone,
>>> I’m at a loss here.  I hope you guys can help:
>>>
>>> I created a completely new GIT repository on my mac at:
>>>
>>> /Users/twolf/spectare/git/satriage
>>> and then created a src/ directory under it.
>>>
>>> Next, I opened Netbeans and tried to create a project this way (have
>>> done this dozens of times without trouble):
>>>
>>> New Project… -> Java with Ant -> Java with Existing Source
>>>
>>> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to
>>> enter a source package folder.  I try to enter:
>>>
>>> /Users/twolf/spectare/git/satriage/src/
>>>
>>> but I get an error message about that package having been used in
>>> another project??? (see attached error dialog)
>>> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
>>> directory to see if any project references this directory - but none do.  I
>>> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
>>> cached info that might be to blame - but no luck.  Still getting that error
>>> :-(
>>> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still
>>> the same error :-(
>>> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
>>> :-(
>>>
>>> In my desperation, I installed Netbeans 12.5 from scratch and without
>>> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
>>> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
>>> that the package is in use in another project???
>>>
>>>
>>> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>>>
>>> If anyone has any ideas, please let me know.  Thanks a bunch,
>>> tom
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, 
>>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>


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

2021-12-02 Thread Thomas Wolf
Hi again,
I have no idea why, but using the package now works?!?!?!?!?

The only thing I’ve done, afaik, since the last time when it didn’t work is
to try creating a project with a directory still called ’satriage’ but in a
different parent directory - and removing an old ~/.netbeans/ directory
(which appeared to be a leftover from NB 6.9 I discovered when trying to
find anything ’nb’. :-(

Anyway - my problem went away, but if anyone can tell me how to change
Netbeans logging level globally, I’d appreciate the info.  I’ll use that
the next time I encounter something I can’t figure out.

Best,
Tom


On Dec 2, 2021 at 4:12:46 PM, Thomas Wolf  wrote:

> I just realized i hit ‘r’eply on a couple messages rather than ‘Reply to
> all :-(
> Just to summarize: I removed the ~/Library/Caches/NetBeans/* and
> ~/Library/Application Support/NetBeans/** directories - and still get the
> problem of NB not accepting my package because it’s supposedly also used in
> a  project named ’twolf’- which is also my userid.
>
> I’m not familiar with how Netbeans does logging.  I looked at the
> FileOwnerQuery.java file and see that it does do some logging at the “FINE”
> level.  Could someone tell me how I would turn that on?  Perhaps in the
> netbeans.conf file as a parameter?  This way maybe I’ll get a clue as to
> where Netbeans thinks the project is that supposedly owns the package
> directory i’m trying to specify.
>
> Again, any help much appreciated.
> tom
>
> p.s.  if I create a ~/junk/satriage/src/ directory and specify that as my
> source root, Netbeans accepts it - so it’s definitely something about the
> ~/spectare/git/satriage/src/ directory location :-(  I vaguely remember
> creating such a directory a year or two ago - and possibly having created a
> NB project that referred to it.  But that project no longer exists on my
> machine as far as I can tell (I did searches on ’twolf’, ’nbbuild.xml, etc.
> to no 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 we call it on
>> /Users/twols/spectare/satriage/src and we are expecting a null (not owned
>> by any project), instead that query says that this folder belongs to a
>> project called twolf
>>
>> So I'd look for project files like nbproject/ folder, build.xml, pom.xml,
>> build.gradle and settings.gradle files in your home folder.
>>
>>
>> On 12/1/21 13:55, Thomas Wolf wrote:
>>
>> Hi everyone,
>> I’m at a loss here.  I hope you guys can help:
>>
>> I created a completely new GIT repository on my mac at:
>>
>> /Users/twolf/spectare/git/satriage
>> and then created a src/ directory under it.
>>
>> Next, I opened Netbeans and tried to create a project this way (have done
>> this dozens of times without trouble):
>>
>> New Project… -> Java with Ant -> Java with Existing Source
>>
>> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to enter
>> a source package folder.  I try to enter:
>>
>> /Users/twolf/spectare/git/satriage/src/
>>
>> but I get an error message about that package having been used in another
>> project??? (see attached error dialog)
>> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
>> directory to see if any project references this directory - but none do.  I
>> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
>> cached info that might be to blame - but no luck.  Still getting that error
>> :-(
>> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still
>> the same error :-(
>> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
>> :-(
>>
>> In my desperation, I installed Netbeans 12.5 from scratch and without
>> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
>> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
>> that the package is in use in another project???
>>
>>
>> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>>
>> If anyone has any ideas, please let me know.  Thanks a bunch,
>> tom
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, 
>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


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

2021-12-02 Thread Thomas Wolf
I just realized i hit ‘r’eply on a couple messages rather than ‘Reply to
all :-(
Just to summarize: I removed the ~/Library/Caches/NetBeans/* and
~/Library/Application Support/NetBeans/** directories - and still get the
problem of NB not accepting my package because it’s supposedly also used in
a  project named ’twolf’- which is also my userid.

I’m not familiar with how Netbeans does logging.  I looked at the
FileOwnerQuery.java file and see that it does do some logging at the “FINE”
level.  Could someone tell me how I would turn that on?  Perhaps in the
netbeans.conf file as a parameter?  This way maybe I’ll get a clue as to
where Netbeans thinks the project is that supposedly owns the package
directory i’m trying to specify.

Again, any help much appreciated.
tom

p.s.  if I create a ~/junk/satriage/src/ directory and specify that as my
source root, Netbeans accepts it - so it’s definitely something about the
~/spectare/git/satriage/src/ directory location :-(  I vaguely remember
creating such a directory a year or two ago - and possibly having created a
NB project that referred to it.  But that project no longer exists on my
machine as far as I can tell (I did searches on ’twolf’, ’nbbuild.xml, etc.
to no 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 we call it on
> /Users/twols/spectare/satriage/src and we are expecting a null (not owned
> by any project), instead that query says that this folder belongs to a
> project called twolf
>
> So I'd look for project files like nbproject/ folder, build.xml, pom.xml,
> build.gradle and settings.gradle files in your home folder.
>
>
> On 12/1/21 13:55, Thomas Wolf wrote:
>
> Hi everyone,
> I’m at a loss here.  I hope you guys can help:
>
> I created a completely new GIT repository on my mac at:
>
> /Users/twolf/spectare/git/satriage
> and then created a src/ directory under it.
>
> Next, I opened Netbeans and tried to create a project this way (have done
> this dozens of times without trouble):
>
> New Project… -> Java with Ant -> Java with Existing Source
>
> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to enter
> a source package folder.  I try to enter:
>
> /Users/twolf/spectare/git/satriage/src/
>
> but I get an error message about that package having been used in another
> project??? (see attached error dialog)
> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
> directory to see if any project references this directory - but none do.  I
> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
> cached info that might be to blame - but no luck.  Still getting that error
> :-(
> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still the
> same error :-(
> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
> :-(
>
> In my desperation, I installed Netbeans 12.5 from scratch and without
> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
> that the package is in use in another project???
>
>
> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>
> If anyone has any ideas, please let me know.  Thanks a bunch,
> tom
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, 
> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


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

2021-12-01 Thread Thomas Wolf
 Hi Laszlo,
I always use the same project type (Java with existing source), so Netbeans
lets me specify the directories containing the source.  In this case, this
was a brand new git repository - i.e. a completely empty one.  All I had
added to this new repository is a ’src’ directory.  So, no, there was no
build script or anything else yet.

When you suggest I create a folder in my $HOME/ and create a project in it,
I assume you mean I should create a “Java with existing source” project
there?  I just tried that - and still get the same error dialog.

Tom

On Dec 1, 2021 at 6:27:47 PM, Laszlo Kishalmi 
wrote:

> I'd try to create a new folder in your home and try to create a project in
> it.
>
> However you said that you've created the project from Java Ant from
> existing source. DOes not the existing source come with some build NetBeans
> might recognize?
> On 12/1/21 15:22, Thomas Wolf wrote:
>
> Hi Laszlo,
> I checked my $HOME directory and I don’t have  nbproject/, build.xml,
> pom.xml, build.gradle, or settings.gradle there.  Any other files I could
> look for?
>
> Look all the parents of /Users/twols/spectare/satriage/src might find a
> clue.
>
>
>
> Where does FileOwnerQuery get ’twolf’ from?  Where 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 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 null (not owned
>> by any project), instead that query says that this folder belongs to a
>> project called twolf
>>
>> So I'd look for project files like nbproject/ folder, build.xml, pom.xml,
>> build.gradle and settings.gradle files in your home folder.
>>
>>
>> On 12/1/21 13:55, Thomas Wolf wrote:
>>
>> Hi everyone,
>> I’m at a loss here.  I hope you guys can help:
>>
>> I created a completely new GIT repository on my mac at:
>>
>> /Users/twolf/spectare/git/satriage
>> and then created a src/ directory under it.
>>
>> Next, I opened Netbeans and tried to create a project this way (have done
>> this dozens of times without trouble):
>>
>> New Project… -> Java with Ant -> Java with Existing Source
>>
>> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to enter
>> a source package folder.  I try to enter:
>>
>> /Users/twolf/spectare/git/satriage/src/
>>
>> but I get an error message about that package having been used in another
>> project??? (see attached error dialog)
>> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
>> directory to see if any project references this directory - but none do.  I
>> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
>> cached info that might be to blame - but no luck.  Still getting that error
>> :-(
>> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still
>> the same error :-(
>> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
>> :-(
>>
>> In my desperation, I installed Netbeans 12.5 from scratch and without
>> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
>> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
>> that the package is in use in another project???
>>
>>
>> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>>
>> If anyone has any ideas, please let me know.  Thanks a bunch,
>> tom
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, 
>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


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

2021-12-01 Thread Thomas Wolf
 Forgot to mention - I also did a ‘find . -name twolf -print’ in my $HOME
directory to see if there was another ’twolf’ directory/ somewhere - there
wasn’t.
Again, any other help is appreciated.
Tom

On Dec 1, 2021 at 6:22:20 PM, Thomas Wolf  wrote:

> Hi Laszlo,
> I checked my $HOME directory and I don’t have  nbproject/, build.xml,
> pom.xml, build.gradle, or settings.gradle there.  Any other files I could
> look for?
>
> Where does FileOwnerQuery get ’twolf’ from?  Where 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 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 null (not owned
>> by any project), instead that query says that this folder belongs to a
>> project called twolf
>>
>> So I'd look for project files like nbproject/ folder, build.xml, pom.xml,
>> build.gradle and settings.gradle files in your home folder.
>>
>>
>> On 12/1/21 13:55, Thomas Wolf wrote:
>>
>> Hi everyone,
>> I’m at a loss here.  I hope you guys can help:
>>
>> I created a completely new GIT repository on my mac at:
>>
>> /Users/twolf/spectare/git/satriage
>> and then created a src/ directory under it.
>>
>> Next, I opened Netbeans and tried to create a project this way (have done
>> this dozens of times without trouble):
>>
>> New Project… -> Java with Ant -> Java with Existing Source
>>
>> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to enter
>> a source package folder.  I try to enter:
>>
>> /Users/twolf/spectare/git/satriage/src/
>>
>> but I get an error message about that package having been used in another
>> project??? (see attached error dialog)
>> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
>> directory to see if any project references this directory - but none do.  I
>> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
>> cached info that might be to blame - but no luck.  Still getting that error
>> :-(
>> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still
>> the same error :-(
>> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
>> :-(
>>
>> In my desperation, I installed Netbeans 12.5 from scratch and without
>> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
>> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
>> that the package is in use in another project???
>>
>>
>> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>>
>> If anyone has any ideas, please let me know.  Thanks a bunch,
>> tom
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, 
>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


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

2021-12-01 Thread Thomas Wolf
Hi Laszlo,
I checked my $HOME directory and I don’t have  nbproject/, build.xml,
pom.xml, build.gradle, or settings.gradle there.  Any other files I could
look for?

Where does FileOwnerQuery get ’twolf’ from?  Where 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 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 null (not owned
> by any project), instead that query says that this folder belongs to a
> project called twolf
>
> So I'd look for project files like nbproject/ folder, build.xml, pom.xml,
> build.gradle and settings.gradle files in your home folder.
>
>
> On 12/1/21 13:55, Thomas Wolf wrote:
>
> Hi everyone,
> I’m at a loss here.  I hope you guys can help:
>
> I created a completely new GIT repository on my mac at:
>
> /Users/twolf/spectare/git/satriage
> and then created a src/ directory under it.
>
> Next, I opened Netbeans and tried to create a project this way (have done
> this dozens of times without trouble):
>
> New Project… -> Java with Ant -> Java with Existing Source
>
> I enter a project name ‘satriage’ and hit ‘Next’ where I’m asked to enter
> a source package folder.  I try to enter:
>
> /Users/twolf/spectare/git/satriage/src/
>
> but I get an error message about that package having been used in another
> project??? (see attached error dialog)
> Nonetheless, I did a ‘grep -r ‘satriage’ . in my NetBeansProjects/
> directory to see if any project references this directory - but none do.  I
> also deleted $HOME/Library/Caches/NetBeans/12.4/ in case thee’s some old,
> cached info that might be to blame - but no luck.  Still getting that error
> :-(
> Then I deleted $HOME/Library/Application Support/NetBeans/12.4 - still the
> same error :-(
> Next, I renamed my $HOME/NetBeansProjects/ directory - again, same error
> :-(
>
> In my desperation, I installed Netbeans 12.5 from scratch and without
> importing any settings from 12.4.  But STILL the same error :-(  Neither NB
> 12.4 nor 12.5 had any projects open when I did this, so how does NB decide
> that the package is in use in another project???
>
>
> Again, in terms of env, I’m running NB 12.4 w. JDK 17 on macOS Monterey.
>
> If anyone has any ideas, please let me know.  Thanks a bunch,
> tom
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, 
> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


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

2021-10-20 Thread Thomas Wolf
 Hi Mark,
I think this CPU abuse happens independent of project size or resources.  I
already had modified my netbeans.conf to give it plenty of heap (2-4gb),
but I’m not even running anything  ‘large’ - when this happens, there are
always only two projects open in the IDE - one is a library project with
just a couple dozen java files and a J2SE project with less than 100 source
files.  Downright puny!  A few years back I was working on a  project with
5000 java files and NB never even broke a sweat.  This bug with external
changes causing NB a tizzy has been around for awhile.  I think there was a
way to turn external checking off, but I can’t seem to find it right now.
Plus the disadvantage would be that when I do occasionally externally
inject changes (eg copying an image file into the project source tree), NB
might not react appropriately. :-(

Anyway, any further suggestions, let me know.  Much appreciated.

Tom

p.s. has anyone noticed that macOS Monterey now no longer has an “Anywhere”
option in System Settings->Security & Privacy->General->Allow apps
downloaded from ??? Annoying as hell.  It’s already refused to run half a
dozen things I downloaded and wanted to run - have to manually give an
exception :-(  Does anyone know of a way to turn this off?  I haven’t tried
downloading a new version of NB lately, but macOS won’t run that either, I
don’t think, without manual exception.



On Oct 20, 2021 at 1:18:58 PM, Mark A. Flacy 
wrote:

> Greetings,
>
> How many projects are in your projects panel?
>
> If you haven't modified (God, I hate this) "/Applications/NetBeans/Apache\
> NetBeans\ 12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf"
> to allow a larger heap than the paltry default, you may be observing the
> JVM performing the garbage collection of death dance which you'll see in
> any java application that is operating at the edge of getting an OOM error.
>
>
>
> I have a MacBook Pro for work (32GB RAM) and I have changed the
> *netbeans_default_options* in the above file to have the additional flag
> of "-J-Xmx16384m" as well as setting *netbeans_jdkhome* to point to
> something sane.
>
> HTH.
>
>
> --
>
> Mark A. Flacy
>
> mfl...@verizon.net
>
>
> On Wednesday, October 20, 2021 11:54:02 AM CDT Thomas Wolf wrote:
>
> > I have NB 12.4, but I have noticed the same behavior on previous NBs as
>
> > well:
>
> >
>
> > Most of the time, my MacBook Pro is quiet as can be.  But every now and
>
> > then (every other day?), I’d be surfing the web or reading the mail when
> my
>
> > fans start spinning up - often getting to their max speed *and staying
>
> > there*.  Usually, I’m not doing anything CPU intensive at all and when I
>
> > look at the Activity Monitor, it’s always Netbeans taking 100-200% of the
>
> > CPU.  And *always*, when open the Netbeans window, there at the bottom
>
> > would be a message indicating that NB is checking (or waiting? can’t
>
> > remember the exact wording) for external changes.  I assume that’s the NB
>
> > feature that checks to see if any project-related source was modified
>
> > outside the IDE?   This has got to be a bug - there’s no way something
> like
>
> > that should be a heavy load on a CPU.
>
> >
>
> > Is there something I can do when I next observe this behavior to help
> track
>
> > down this bug?  I think I’ve had this happen for at least a year.  If
> there
>
> > isn’t - is there a way to globally turn it off?
>
> >
>
> > I’m on macOS 12.0.1 (Monterey) running NB with OpenJDK 17, but as I said,
>
> > this has happened on earlier NB and earlier versions of Java.  My
> computer
>
> > is standalone - i.e. no corporate network, not networked file systems.
>
> > Just the laptop and a wireless connection to the Internet (via Starlink
>
> > and, before that, via Verizon LTE).
>
> >
>
> > Thanks for any suggestions,
>
> > Tom
>
>
>


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

2021-10-20 Thread Thomas Wolf
I have NB 12.4, but I have noticed the same behavior on previous NBs as
well:

Most of the time, my MacBook Pro is quiet as can be.  But every now and
then (every other day?), I’d be surfing the web or reading the mail when my
fans start spinning up - often getting to their max speed *and staying
there*.  Usually, I’m not doing anything CPU intensive at all and when I
look at the Activity Monitor, it’s always Netbeans taking 100-200% of the
CPU.  And *always*, when open the Netbeans window, there at the bottom
would be a message indicating that NB is checking (or waiting? can’t
remember the exact wording) for external changes.  I assume that’s the NB
feature that checks to see if any project-related source was modified
outside the IDE?   This has got to be a bug - there’s no way something like
that should be a heavy load on a CPU.

Is there something I can do when I next observe this behavior to help track
down this bug?  I think I’ve had this happen for at least a year.  If there
isn’t - is there a way to globally turn it off?

I’m on macOS 12.0.1 (Monterey) running NB with OpenJDK 17, but as I said,
this has happened on earlier NB and earlier versions of Java.  My computer
is standalone - i.e. no corporate network, not networked file systems.
Just the laptop and a wireless connection to the Internet (via Starlink
and, before that, via Verizon LTE).

Thanks for any suggestions,
Tom


Re: slightly off-topic: Can someone with BigSur or older help me out?

2021-10-18 Thread Thomas Wolf
 Thanks again!
I filed a bug report with Oracle about it.  But Oracle initially only
provides an internal review ID: 9071698.

Best,
Tom




On Oct 18, 2021 at 5:34:05 PM, Mark A. Flacy  wrote:

> Greetings,
>
> Big Sur, java 11, code works as expected.  java 15 works as expected as
> well.
>
>
> --
> Mark A. Flacy
> mfl...@verizon.net
>
> On Monday, October 18, 2021 4:04:02 PM CDT John Mc wrote:
>
> Hi Thomas,
>
>
> I am running Catalina(10.15.7) and Amazon Corretto(15)[1], I used your code
>
> and didnt notice any problems, my cursor changed every time.
>
>
> Hope this helps.
>
>
> John
>
>
>
>
> [1]:
>
> *Product Version:* Apache NetBeans IDE 12.5
>
>
> *Java:* 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
>
>
> *Runtime:* OpenJDK Runtime Environment 15.0.1+9
>
>
> *System:* Mac OS X version 10.15.7 running on x86_64; UTF-8; en_GB (nb)
>
>
> On Mon, 18 Oct 2021 at 21:28, Thomas Wolf  wrote:
>
> > I previously posted about a problem I’m encountering with Java/Swing on
> my
>
> > Mac - basically cursors stop switching after one switches to another
>
> > cursor
>
> > & back.  I checked this problem as far back as I had JDKs for - so this
>
> > issue exists at least as far back as JDK 12.  The one thing I don’t know
>
> > is
>
> > whether it’s to do with the macOS I am running - Monterey.
> Unfortunately,
>
> > I don’t have a machine with BigSur or older.  Do any of you?  The code to
>
> > try is very simple:
>
> >
>
> >
>
> > public static void main(String[] args) {
>
> > SwingUtilities.invokeLater(new Runnable() {
>
> >
>
> >   @Override
>
> >   public void run() {
>
> >   final JFrame f = new JFrame();
>
> >   f.setSize(400, 400);
>
> >   f.setLocationRelativeTo(null);
>
> >   Container c = f.getContentPane();
>
> >   JPanel p = new JPanel(new BorderLayout());
>
> >   c.add(p);
>
> >   JButton b1 = new JButton("Busy");
>
> >   b1.addActionListener((ActionEvent e) -> {
>
> >
>
> >
> f.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR))
>
> > ;
>
> >
>
> >   });
>
> >   JButton b2 = new JButton("Normal");
>
> >   b2.addActionListener((ActionEvent e) -> {
>
> >   f.getGlassPane().setCursor(Cursor.getDefaultCursor());
>
> >   });
>
> >   p.add(b1, BorderLayout.NORTH);
>
> >   p.add(b2, BorderLayout.SOUTH);
>
> >   f.setVisible(true);
>
> >   f.getGlassPane().setVisible(true);
>
> >   }
>
> >   });
>
> >
>
> > }
>
> >
>
> > After you paste it into any .java file of your choosing (and fixing
>
> > imports), just run the file, click on the “Busy” button once, then on the
>
> > “Normal” button, and then one last time on “Busy”.  On Linux and Windows,
>
> > the cursor changes each time.  On Mac, the cursor doesn’t change to
> “Busy”
>
> > the second time around :-(
>
> >
>
> > Unless you guys see anything wrong with this code, I will file a bug
>
> > report in Oracle’s Bug database.
>
> >
>
> > Thanks a bunch,
>
> > Tom
>
>
>
>
>
>


Re: slightly off-topic: Can someone with BigSur or older help me out?

2021-10-18 Thread Thomas Wolf
 Thanks a bunch you two.  I don’t know if I should be happy or cry - if
it’s only doing this in macOS Monterey, maybe I should wait another week to
give the JDKs a chance to try the official version.  Is there anyone else
out there with Big Sur, could you give it a try?  This way, I can pinpoint
in my bug report which version it probably crept into the code base.

Thanks again for responding to my non-IDE post.  Just don’t know other Java
developers outside of Netbeans community :-)
Tom


On Oct 18, 2021 at 5:05:10 PM, Emilian Bold  wrote:

> I also don't see any problem on AdoptOpenJDK 11 / macOs Mojave.
>
> --emi
>
> On Tue, Oct 19, 2021 at 12:04 AM John Mc  wrote:
>
>
> Hi Thomas,
>
>
> I am running Catalina(10.15.7) and Amazon Corretto(15)[1], I used your
> code and didnt notice any problems, my cursor changed every time.
>
>
> Hope this helps.
>
>
> John
>
>
>
>
> [1]:
>
> Product Version: Apache NetBeans IDE 12.5
>
>
> Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
>
>
> Runtime: OpenJDK Runtime Environment 15.0.1+9
>
>
> System: Mac OS X version 10.15.7 running on x86_64; UTF-8; en_GB (nb)
>
>
>
> On Mon, 18 Oct 2021 at 21:28, Thomas Wolf  wrote:
>
> >
>
> > I previously posted about a problem I’m encountering with Java/Swing on
> my Mac - basically cursors stop switching after one switches to another
> cursor & back.  I checked this problem as far back as I had JDKs for - so
> this issue exists at least as far back as JDK 12.  The one thing I don’t
> know is whether it’s to do with the macOS I am running - Monterey.
> Unfortunately, I don’t have a machine with BigSur or older.  Do any of
> you?  The code to try is very simple:
>
> >
>
> >
>
> > public static void main(String[] args) {
>
> > SwingUtilities.invokeLater(new Runnable() {
>
> >   @Override
>
> >   public void run() {
>
> >   final JFrame f = new JFrame();
>
> >   f.setSize(400, 400);
>
> >   f.setLocationRelativeTo(null);
>
> >   Container c = f.getContentPane();
>
> >   JPanel p = new JPanel(new BorderLayout());
>
> >   c.add(p);
>
> >   JButton b1 = new JButton("Busy");
>
> >   b1.addActionListener((ActionEvent e) -> {
>
> >
>   f.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
>
> >   });
>
> >   JButton b2 = new JButton("Normal");
>
> >   b2.addActionListener((ActionEvent e) -> {
>
> >   f.getGlassPane().setCursor(Cursor.getDefaultCursor());
>
> >   });
>
> >   p.add(b1, BorderLayout.NORTH);
>
> >   p.add(b2, BorderLayout.SOUTH);
>
> >   f.setVisible(true);
>
> >   f.getGlassPane().setVisible(true);
>
> >   }
>
> >   });
>
> > }
>
> >
>
> > After you paste it into any .java file of your choosing (and fixing
> imports), just run the file, click on the “Busy” button once, then on the
> “Normal” button, and then one last time on “Busy”.  On Linux and Windows,
> the cursor changes each time.  On Mac, the cursor doesn’t change to “Busy”
> the second time around :-(
>
> >
>
> > Unless you guys see anything wrong with this code, I will file a bug
> report in Oracle’s Bug database.
>
> >
>
> > Thanks a bunch,
>
> > Tom
>
> >
>
>


slightly off-topic: Can someone with BigSur or older help me out?

2021-10-18 Thread Thomas Wolf
I previously posted about a problem I’m encountering with Java/Swing on my
Mac - basically cursors stop switching after one switches to another cursor
& back.  I checked this problem as far back as I had JDKs for - so this
issue exists at least as far back as JDK 12.  The one thing I don’t know is
whether it’s to do with the macOS I am running - Monterey.  Unfortunately,
I don’t have a machine with BigSur or older.  Do any of you?  The code to
try is very simple:


public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
  @Override
  public void run() {
  final JFrame f = new JFrame();
  f.setSize(400, 400);
  f.setLocationRelativeTo(null);
  Container c = f.getContentPane();
  JPanel p = new JPanel(new BorderLayout());
  c.add(p);
  JButton b1 = new JButton("Busy");
  b1.addActionListener((ActionEvent e) -> {

f.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
  });
  JButton b2 = new JButton("Normal");
  b2.addActionListener((ActionEvent e) -> {
  f.getGlassPane().setCursor(Cursor.getDefaultCursor());
  });
  p.add(b1, BorderLayout.NORTH);
  p.add(b2, BorderLayout.SOUTH);
  f.setVisible(true);
  f.getGlassPane().setVisible(true);
  }
  });
}

After you paste it into any .java file of your choosing (and fixing
imports), just run the file, click on the “Busy” button once, then on the
“Normal” button, and then one last time on “Busy”.  On Linux and Windows,
the cursor changes each time.  On Mac, the cursor doesn’t change to “Busy”
the second time around :-(

Unless you guys see anything wrong with this code, I will file a bug report
in Oracle’s Bug database.

Thanks a bunch,
Tom


Re: Where to see and report Java bugs most effectively?

2021-10-16 Thread Thomas Wolf
Thanks!
Still can’t find my problem as a known bug, so I will submit a bug I guess.   
Wish I could be certain that it isn’t my macOS beta though.

Tom

Sent from my iPhone

> On Oct 16, 2021, at 9:23 AM, Eric Bresie  wrote:
> 
> 
> This is my understanding of things...there are multiple systems involved, one 
> being more committer oriented while the other is more user oriented.  I 
> believe the user oriented one tends to be evaluated and if accepted moves 
> into the other (JSB) oriented.
> 
> For additional information, see some of the below
> 
> https://bugreport.java.com/bugreport/ (external submissions)
> https://bugs.openjdk.java.net/secure/Dashboard.jspa
> https://wiki.openjdk.java.net/display/general/JBS+Overview
> https://stackoverflow.com/questions/29379425/where-to-report-issues-of-openjdk-when-youre-not-a-openjdk-developer
> http://cr.openjdk.java.net/~rlewis/BugTracking/OpenJDKBugtTracking.html (from 
> Sun days perspective)
> 
> Hope this helps.
> Eric Bresie
> ebre...@gmail.com
> 
> 
>> On Fri, Oct 15, 2021 at 3:47 PM Thomas Wolf  wrote:
>> Sorry for this is off-topic subject, but I’m wondering where the most 
>> effective place is to see and report Java bugs?   I see two different 
>> possibilities:
>>  https://bugs.openjdk.java.net/
>> and
>>  https://bugs.java.com/bugdatabase/
>> 
>> I’m running into what appears to be a macOS-specific one and am having 
>> trouble searching either effectively to see if it’s a known issue.  My 
>> issue?  Pretty straight-forward:  when the user clicks on a button, I change 
>> the cursor to a WAIT cursor, do a long-lasting operation, then set it back 
>> to the DEFAULT cursor.  The first time, all works as expected, but 
>> subsequent clicks on the button don’t change the cursor.  At least on a Mac 
>> (Monterey) running JDK 17.35.  On Ubuntu 20 and Windows 10, it works every 
>> time.
>> 
>> I suppose it could be a Monterey issue - since it’s in late stage beta - but 
>> I don’t have Big Sur to check, so I wanted to at least check the appropriate 
>> bug databases.
>> 
>> Thanks,
>> Tom
>> 
>> p.s. I also downloaded and tried the Oracle version of 17.35 - same problem.
>> 


Where to see and report Java bugs most effectively?

2021-10-15 Thread Thomas Wolf
Sorry for this is off-topic subject, but I’m wondering where the most
effective place is to see and report Java bugs?   I see two different
possibilities:
https://bugs.openjdk.java.net/
and
https://bugs.java.com/bugdatabase/

I’m running into what appears to be a macOS-specific one and am having
trouble searching either effectively to see if it’s a known issue.  My
issue?  Pretty straight-forward:  when the user clicks on a button, I
change the cursor to a WAIT cursor, do a long-lasting operation, then set
it back to the DEFAULT cursor.  The first time, all works as expected, but
subsequent clicks on the button don’t change the cursor.  At least on a Mac
(Monterey) running JDK 17.35.  On Ubuntu 20 and Windows 10, it works every
time.

I suppose it could be a Monterey issue - since it’s in late stage beta -
but I don’t have Big Sur to check, so I wanted to at least check the
appropriate bug databases.

Thanks,
Tom

p.s. I also downloaded and tried the Oracle version of 17.35 - same problem.


opening a file with netbeans via command-line in macOS?

2021-04-29 Thread Thomas Wolf
I’m running 12.3 on Java 14 and I want to open a file in NB from the
commandline and have it highlight a given line.  If NB is not currently
running, this works:

open -a /Applications/NetBeans/Apache\ NetBeans\ 12.3.app --args
/Users/twolf/spectare/sat_projects/zlib-1.2.11/compress.c:15

But if NB is already open, nothing happens -i.e. the file doesn’t appear in
the editor.

I vaguely remember this (or something like this) working in Linux.  Can
someone point me to any reference that shows what the correct methods are
for macOS, Windows, and Linux?

Thanks in advance,
Tom


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

2021-04-20 Thread Thomas Wolf
 +1 for not removing ant support for me as well.  I’m admittedly an
old-timer.  My first exposure to a ‘modern’ build tool was on my last job -
the company used gradle.  With a background in make and ant, I found its
syntax hard to grok.NB devs clearly like Maven - its syntax seems
straight-forward enough, but the tool seems relatively slow and if you have
an existing ant-based project whose directory structure doesn’t match
maven’s desired one, moving to maven may not be as straight forward as some
suggest.  And, how is the uptake of Ivy?  Isn’t that (in combination with
ant) considered a modern build tool?  If NB removes support for ant
altogether, it would not be able to handle ivy-based projects, no?

tom


On Apr 20, 2021 at 3:10:04 PM, Marco Rossi  wrote:

> +1 also for me to not eliminating Ant support for new (or existing)
> projects.
>
> Mark Reds
>
> Il giorno 20 apr 2021, alle ore 20:08, Mitch Claborn 
> ha scritto:
>
>
> +1 for not eliminating Ant support for new (or existing) projects. We've
> been using Ant for a long time, and it still works just fine for us, so
> there is no payback in converting to Maven.
>
>
>
> Mitch
>
>
> On 4/20/21 12: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 gave up. And it's a huge amount of overhead, extra
> disk space usage, and more bits and pieces to keep track of that isn't
> justifiable for small simple projects. ANT works just fine for me, and I
> will keep using it for as long as I possibly can. I need to focus my time
> on getting my software out, not on the tools I have to use to do it.
>
> > Lisa
>
> > On 4/20/2021 10:00 AM, Geertjan Wielenga wrote:
>
> >> I agree, the Ant-based project creation should be removed and I
> disagree that there should be any kind of conversion between Ant and Maven
> -- that simply will never work and we'll spend the rest of our days fixing
> bugs in that. To convert from Ant to Maven: create a new Maven project and
> copy the Java source files from your Ant project into it.
>
> >>
>
> >> Gj
>
> >>
>
> >> On Tue, Apr 20, 2021 at 6:58 PM  pszud...@throwarock.com>> wrote:
>
> >>
>
> >>Honestly, I think NB should have an internal conversation about
>
> >>removing the "new project" support for Ant projects, while still
>
> >>being able to open existing ones. It just confuses a lot of people
>
> >>if they're not going to be supported.
>
> >>
>
> >>I agree, if and ONLY if you provide at least a rudimentary way to
>
> >>convert ANT projects to Maven projects.   I have been struggling
>
> >>with this issue too long.  I have hundreds of Ant based projects
>
> >>that I would love to turn over immediately to Maven... but I can't
>
> >>, am struggling, and haven't coded a darn line in two months...  I
>
> >>used to code 10 hours a day ... and now... embarrassed by my
>
> >>inability to convert.,.
>
> >>
>
> >>I exaggerate a bit, I still code in "Old" Netbeans 8.2, but I know
>
> >>the days are numbered...
>
> >>
>
> >>
>
> >>
>
> >>On 2021-04-20 08:23, Will Hartung wrote:
>
> >>
>
> >>>
>
> >>>On Mon, Apr 19, 2021 at 12:55 AM Wayne Gemmell | Connect
>
> >>>mailto:wa...@connect-mobile.co.za>>
>
> >>>wrote:
>
> >>>
>
> >>>Is the perception that nobody does Maven EAR's anymore or
>
> >>>that nobody uses EARs? I have a web app that has given me no
>
> >>>shortage of issuse with ant.
>
> >>>I'm trying to move it to Maven. If nobody is using maven then
>
> >>>I need to move to something else. If nobody is using EAR's
>
> >>>anymore then I'm pretty stuck figuring out this Maven issue.
>
> >>>
>
> >>>Well, it's several things.
>
> >>>EARs are less popular because their necessity has been greatly
>
> >>>reduced. Session beans can be placed in WARs now, so for many use
>
> >>>cases, a WAR is completely adequate to the task.
>
> >>>However, it's not suitable for all use cases.
>
> >>>Notably, MDBs can not be deployed in WARs. But only as an EJB
>
> >>>either deployed standalone, or bundled within an EAR.
>
> >>>With the hue and cry over micro services and "down with the
>
> >>>monolith", just the idea of a large application bundled in a EAR
>
> >>>is falling out of favor.
>
> >>>Also, there's a history of advocacy underlying this. Sun used
>
> >>>NetBeans as a mechanism to advocate for Java and Java EE. It
>
> >>>behooved them to have something like NetBeans to make Java EE
>
> >>>development easier. So, it was important for NetBeans to have
>
> >>>really first class Java EE support. Bundling the Java EE wizards
>
> >>>and templates along with Glassfish all helped promote that.
>
> >>>Of course, now, with the great Java Diaspora out of Oracle,

What JavaFX tab??

2021-04-19 Thread Thomas Wolf
I tried to create a new project: New Project->Java with Ant->JavaFX
Application (or JavaFX in Swing Application).  When hitting “Next”, a
screen asks me wether I want to download & activate JavaFX or just
activate.  Since I previously downloaded an FX distribution, I picked
“Activate”.  Then I get an error message (see screenshot) that tells me
that activation failed and that I should go to the Platform Manager, create
a new platform, and click on the “JavaFX” tab, pointing to the relevant
JavaFX files on my machine.  But when I try to create a new platform (or
just pick an existing one), there’s no “JavaFX tab”!?  Are these
instructions leftover from some older version of Netbeans?  I’m running
v12.3 on macOS BigSur.

Thnx for all info,
Tom

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: NetBeans running on Windows 10 on Parallels on an M1 Mac

2021-04-18 Thread Thomas Wolf
Obviously not speaking for the NB developers, but Windows on ARM seems pretty 
niche.  Maybe you can try to build NB there from source yourself?

Is there a NB installer for M1 macOS?  If so, you could do all your dev on the 
mac side and just use the command line on the Windows side whenever you need a 
windows build.  That’s what i do on x86 mac w. parallels.

good luck

> On Apr 18, 2021, at 11:01 AM, David Gradwell  wrote:
> 
> 
> Hi,
>  
> I have Windows 10 running on Parallels on an M1 Mac, have installed jdk-15 
> and would like to run NetBeans on that Windows.
>  
> I downloaded the 12.3 .exe from 
> https://netbeans.apache.org/download/nb123/nb123.html The installer starts 
> but exits after “Configuring the installer” without doing anything. 
>  
> Maybe not surprising really, but has anyone got this to work in this 
> environment ?
>  
> Are there plans to build NetBeans to run on Windows on ARM machines ?
>  
> I would be happy to alpha-test if anyone can build !
>  
> Regards
>  
> David
>  
>  


native installer in NB 12.3?

2021-04-09 Thread Thomas Wolf
Hey everyone,
I”m trying for the first time to build a native installer of my application
and am running into some errors I wonder if you guys can help with.  First
my environment: macOS 11.3 and NB 12.3 running on JRE 14 with a non-modular
JDK16-based project (which depends on another JDK16-based SE NP project).
Everything’s been building/running fine.

Then, when I go to Project->Properties->Packaging, I checked:
- Build JAR after compiling
- Copy Dependent Libraries
- Create JLINK distribution
and in Properties->Deployment, I checked “Enable Native Packaging in
Project Menu”.

But when I go to the Project->Package As->DMG Image or Project->Package
As->All Installers, I see this error at the end (see full output below):
...
Created dir: /Users/twolf/NetBeansProjects/swing_app/dist
/Users/twolf/NetBeansProjects/swing_app/nbproject/build-native.xml:428: The
following error occurred while executing this line:
/Users/twolf/NetBeansProjects/swing_app/nbproject/build-native.xml:436:
Unable to create javax script engine for javascript
BUILD FAILED (total time: 3 seconds)

The first error message comes from a target that seems to do with javafx
copying:



The second line is in a macrodef also to do with jfx:


Can anyone provide a pointer as to what I’m doing wrong?  Any help much
appreciated.
Thanks,
Tom W.

ant -f /Users/twolf/NetBeansProjects/swing_app -Djar.archive.disabled=true
-Dnative.bundling.type=dmg build-native
Detected JavaFX Ant API version 1.0
init:
deps-clean:
Updating property file:
/Users/twolf/NetBeansProjects/swing_app/build/built-clean.properties
Importer.init:
Importer.deps-clean:
Updating property file:
/Users/twolf/NetBeansProjects/swing_app/build/built-clean.properties
Deleting directory /Users/twolf/NetBeansProjects/Importer/build
Importer.clean:
Deleting directory /Users/twolf/NetBeansProjects/swing_app/build
clean:
deps-jar:
Created dir: /Users/twolf/NetBeansProjects/swing_app/build
Updating property file:
/Users/twolf/NetBeansProjects/swing_app/build/built-jar.properties
Importer.init:
Importer.deps-jar:
Created dir: /Users/twolf/NetBeansProjects/Importer/build
Updating property file:
/Users/twolf/NetBeansProjects/swing_app/build/built-jar.properties
Created dir: /Users/twolf/NetBeansProjects/Importer/build/classes
Created dir: /Users/twolf/NetBeansProjects/Importer/build/empty
Created dir:
/Users/twolf/NetBeansProjects/Importer/build/generated-sources/ap-source-output
Compiling 31 source files to
/Users/twolf/NetBeansProjects/Importer/build/classes
warning: [options] system modules path not set in conjunction with -source
14
1 warning
Copying 24 files to /Users/twolf/NetBeansProjects/Importer/build/classes
Importer.compile:
Created dir: /Users/twolf/NetBeansProjects/Importer/dist
Copying 1 file to /Users/twolf/NetBeansProjects/Importer/build
Copy libraries to /Users/twolf/NetBeansProjects/Importer/dist/lib.
Building jar: /Users/twolf/NetBeansProjects/Importer/dist/Importer.jar
To run this application from the command line without Ant, try:
java -jar "/Users/twolf/NetBeansProjects/Importer/dist/Importer.jar"
Importer.deploy:
Importer.jar:
Created dir: /Users/twolf/NetBeansProjects/swing_app/build/classes
Created dir: /Users/twolf/NetBeansProjects/swing_app/build/empty
Created dir:
/Users/twolf/NetBeansProjects/swing_app/build/generated-sources/ap-source-output
Compiling 70 source files to
/Users/twolf/NetBeansProjects/swing_app/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 70 files to /Users/twolf/NetBeansProjects/swing_app/build/classes
Copied 10 empty directories to 2 empty directories under
/Users/twolf/NetBeansProjects/swing_app/build/classes
compile:
Created dir: /Users/twolf/NetBeansProjects/swing_app/dist
/Users/twolf/NetBeansProjects/swing_app/nbproject/build-native.xml:428: The
following error occurred while executing this line:
/Users/twolf/NetBeansProjects/swing_app/nbproject/build-native.xml:436:
Unable to create javax script engine for javascript
BUILD FAILED (total time: 3 seconds)


how to change the NB JRE after install?

2021-04-02 Thread Thomas Wolf
Hi,
I’m having all sorts of issues with double-clicking on things in NB not
always working.  I suspect it’s because when I installed NB 12.3, I only
had JDK 16 installed on my Mac and that’s what NB picked for itself - even
though 16 isn’t supported as per the NB download site.  How do I go into NB
and tell it to use JDK 11 (which I’ve also got installed now) - do I
manually edit the /Applications/NetBeans/Apache NetBeans
12.3.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf file?

This is on macOS BigSur.

Thanks,
Tom


Re: What Project should I use if I have existing source?

2021-03-01 Thread Thomas Wolf
 Never mind - I was stupidly not seeing it right at the “java with Ant”
level - I only looked at the subfolders :-(
Sorry about wasting people’s time.
tom


On Mar 1, 2021 at 6:28:28 PM, Thomas Wolf  wrote:

> Hi,
> I guess I haven’t tried to create a  project in a long time.  Today, I had
> the need to, but an option that has always been available in the past (NB
> 8?) - “Java application with existing source” doesn’t seem to exist in
> 12.2.  Is there an equivalent in ant, gradle, or maven projects?  I saw an
> Java FX project with existing source (but I don’t use FX) as well as a
> couple enterprise project options that don’t really correspond to the plain
> vanilla POJO application that my source represents.
>
> Any pointers would be much appreciated. (I’d prefer an ant-based project
> type if there is one).
>
> Best,
> Tom Wolf
>
>


What Project should I use if I have existing source?

2021-03-01 Thread Thomas Wolf
Hi,
I guess I haven’t tried to create a  project in a long time.  Today, I had
the need to, but an option that has always been available in the past (NB
8?) - “Java application with existing source” doesn’t seem to exist in
12.2.  Is there an equivalent in ant, gradle, or maven projects?  I saw an
Java FX project with existing source (but I don’t use FX) as well as a
couple enterprise project options that don’t really correspond to the plain
vanilla POJO application that my source represents.

Any pointers would be much appreciated. (I’d prefer an ant-based project
type if there is one).

Best,
Tom Wolf


Re: Netbeans 11.3 - can't push to remote

2021-01-19 Thread Thomas Wolf
 Sorry, I have no idea if there are any open issues in Apache NB regarding
this.  Wouldn’t even know where to look since the move to Apache.  I think
there’s a Jira board, but am not sure.

tom


On Jan 19, 2021 at 8:25:14 PM, Jack W.  wrote:

> Thanks Thomas Wolf, but that didn't work for my situation.
> Are there Issues on NB ssh already or should I file one?
>
> On Tue, Jan 19, 2021 at 5:41 PM Thomas Wolf  wrote:
>
>> FIGURED IT OUT!
>>
>> And as is often the case, stackoverflow had the answer:
>>
>> https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch
>>
>>
> ---
> Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
> Box 51, Golden CO 80402  # administering productivity software over the
> time
> http://www.softwoehr.com # saved by said software eventually approximates
> 1.
>


Re: Netbeans 11.3 - can't push to remote

2021-01-19 Thread Thomas Wolf
 FIGURED IT OUT!

And as is often the case, stackoverflow had the answer:
https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch

It looks like jgit is using a version of openssh that requires a modifier
on the key generation!  I did the default "ssh-keygen -t rsa” when I
created my keys.  But for it to work with NB, I need to do "ssh-keygen -t
rsa -m PEM” - sweet jesus, how is anyone supposed to know that???

Anyway all works now.  Hope this is useful to someone else.

Tom



On Jan 19, 2021 at 7:23:06 PM, Thomas Wolf  wrote:

> Hi Peter,
> I looked at m .ssh directory and it already had the permissions you
> describe - the .ssh/ directory only had owner rwx and in the .ssh/
> directory, the public keys had rw permission for owner and r for group and
> other.  The private keys had rw for owner and no permission for anyone
> else.  The owner for everything was my userid.
>
> I even tried the reverse - giving group/other read permission to
> everything.  But that didn’t help either.  Lastly, I removed all but one
> set of keys from the .ssh/ directory - the one I use to ssh to the remote
> host (and where I’ve added its public key to the git user’s .ssh/
> authorized_keys file).  Still no good.  I can ssh to the remote machine and
> I can push using ‘git push origin master’, but when I try the push from
> Netbeans, I keep getting the same exception in the log :-(
>
> I downloaded and tried 12.2 and it gets the same exception :-(
>
> If anyone else has any other suggestions, I’d appreciate them.  The funny
> thing is that my work Mac has no problem pushing to other work computers
> with the same version of Netbeans and with the same permissions on the
> .ssh/ directory.  The work computer still uses catalina whereas the home
> computer uses a Big Sur 11.2 beta, but wouldn’t think that makes a
> difference.
> It’s starting to drive me up a wall :-(
>
>
>
> On Jan 19, 2021 at 5:18:33 PM, Peter Hull  wrote:
>
>> On Tue, 19 Jan 2021 at 21:56, Thomas Wolf  wrote:
>>
>>> On Jan 19, 2021 at 4:26:08 PM, Thomas Wolf  wrote:
>>>
>>>> Hey everyone,
>>>> I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local
>>>> changes to a recently created remote git repository.  But NB keeps telling
>>>> me about invalid credentials (I used ssh private key) and when I look into
>>>> the IDE log, I see this:
>>>> …
>>>
>>> I *think* I had the same problem and the solution turned out to be the
>> permissions on the ~/.ssh directory. (not sure because it was a while ago
>> and I did something and then forgot about it!)
>> Try removing all permissions from group and other (command: chmod
>> g-rwx,o-rwx ~/.ssh)
>> On my mac,
>> $ ls -ld ~/.ssh
>> drwx--  17 peterhull  501  544 10 Oct 16:55 /Users/peterhull/.ssh
>>
>>
>>> Not sure how com.jcraft and org.eclipse packages are in the picture -
>>> are those just libs NB uses?
>>>
>>
>>  Yes, it uses jgit from the Eclipse project.
>>
>> Hope that helps
>>
>>


Re: Netbeans 11.3 - can't push to remote

2021-01-19 Thread Thomas Wolf
 Hi Peter,
I looked at m .ssh directory and it already had the permissions you
describe - the .ssh/ directory only had owner rwx and in the .ssh/
directory, the public keys had rw permission for owner and r for group and
other.  The private keys had rw for owner and no permission for anyone
else.  The owner for everything was my userid.

I even tried the reverse - giving group/other read permission to
everything.  But that didn’t help either.  Lastly, I removed all but one
set of keys from the .ssh/ directory - the one I use to ssh to the remote
host (and where I’ve added its public key to the git user’s .ssh/
authorized_keys file).  Still no good.  I can ssh to the remote machine and
I can push using ‘git push origin master’, but when I try the push from
Netbeans, I keep getting the same exception in the log :-(

I downloaded and tried 12.2 and it gets the same exception :-(

If anyone else has any other suggestions, I’d appreciate them.  The funny
thing is that my work Mac has no problem pushing to other work computers
with the same version of Netbeans and with the same permissions on the
.ssh/ directory.  The work computer still uses catalina whereas the home
computer uses a Big Sur 11.2 beta, but wouldn’t think that makes a
difference.
It’s starting to drive me up a wall :-(



On Jan 19, 2021 at 5:18:33 PM, Peter Hull  wrote:

> On Tue, 19 Jan 2021 at 21:56, Thomas Wolf  wrote:
>
>> On Jan 19, 2021 at 4:26:08 PM, Thomas Wolf  wrote:
>>
>>> Hey everyone,
>>> I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local
>>> changes to a recently created remote git repository.  But NB keeps telling
>>> me about invalid credentials (I used ssh private key) and when I look into
>>> the IDE log, I see this:
>>> …
>>
>> I *think* I had the same problem and the solution turned out to be the
> permissions on the ~/.ssh directory. (not sure because it was a while ago
> and I did something and then forgot about it!)
> Try removing all permissions from group and other (command: chmod
> g-rwx,o-rwx ~/.ssh)
> On my mac,
> $ ls -ld ~/.ssh
> drwx--  17 peterhull  501  544 10 Oct 16:55 /Users/peterhull/.ssh
>
>
>> Not sure how com.jcraft and org.eclipse packages are in the picture - are
>> those just libs NB uses?
>>
>
>  Yes, it uses jgit from the Eclipse project.
>
> Hope that helps
>
>


Re: Netbeans 11.3 - can't push to remote

2021-01-19 Thread Thomas Wolf
On Jan 19, 2021 at 4:26:08 PM, Thomas Wolf  wrote:

> Hey everyone,
> I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local changes
> to a recently created remote git repository.  But NB keeps telling me about
> invalid credentials (I used ssh private key) and when I look into the IDE
> log, I see this:
>
> Caused: org.netbeans.libs.git.GitException$AuthorizationException:
> g...@xx.yy.zz.aa:SST.git: invalid privatekey: [B@1cc41291
> at
> org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235)
> …
>
>
There was a little bit more stack trace above the lines I gave which may
provide more information:

com.jcraft.jsch.JSchException: invalid privatekey: [B@76e69deb
at com.jcraft.jsch.KeyPair.load(KeyPair.java:664)
at com.jcraft.jsch.KeyPair.load(KeyPair.java:561)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:406)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:366)
at
org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSchIdentityRepository(JGitSshSessionFactory.java:184)
at
org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSch(JGitSshSessionFactory.java:197)
Caused: org.eclipse.jgit.errors.TransportException: git@73.194.145.50:SST.git:
invalid privatekey: [B@76e69deb
at
org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSch(JGitSshSessionFactory.java:199)
at
org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:106)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140)
at
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:280)
at
org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170)
at
org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51)
…

Not sure how com.jcraft and org.eclipse packages are in the picture - are
those just libs NB uses?
thnx again for any help,
Tom


Netbeans 11.3 - can't push to remote

2021-01-19 Thread Thomas Wolf
Hey everyone,
I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local changes
to a recently created remote git repository.  But NB keeps telling me about
invalid credentials (I used ssh private key) and when I look into the IDE
log, I see this:

Caused: org.netbeans.libs.git.GitException$AuthorizationException:
g...@xx.yy.zz.aa:SST.git: invalid privatekey: [B@1cc41291
at
org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235)
…

But the key isn’t invalid - I just created the private/public pair
yesterday (using "ssh-keygen -t rsa”) and I can ssh to the remote machine
from the terminal just fine.  Similarly, a ‘git push’ works fine as well.
Does anyone know what’s going on and how to fix this?

For completeness, here’s my .git/config (hostname modified to protect the
innocent) :-)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = g...@xx.yy.zz.aa:SST.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master

Any insight much appreciated.  In the meantime, I guess I’ll download 12.2
- just in case it was a bug.
Tom

p.s. I also already tried clearing Library/Caches/Netbeans/11.3 - that
didn’t help either.


Re: possibly naive question

2021-01-15 Thread Thomas Wolf
 Hi Scott- thanks a bunch - that did it!  I’m ashamed to admit that I
didn’t really think to look inside the app package :-(
tom


On Jan 15, 2021 at 11:47:44 AM, Scott Palmer  wrote:

> 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 to know how to do this on Mac, would you?  I tried
>> this:
>>
>>  open -a /Applications/NetBeans/Apache\ NetBeans\ 11.3.app --args
>> --open $PWD/try1.xml
>>
>> But this has two effects, depending on whether Netbeans is already
>> running: if it is, Netbeans simply comes to the foreground, but the file is
>> not opened.  If Netbeans wasn’t running, it starts up and immediately quits
>> again.
>>
>> Any further info much appreciated.
>> Tom
>>
>> On Jan 14, 2021 at 11:07:57 PM, Laszlo Kishalmi <
>> laszlo.kisha...@gmail.com> wrote:
>>
>>> Yes. It uses the existing opened instance if it's running.
>>>
>>> On 1/14/21 7:56 PM, Thomas Wolf wrote:
>>>
>>> Hey, thanks Lazlo - will that use a currently running netbeans if it’s
>>> running?  If so, this is good enough for me!  Sorry for the poor wording -
>>> when I said “remote” I should have said “external” (like outside the
>>> netbeans process/jvm)
>>>
>>>
>>> Thanks a bunch!
>>>
>>> tom
>>>
>>>
>>> > On Jan 14, 2021, at 10:53 PM, Laszlo Kishalmi <
>>> laszlo.kisha...@gmail.com> wrote:
>>>
>>> >
>>>
>>> > I do not know what and how the "remote" part would work, but you can
>>> do from CLI:
>>>
>>> >
>>>
>>> > netbeans --open file1[:line1]...
>>>
>>> >
>>>
>>> >
>>>
>>> >> On 1/14/21 7:34 PM, Thomas Wolf wrote:
>>>
>>> >> I don’t know.  But when I say “API”, I mean it in a loose sense: eg
>>> in many OS file types can associated with an application so that when you
>>> double-click on it, that file is opened.  In some cases without another
>>> instance of the application getting started.  The passing of the file name
>>> to the app is a kind of API.
>>>
>>> >>
>>>
>>> >> thanks,
>>>
>>> >> tom
>>>
>>> >>
>>>
>>> >>>> On Jan 14, 2021, at 8:22 PM, Mark A. Flacy
>>>  wrote:
>>>
>>> >>> Greetings,
>>>
>>> >>>
>>>
>>> >>> I must ask if there are other IDEs which do have such APIs enabled
>>> by default.
>>>
>>> >>> I wouldn't want something like that to be available (by default) on
>>> *any* IDE
>>>
>>> >>> that I use.
>>>
>>> >>>
>>>
>>> >>> --
>>>
>>> >>> Mark A. Flacy
>>>
>>> >>> mfl...@verizon.net
>>>
>>> >>>
>>>
>>> >>>> On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
>>>
>>> >>>> Hi,
>>>
>>> >>>> This might be a dumb question: does Netbeans have an external API
>>> (e.g.
>>>
>>> >>>> REST) that would allow a remote program to direct Netbeans to open
>>> a file
>>>
>>> >>>> at a given line number?  I have a program that does some analysis on
>>>
>>> >>>> application source code and then needs to let the user edit some
>>> specific
>>>
>>> >>>> source files  using whatever their favorite IDE.  If possible, I’d
>>> like to
>>>
>>> >>>> avoid writing my app as a plugin for each IDE.
>>>
>>> >>>>
>>>
>>> >>>> I’m not sure if this is actually the right mailing list to ask this
>>>
>>> >>>> question.  Feel free to point me to another if it’s not.
>>>
>>> >>>>
>>>
>>> >>>> Thanks,
>>>
>>> >>>> Tom
>>>
>>> >>>
>>>
>>> >>>
>>>
>>> >>>
>>>
>>> >>> -
>>>
>>> >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>>
>>> >>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> >>>
>>>
>>> >>> For further information about the NetBeans mailing lists, visit:
>>>
>>> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>> >>>
>>>
>>> >> -
>>>
>>> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>>
>>> >> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> >>
>>>
>>> >> For further information about the NetBeans mailing lists, visit:
>>>
>>> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>> >>
>>>
>>> > -
>>>
>>> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>>
>>> > For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> >
>>>
>>> > For further information about the NetBeans mailing lists, visit:
>>>
>>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>> >
>>>
>>>


Re: possibly naive question

2021-01-15 Thread Thomas Wolf
 Hi again,
You wouldn’t happen to know how to do this on Mac, would you?  I tried this:

 open -a /Applications/NetBeans/Apache\ NetBeans\ 11.3.app --args
--open $PWD/try1.xml

But this has two effects, depending on whether Netbeans is already running:
if it is, Netbeans simply comes to the foreground, but the file is not
opened.  If Netbeans wasn’t running, it starts up and immediately quits
again.

Any further info much appreciated.
Tom

On Jan 14, 2021 at 11:07:57 PM, Laszlo Kishalmi 
wrote:

> Yes. It uses the existing opened instance if it's running.
>
> On 1/14/21 7:56 PM, Thomas Wolf wrote:
>
> Hey, thanks Lazlo - will that use a currently running netbeans if it’s
> running?  If so, this is good enough for me!  Sorry for the poor wording -
> when I said “remote” I should have said “external” (like outside the
> netbeans process/jvm)
>
>
> Thanks a bunch!
>
> tom
>
>
> > On Jan 14, 2021, at 10:53 PM, Laszlo Kishalmi 
> wrote:
>
> >
>
> > I do not know what and how the "remote" part would work, but you can do
> from CLI:
>
> >
>
> > netbeans --open file1[:line1]...
>
> >
>
> >
>
> >> On 1/14/21 7:34 PM, Thomas Wolf wrote:
>
> >> I don’t know.  But when I say “API”, I mean it in a loose sense: eg in
> many OS file types can associated with an application so that when you
> double-click on it, that file is opened.  In some cases without another
> instance of the application getting started.  The passing of the file name
> to the app is a kind of API.
>
> >>
>
> >> thanks,
>
> >> tom
>
> >>
>
> >>>> On Jan 14, 2021, at 8:22 PM, Mark A. Flacy 
> wrote:
>
> >>> Greetings,
>
> >>>
>
> >>> I must ask if there are other IDEs which do have such APIs enabled by
> default.
>
> >>> I wouldn't want something like that to be available (by default) on
> *any* IDE
>
> >>> that I use.
>
> >>>
>
> >>> --
>
> >>> Mark A. Flacy
>
> >>> mfl...@verizon.net
>
> >>>
>
> >>>> On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
>
> >>>> Hi,
>
> >>>> This might be a dumb question: does Netbeans have an external API
> (e.g.
>
> >>>> REST) that would allow a remote program to direct Netbeans to open a
> file
>
> >>>> at a given line number?  I have a program that does some analysis on
>
> >>>> application source code and then needs to let the user edit some
> specific
>
> >>>> source files  using whatever their favorite IDE.  If possible, I’d
> like to
>
> >>>> avoid writing my app as a plugin for each IDE.
>
> >>>>
>
> >>>> I’m not sure if this is actually the right mailing list to ask this
>
> >>>> question.  Feel free to point me to another if it’s not.
>
> >>>>
>
> >>>> Thanks,
>
> >>>> Tom
>
> >>>
>
> >>>
>
> >>>
>
> >>> -
>
> >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>
> >>> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> >>>
>
> >>> For further information about the NetBeans mailing lists, visit:
>
> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> >>>
>
> >> -
>
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> >>
>
> >> For further information about the NetBeans mailing lists, visit:
>
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> >>
>
> > -
>
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>
> > For additional commands, e-mail: users-h...@netbeans.apache.org
>
> >
>
> > For further information about the NetBeans mailing lists, visit:
>
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> >
>
>


Re: possibly naive question

2021-01-14 Thread Thomas Wolf
Hey, thanks Lazlo - will that use a currently running netbeans if it’s running? 
 If so, this is good enough for me!  Sorry for the poor wording - when I said 
“remote” I should have said “external” (like outside the netbeans process/jvm)

Thanks a bunch!
tom

> On Jan 14, 2021, at 10:53 PM, Laszlo Kishalmi  
> wrote:
> 
> I do not know what and how the "remote" part would work, but you can do from 
> CLI:
> 
> netbeans --open file1[:line1]...
> 
> 
>> On 1/14/21 7:34 PM, Thomas Wolf wrote:
>> I don’t know.  But when I say “API”, I mean it in a loose sense: eg in many 
>> OS file types can associated with an application so that when you 
>> double-click on it, that file is opened.  In some cases without another 
>> instance of the application getting started.  The passing of the file name 
>> to the app is a kind of API.
>> 
>> thanks,
>> tom
>> 
>>>> On Jan 14, 2021, at 8:22 PM, Mark A. Flacy  
>>>> wrote:
>>> 
>>> Greetings,
>>> 
>>> I must ask if there are other IDEs which do have such APIs enabled by 
>>> default.
>>> I wouldn't want something like that to be available (by default) on *any* 
>>> IDE
>>> that I use.
>>> 
>>> -- 
>>> Mark A. Flacy
>>> mfl...@verizon.net
>>> 
>>>> On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
>>>> Hi,
>>>> This might be a dumb question: does Netbeans have an external API (e.g.
>>>> REST) that would allow a remote program to direct Netbeans to open a file
>>>> at a given line number?  I have a program that does some analysis on
>>>> application source code and then needs to let the user edit some specific
>>>> source files  using whatever their favorite IDE.  If possible, I’d like to
>>>> avoid writing my app as a plugin for each IDE.
>>>> 
>>>> I’m not sure if this is actually the right mailing list to ask this
>>>> question.  Feel free to point me to another if it’s not.
>>>> 
>>>> Thanks,
>>>> Tom
>>> 
>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>> 
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: possibly naive question

2021-01-14 Thread Thomas Wolf
I don’t know.  But when I say “API”, I mean it in a loose sense: eg in many OS 
file types can associated with an application so that when you double-click on 
it, that file is opened.  In some cases without another instance of the 
application getting started.  The passing of the file name to the app is a kind 
of API.

thanks,
tom

> On Jan 14, 2021, at 8:22 PM, Mark A. Flacy  wrote:
> 
> Greetings,
> 
> I must ask if there are other IDEs which do have such APIs enabled by 
> default.  
> I wouldn't want something like that to be available (by default) on *any* IDE 
> that I use.
> 
> -- 
> Mark A. Flacy
> mfl...@verizon.net
> 
>> On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
>> Hi,
>> This might be a dumb question: does Netbeans have an external API (e.g.
>> REST) that would allow a remote program to direct Netbeans to open a file
>> at a given line number?  I have a program that does some analysis on
>> application source code and then needs to let the user edit some specific
>> source files  using whatever their favorite IDE.  If possible, I’d like to
>> avoid writing my app as a plugin for each IDE.
>> 
>> I’m not sure if this is actually the right mailing list to ask this
>> question.  Feel free to point me to another if it’s not.
>> 
>> Thanks,
>> Tom
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



possibly naive question

2021-01-14 Thread Thomas Wolf
Hi,
This might be a dumb question: does Netbeans have an external API (e.g.
REST) that would allow a remote program to direct Netbeans to open a file
at a given line number?  I have a program that does some analysis on
application source code and then needs to let the user edit some specific
source files  using whatever their favorite IDE.  If possible, I’d like to
avoid writing my app as a plugin for each IDE.

I’m not sure if this is actually the right mailing list to ask this
question.  Feel free to point me to another if it’s not.

Thanks,
Tom


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

2020-12-23 Thread Thomas Wolf
 I did after I asked the original question back in August.  Not the point.
tom


On Dec 23, 2020 at 4:06:15 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Set it in etc/netbeans.conf then.
>
> Gj
>
> On Wed, 23 Dec 2020 at 22:05, Thomas Wolf  wrote:
>
>> Hi Scott,
>> When I run "launchctl getenv JAVA_HOME” I don’t get anything 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 do have JAVA_HOME set in my $HOME/.zshrc.
>>
>> thnx,
>> tom
>>
>>
>>
>> On Dec 23, 2020 at 3:53:46 PM, Scott Palmer  wrote:
>>
>>> No, that’s JAVA_HOME in your command-line shell.  NOT the JAVA_HOME for
>>> GUI apps.  To get the JAVA_HOME that the IDE would see you need to use the
>>> launchctl command.
>>> Try:
>>>   launchctl getenv JAVA_HOME
>>>
>>> Regards,
>>>
>>> Scott
>>>
>>> On Dec 23, 2020, at 12:47 PM, Franck Arnulfo 
>>> wrote:
>>>
>>> 
>>> JAVA_HOME is valid:
>>> farnulfo@MacBook-Pro ~ % echo $JAVA_HOME
>>> /Users/farnulfo/.sdkman/candidates/java/current
>>>
>>> farnulfo@MacBook-Pro ~ % $JAVA_HOME/bin/java -version
>>> openjdk version "11.0.9.1" 2020-11-04
>>> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
>>> 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 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
>>>> line.)
>>>>
>>>> Scott
>>>>
>>>> On Dec 22, 2020, at 7:01 PM, Franck Arnulfo 
>>>> wrote:
>>>>
>>>> 
>>>> I've got the same issue:
>>>>
>>>> Netbeans 12.2 installer can't find JDK on macOS BigSur with JDK
>>>> installed with SDKMAN.
>>>> 
>>>>
>>>>
>>>> Java is correctly installed, even the /usr/libexec/java_home is correct
>>>> :
>>>>
>>>> farnulfo@MacBook-Pro ~ % java -version
>>>> openjdk version "11.0.9.1" 2020-11-04
>>>> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
>>>> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
>>>> farnulfo@MacBook-Pro ~ % which java
>>>> /Users/farnulfo/.sdkman/candidates/java/current/bin/java
>>>> farnulfo@MacBook-Pro ~ % /usr/libexec/java_home
>>>> /Users/farnulfo/.sdkman/candidates/java/current
>>>> farnulfo@MacBook-Pro ~ %
>>>>
>>>> The zip distribution of Netbeans 12.2 run fine with
>>>> netbeans/bin/netbeans
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Aug 27, 2020 at 3:19 AM Thomas Wolf  wrote:
>>>>
>>>>>
>>>>>
>>>>> > On Aug 26, 2020, at 8:59 PM, Thomas Wolf  wrote:
>>>>> >
>>>>> > Hey,
>>>>> > Has anyone had this issue?
>>>>> >
>>>>> > I haven’t used Netbeans on my home mac for awhile.  I recently
>>>>> installed the macOS Big Sur beta and when I tried running my Netbeans 11.3
>>>>> from the dock as usual, I get a warning (see first attachment) about the
>>>>> JDK being missing.  I said, hm - that’s odd - I have multiple different
>>>>> Java versions and Terminal shows me pointing to v14:
>>>>> >
>>>>> > twolf@MacBook-Pro ~ % java -version
>>>>> > java version "14.0.2" 2020-07-14
>>>>> > Java(TM) SE Runtime Environment (build 14.0.2+12-46)
>>>>> > Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode,
>>>>> sharing)
>>>>> >
>>>>> > twolf@MacBook-Pro ~ % ls /Library/Java/JavaVirtualMachines/
>>>>> > jdk-12.0.2.jdk/   jdk1.7.0_51.jdk/  jdk1.8.0_31.jdk/
>>>>> > jdk-14.0.2.jdk/   jdk1.8.0_25.jdk/  zulu-8.jdk/
>>>>> >
>>>>> > I couldn’t figure it out, so I figured - good time to install 12.0.
>>>>> Downloaded the 12.0 installer and ran that.  But the installer fails 
>>>>> itself
>>>>> - also because it can’t find the JDK! See second screen shot.
>>>>> >
>>>>>
>>>>> Well, I finally did get my old 11.3 version to work by modifying
>>>>> /Applications/NetBeans/Apache NetBeans
>>>>> 11.3.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf and
>>>>> manually setting the netbeans_jdkhome variable to one of the JDKs I have.
>>>>>
>>>>> But how do I get the Netbeans 12 installer to work?
>>>>>
>>>>> Thanks again,
>>>>> Tom
>>>>>
>>>>>
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
>>>>>
>>>>
>>>> --
>>>> Franck
>>>>
>>>>
>>>
>>> --
>>> Franck
>>>
>>>


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

2020-12-23 Thread Thomas Wolf
 Hi Scott,
When I run "launchctl getenv JAVA_HOME” I don’t get anything 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 do have JAVA_HOME set in my $HOME/.zshrc.

thnx,
tom



On Dec 23, 2020 at 3:53:46 PM, Scott Palmer  wrote:

> No, that’s JAVA_HOME in your command-line shell.  NOT the JAVA_HOME for
> GUI apps.  To get the JAVA_HOME that the IDE would see you need to use the
> launchctl command.
> Try:
>   launchctl getenv JAVA_HOME
>
> Regards,
>
> Scott
>
> On Dec 23, 2020, at 12:47 PM, Franck Arnulfo 
> wrote:
>
> 
> JAVA_HOME is valid:
> farnulfo@MacBook-Pro ~ % echo $JAVA_HOME
> /Users/farnulfo/.sdkman/candidates/java/current
>
> farnulfo@MacBook-Pro ~ % $JAVA_HOME/bin/java -version
> openjdk version "11.0.9.1" 2020-11-04
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
> 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 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
>> line.)
>>
>> Scott
>>
>> On Dec 22, 2020, at 7:01 PM, Franck Arnulfo 
>> wrote:
>>
>> 
>> I've got the same issue:
>>
>> Netbeans 12.2 installer can't find JDK on macOS BigSur with JDK installed
>> with SDKMAN.
>> 
>>
>>
>> Java is correctly installed, even the /usr/libexec/java_home is correct :
>>
>> farnulfo@MacBook-Pro ~ % java -version
>> openjdk version "11.0.9.1" 2020-11-04
>> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
>> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
>> farnulfo@MacBook-Pro ~ % which java
>> /Users/farnulfo/.sdkman/candidates/java/current/bin/java
>> farnulfo@MacBook-Pro ~ % /usr/libexec/java_home
>> /Users/farnulfo/.sdkman/candidates/java/current
>> farnulfo@MacBook-Pro ~ %
>>
>> The zip distribution of Netbeans 12.2 run fine with netbeans/bin/netbeans
>>
>>
>>
>>
>> On Thu, Aug 27, 2020 at 3:19 AM Thomas Wolf  wrote:
>>
>>>
>>>
>>> > On Aug 26, 2020, at 8:59 PM, Thomas Wolf  wrote:
>>> >
>>> > Hey,
>>> > Has anyone had this issue?
>>> >
>>> > I haven’t used Netbeans on my home mac for awhile.  I recently
>>> installed the macOS Big Sur beta and when I tried running my Netbeans 11.3
>>> from the dock as usual, I get a warning (see first attachment) about the
>>> JDK being missing.  I said, hm - that’s odd - I have multiple different
>>> Java versions and Terminal shows me pointing to v14:
>>> >
>>> > twolf@MacBook-Pro ~ % java -version
>>> > java version "14.0.2" 2020-07-14
>>> > Java(TM) SE Runtime Environment (build 14.0.2+12-46)
>>> > Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode,
>>> sharing)
>>> >
>>> > twolf@MacBook-Pro ~ % ls /Library/Java/JavaVirtualMachines/
>>> > jdk-12.0.2.jdk/   jdk1.7.0_51.jdk/  jdk1.8.0_31.jdk/
>>> > jdk-14.0.2.jdk/   jdk1.8.0_25.jdk/  zulu-8.jdk/
>>> >
>>> > I couldn’t figure it out, so I figured - good time to install 12.0.
>>> Downloaded the 12.0 installer and ran that.  But the installer fails itself
>>> - also because it can’t find the JDK! See second screen shot.
>>> >
>>>
>>> Well, I finally did get my old 11.3 version to work by modifying
>>> /Applications/NetBeans/Apache NetBeans
>>> 11.3.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf and
>>> manually setting the netbeans_jdkhome variable to one of the JDKs I have.
>>>
>>> But how do I get the Netbeans 12 installer to work?
>>>
>>> Thanks again,
>>> Tom
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>
>> --
>> Franck
>>
>>
>
> --
> Franck
>
>


...has anyone ever tried making a GraalVM native image of NB?

2020-12-03 Thread Thomas Wolf
I just recently started reading about GraalVM to find ways to reduce my
app’s footprint and startup time.  Turns out GraalVM has a native binary
builder and I started wondering if anyone has ever tried it on something as
big and complicated as Netbeans?  For this to work all classes the
application uses must be knowable at conversion time, so I don’t know if NB
qualifies, but it would be neat to see such a beast.

Tom


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

2020-08-26 Thread Thomas Wolf



> On Aug 26, 2020, at 8:59 PM, Thomas Wolf  wrote:
> 
> Hey,
> Has anyone had this issue?
> 
> I haven’t used Netbeans on my home mac for awhile.  I recently installed the 
> macOS Big Sur beta and when I tried running my Netbeans 11.3 from the dock as 
> usual, I get a warning (see first attachment) about the JDK being missing.  I 
> said, hm - that’s odd - I have multiple different Java versions and Terminal 
> shows me pointing to v14:
> 
> twolf@MacBook-Pro ~ % java -version
> java version "14.0.2" 2020-07-14
> Java(TM) SE Runtime Environment (build 14.0.2+12-46)
> Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
> 
> twolf@MacBook-Pro ~ % ls /Library/Java/JavaVirtualMachines/
> jdk-12.0.2.jdk/   jdk1.7.0_51.jdk/  jdk1.8.0_31.jdk/  
> jdk-14.0.2.jdk/   jdk1.8.0_25.jdk/  zulu-8.jdk/
> 
> I couldn’t figure it out, so I figured - good time to install 12.0.  
> Downloaded the 12.0 installer and ran that.  But the installer fails itself - 
> also because it can’t find the JDK! See second screen shot.
> 

Well, I finally did get my old 11.3 version to work by modifying 
/Applications/NetBeans/Apache NetBeans 
11.3.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf and manually 
setting the netbeans_jdkhome variable to one of the JDKs I have.

But how do I get the Netbeans 12 installer to work?

Thanks again,
Tom



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Statement of disappointment

2020-03-13 Thread Thomas Wolf
I'd be happy to contribute some personal money.  To get my employer to pay,
it would have to take the form of something like an IDE license or support
license.  Many engineers in my company use IntelliJ and the company pays
for those licenses - I don't see why they wouldn't pay for a Netbeans
"license" for me as long as they have an official place from which to
'purchase' it.

Best regards,
Tom



On Fri, Mar 13, 2020 at 3:22 PM Geertjan Wielenga 
wrote:

> Sure! If you’re not willing/able to participate in NetCAT yourself:
>
> https://cwiki.apache.org/confluence/display/NETBEANS/NetCAT+12.0
>
> ...would you be interested in sponsoring others to do so, at say $50 per
> person per NetCAT test spec?
>
> Gj
>
> On Fri, 13 Mar 2020 at 20:01, Chris Olsen  wrote:
>
>> Thomas and All --
>>
>>Mine is much the same story.  Would there be some way to contribute
>> $$$ (or, in my case, $$) to the team meaningfully?
>>
>>   -- Chris
>>
>> - Original Message -
>> From: Thomas Wolf 
>> To: John Mc 
>> Cc: Robert Erdt , bmelen...@hemstech.com, Geertjan
>> Wielenga , Emilian Bold ,
>> Paul Szudzik , Netbeans Mailing List <
>> users@netbeans.apache.org>
>> Sent: Fri, 13 Mar 2020 14:10:11 -0400 (EDT)
>> Subject: Re: Statement of disappointment
>>
>> My $.02,
>> I’ve been benefitting from NB since I moved over from Visual Cafe in 1999
>> (to give you an idea of what a Java dinosaur I am).  And my only
>> contributions in 2+ decades have been bug reports (most of which now lie
>> forgotten somewhere in the bowels of the old Bugzilla system) and 1-2
>> NetCAT participations.   I have always been willing to pay for this
>> excellent tool but never had the desire (or time) to improve it myself.
>>  In the early days, I once downloaded it with the faint hope of correcting
>> a minor bug - but didn’t even succeed in building it.   For me at least,
>> the time it takes to get high enough on the learning curve to contribute
>> meaningfully is more than I have been willing to invest (maybe that’ll
>> change after I retire in a few years).
>>
>> But like I said, I’ve always been more than happy to pay for the tool.  I
>> wonder if it’s too late for NB to introduce such an alternative/additional
>> model?   Just a thought.
>>
>> Best regards,
>> Tom
>>
>>
>> > On Mar 13, 2020, at 9:51 AM, John Mc  wrote:
>> >
>> > 
>> > But instead of looking at this financial payment, why not consider an
>> time/effort payment?
>> >
>> > At present, I cant really talk, I've been busy, and have provided
>> anything back to NetBeans in a while but then I don't have any issues that
>> are negatively effecting me.  If and when I do I will hopefully try to
>> address them, like I have tried to in the past.
>> >
>> > The way I see it, if we could find out what exactly is blocking people
>> from moving to 11.3/12, and then if they can spend even a small amount of
>> time/effort into looking at these we can get to an even better NetBeans
>> product.
>> >
>> > John
>> >
>> >> On Fri, 13 Mar 2020 at 13:34, Robert Erdt 
>> wrote:
>> >> Agreed, NetBeans is worth paying for
>> >>
>> >> I am with Bill, I have not upgraded and I am at 9 similar to 8.
>> >>
>> >> Rob
>> >>
>> >> -Original Message-
>> >> From: bmelen...@hemstech.com [mailto:bmelen...@hemstech.com]
>> >> Sent: Friday, March 13, 2020 9:30 AM
>> >> To: Geertjan Wielenga 
>> >> Cc: Emilian Bold ; Paul Szudzik <
>> pszud...@throwarock.com>; Netbeans Mailing List <
>> users@netbeans.apache.org>
>> >> Subject: Re: Statement of disappointment
>> >>
>> >> All:
>> >>
>> >> Been reading all the emails on the NB migration. I do JAVA on NB 8.0.2
>> platform and have not upgraded due to the issues being address. I do okay
>> with the NB 8. If this is so critical for getting program done for clients,
>> then one should be willing to pay for the platform. See it as a business
>> expense and write it off at tax time. Normally, tools are included in the
>> cost of a job -so I'm miffed as to the expectations placing the onus on NB
>> development to resolve things at no cost. NB is a great platform and this
>> is merely a transitional period for it, so I stay with my current platform
>> and wait until the dust settles --or pay for the upgrade with support if my
>&g

Re: Statement of disappointment

2020-03-13 Thread Thomas Wolf
My $.02,
I’ve been benefitting from NB since I moved over from Visual Cafe in 1999 (to 
give you an idea of what a Java dinosaur I am).  And my only contributions in 
2+ decades have been bug reports (most of which now lie forgotten somewhere in 
the bowels of the old Bugzilla system) and 1-2 NetCAT participations.   I have 
always been willing to pay for this excellent tool but never had the desire (or 
time) to improve it myself.   In the early days, I once downloaded it with the 
faint hope of correcting a minor bug - but didn’t even succeed in building it.  
 For me at least, the time it takes to get high enough on the learning curve to 
contribute meaningfully is more than I have been willing to invest (maybe 
that’ll change after I retire in a few years).

But like I said, I’ve always been more than happy to pay for the tool.  I 
wonder if it’s too late for NB to introduce such an alternative/additional 
model?   Just a thought.

Best regards,
Tom


> On Mar 13, 2020, at 9:51 AM, John Mc  wrote:
> 
> 
> But instead of looking at this financial payment, why not consider an 
> time/effort payment?
> 
> At present, I cant really talk, I've been busy, and have provided anything 
> back to NetBeans in a while but then I don't have any issues that are 
> negatively effecting me.  If and when I do I will hopefully try to address 
> them, like I have tried to in the past.
> 
> The way I see it, if we could find out what exactly is blocking people from 
> moving to 11.3/12, and then if they can spend even a small amount of 
> time/effort into looking at these we can get to an even better NetBeans 
> product.
> 
> John
> 
>> On Fri, 13 Mar 2020 at 13:34, Robert Erdt  wrote:
>> Agreed, NetBeans is worth paying for
>> 
>> I am with Bill, I have not upgraded and I am at 9 similar to 8.
>> 
>> Rob
>> 
>> -Original Message-
>> From: bmelen...@hemstech.com [mailto:bmelen...@hemstech.com] 
>> Sent: Friday, March 13, 2020 9:30 AM
>> To: Geertjan Wielenga 
>> Cc: Emilian Bold ; Paul Szudzik 
>> ; Netbeans Mailing List 
>> Subject: Re: Statement of disappointment
>> 
>> All:
>> 
>> Been reading all the emails on the NB migration. I do JAVA on NB 8.0.2 
>> platform and have not upgraded due to the issues being address. I do okay 
>> with the NB 8. If this is so critical for getting program done for clients, 
>> then one should be willing to pay for the platform. See it as a business 
>> expense and write it off at tax time. Normally, tools are included in the 
>> cost of a job -so I'm miffed as to the expectations placing the onus on NB 
>> development to resolve things at no cost. NB is a great platform and this is 
>> merely a transitional period for it, so I stay with my current platform and 
>> wait until the dust settles --or pay for the upgrade with support if my 
>> situation changes. While NB has many issues, it will eventually resolve the 
>> main ones or become a dust covered relic with passing memories.
>> 
>> 
>> Bill
>> 
>> 
>> 
>> > Indeed, I think the approach Emilian suggests is the way to go. And, 
>> > indeed, if you don't want to or have the time to move to Maven of 
>> > Gradle, then a lot of modern options start closing off to you.
>> >
>> > But, on a different level, for a lot of users of NetBeans, the 
>> > chickens have come home to roost: a free and open source project, such 
>> > as NetBeans, should never simply have been 'used', it should always 
>> > have been invested in. For example, simply filing a bug and hoping 
>> > someone will turn up to fix it has never been the way open source is 
>> > meant to work.
>> >
>> > Nothing is ever free -- either you spend time (in understanding how 
>> > NetBeans works, for example) or money (in paying JetBrains, for 
>> > example, and then you have engineers creating IntelliJ IDEA for you). 
>> > Not spending anything at all and hoping things will work out for you 
>> > has never been a sustainable approach.
>> >
>> > Gjj
>> >
>> > On Mon, Mar 9, 2020 at 4:24 PM Emilian Bold 
>> > wrote:
>> >
>> >> Go and pick Azul Zulu' JDK FX package which comes bundles with JavaFX:
>> >>
>> >> https://www.azul.com/downloads/zulu-community/?&architecture=x86-64-b
>> >> it&package=jdk-fx
>> >>
>> >> I used it for an older Platform app where I don't feel like 
>> >> configuring the FX mumbo jumbo.
>> >>
>> >> I doubt anybody can make a magic transition tools since there's too 
>> >> much people can customize...
>> >>
>> >> Given the resources available, things are as they are. They could 
>> >> always be better.
>> >>
>> >> --emi
>> >>
>> >> On Mon, Mar 9, 2020 at 5:16 PM Paul Szudzik 
>> >> wrote:
>> >> >
>> >> > I have been a NetBeans user since inception.  I am retired now,
>> >> but
>> >> when I worked, I was one of the few people in my company that was an 
>> >> advocate of NetBeans, and used it instead of the company line, 
>> >> Eclipse product.
>> >> >
>> >> > Retired now for 10+ years, I used NetBeans to develop my 
>> >> > products,
>> >> a

Re: [ANNOUNCE] Apache NetBeans 11.3 released

2020-03-04 Thread Thomas Wolf
Thanks for the alternative - but my company doesn't seem to think much of
it :-}  After I got a '403' error when I tried to peruse it via NB, I tried
the browser and got this response.

Oh well - maybe I'll take Geertjan's advice and get used to FlatLaf - it is
pretty darn close to Darcula anyway.

Best regards,
tom


On Wed, Mar 4, 2020 at 12:11 PM Emilian Bold  wrote:

> > I tried downloading the plugin again from
> > http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans
> > but it's no longer available.
>
> There's a mirror with all the plugins at
> http://plugins.archive.librebeans.org
>
> --emi
>
> On Wed, Mar 4, 2020 at 6:45 PM Thomas Wolf  wrote:
> >
> > Excellent new release - thanks so much for the new software, especially
> the new L&Fs.
> >
> > Speaking of L&Fs, the new FlatLaf Dark uses a very similar color palette
> to Darcula, my favorite L&F for the past few years.  Nice!  The only
> downside (so far)  I notice is with tabs, as they use up more vertical
> space (and, possibly, horizontally too) than Darcula's.  What is the status
> of Darcula?  NB 11.3 offered to import it from my 11.2 installation, but it
> does not show up as a L&F option after I do so.  Viewing the IDE log, I
> don't see any errors either?!  I tried downloading the plugin again from
> >  http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans
> > but it's no longer available.  I tried building the code from GitHub but
> get build failures.  It seems no longer maintained - the last update on
> GitHub was 3 years ago.
> >
> > Thanks for all info,
> > Tom
> >
> > On Wed, Mar 4, 2020 at 10:05 AM Eric Barboni  wrote:
> >>
> >> The Apache NetBeans team is pleased to announce the release of Apache
> >> NetBeans 11.3. Apache NetBeans is a full IDE for Java SE, Java EE, PHP
> >> and JavaScript development with some Groovy language support.
> >>
> >> Apache NetBeans 11.3 is the third Apache NetBeans release outside the
> >> Apache Incubator and the third release of the new quarterly release
> >> cycle.  The LTS release of the Apache NetBeans 11 cycle is Apache
> >> NetBeans 11.0. The 11.3 release has not been as heavily tested as the
> >> LTS release. Use 11.3 to access the latest features and to provide
> >> feedback for the next LTS release, scheduled for May 2020.
> >>
> >> New & noteworthy features of the 11.3 release:
> >>
> >> https://netbeans.apache.org/download/nb113/index.html
> >>
> >> Downloads:
> >>
> >> https://netbeans.apache.org/download/nb113/nb113.html
> >>
> >> Feel free to share the good news!
> >>
> >> The next Apache NetBeans 12.0 will be tested through NetCAT program.
> >> If you have some time to test and review Apache NetBeans Development
> build
> >> feel free to join.
> >> https://netbeans.apache.org/participate/netcat.html
> >>
> >> Thanks everyone, for fixing / reporting issue, improving documentation.
> >> Special thanks to Neil and Geertjan for continuous help.
> >>
> >> Best Regards
> >>
> >> On Behalf of the Apache NetBeans PMC
> >> Eric Barboni & Arunava Sinha
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >
> >
> > --
> > tjw...@gmail.com
> > http://landofwolf.blogspot.com/
>


-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: [ANNOUNCE] Apache NetBeans 11.3 released

2020-03-04 Thread Thomas Wolf
Excellent new release - thanks so much for the new software, especially the
new L&Fs.

Speaking of L&Fs, the new FlatLaf Dark uses a very similar color palette to
Darcula, my favorite L&F for the past few years.  Nice!  The only downside
(so far)  I notice is with tabs, as they use up more vertical space (and,
possibly, horizontally too) than Darcula's.  What is the status of
Darcula?  NB 11.3 offered to import it from my 11.2 installation, but it
does not show up as a L&F option after I do so.  Viewing the IDE log, I
don't see any errors either?!  I tried downloading the plugin again from
 http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans
but it's no longer available.  I tried building the code from GitHub but
get build failures.  It seems no longer maintained - the last update on
GitHub was 3 years ago.

Thanks for all info,
Tom

On Wed, Mar 4, 2020 at 10:05 AM Eric Barboni  wrote:

> The Apache NetBeans team is pleased to announce the release of Apache
> NetBeans 11.3. Apache NetBeans is a full IDE for Java SE, Java EE, PHP
> and JavaScript development with some Groovy language support.
>
> Apache NetBeans 11.3 is the third Apache NetBeans release outside the
> Apache Incubator and the third release of the new quarterly release
> cycle.  The LTS release of the Apache NetBeans 11 cycle is Apache
> NetBeans 11.0. The 11.3 release has not been as heavily tested as the
> LTS release. Use 11.3 to access the latest features and to provide
> feedback for the next LTS release, scheduled for May 2020.
>
> New & noteworthy features of the 11.3 release:
>
> https://netbeans.apache.org/download/nb113/index.html
>
> Downloads:
>
> https://netbeans.apache.org/download/nb113/nb113.html
>
> Feel free to share the good news!
>
> The next Apache NetBeans 12.0 will be tested through NetCAT program.
> If you have some time to test and review Apache NetBeans Development build
> feel free to join.
> https://netbeans.apache.org/participate/netcat.html
>
> Thanks everyone, for fixing / reporting issue, improving documentation.
> Special thanks to Neil and Geertjan for continuous help.
>
> Best Regards
>
> On Behalf of the Apache NetBeans PMC
> Eric Barboni & Arunava Sinha
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Weird NB git problem

2020-02-19 Thread Thomas Wolf
HI Geertjan,
Thanks a bunch - got it working again.  When I tried to commit  from the
command-line, I found out that something crashed during the NB commit and
left an index.lock file in the the .git/ directory (not sure why NB
couldn't display changed files because of this, though, as the command-line
"git status" still worked).  Anyway, back up and running now, so thanks
again.
tom

On Wed, Feb 19, 2020 at 1:09 AM Geertjan Wielenga 
wrote:

>
> Just commit these files in on the command line and then start NetBeans
> with a fresh user directory and when the problem happens again open an
> issue and attach the NetBeans log files for analysis.
>
> Gj
>
> On Tue, 18 Feb 2020 at 21:38, Thomas Wolf  wrote:
>
>> Been using NB with git without problems on a Mac for years now - with NB
>> 11.2 since it came out.
>>
>> But just now I encountered a strange bug - and I don't know how to fix it:
>>
>> I had made some changes to my source code and, as usual, from Projects I
>> selected
>>  Project->Git->Show Changes
>> This showed me the list of files that were modified in the branch.  I
>> highlighted all the files and selected "Commit".  Usually, this would bring
>> up the commit dialog into which I can add some comments before actually
>> committing.  But this time, the highlighting color for the selected files
>> just darkened slightly, but no commit dialog showed up!  The IDE wasn't
>> dead - nor did the commit dialog pop up somewhere under another window.  It
>> just didn't show.
>>
>> I checked View->IDE Log, but there were no error messages (I mean other
>> than the "normal" ones).  So I exited the IDE (Netbeans->Quit Netbeans) and
>> restarted it.
>>
>> Back in the IDE, all the modified had lost their "modified" color
>> (modified file tabs show up in blue font under Darcula) and when I repeated
>> the above "Show Changes", no files show as modified?!  But clearly that is
>> not the case.  When I go to the command-line and do "git status" I clearly
>> see that the files are still modified).
>>
>> So I exited NB, deleted its cache directory -
>> $HOME/Library/Caches/NetBeans/ - and restarted.  No difference.  NB still
>> thinks the files are not modified :-(
>>
>> So I uninstalled NB 11.2 and re-installed it.  Again - no difference.
>> What should I try next?  Is there some file or directory somewhere outside
>> the cache directory that might have gotten corrupted?
>>
>> Any help/suggestion would be much appreciated,
>> Tom
>>
>> p.s. here's my setup from the IDE log:
>>
>> >Log Session: Tuesday, February 18, 2020 at 3:21:30 PM Eastern Standard
>> Time
>> >System Info:
>>   Product Version = Apache NetBeans IDE 11.2
>>   Operating System= Mac OS X version 10.15.3 running on x86_64
>>   Java; VM; Vendor= 11.0.3; Java HotSpot(TM) 64-Bit Server VM
>> 11.0.3+12-LTS; Oracle Corporation
>>   Runtime = Java(TM) SE Runtime Environment 11.0.3+12-LTS
>>   Java Home   =
>> /Library/Java/JavaVirtualMachines/jdk-11.0.3.jdk/Contents/Home
>>   System Locale; Encoding = en_US (nb); UTF-8
>>   Home Directory  = /Users/thwolf
>>   Current Directory   = /
>>   User Directory  = /Users/thwolf/Library/Application
>> Support/NetBeans/11.2
>>   Cache Directory = /Users/thwolf/Library/Caches/NetBeans/11.2
>>
>>
>>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Weird NB git problem

2020-02-18 Thread Thomas Wolf
Been using NB with git without problems on a Mac for years now - with NB
11.2 since it came out.

But just now I encountered a strange bug - and I don't know how to fix it:

I had made some changes to my source code and, as usual, from Projects I
selected
 Project->Git->Show Changes
This showed me the list of files that were modified in the branch.  I
highlighted all the files and selected "Commit".  Usually, this would bring
up the commit dialog into which I can add some comments before actually
committing.  But this time, the highlighting color for the selected files
just darkened slightly, but no commit dialog showed up!  The IDE wasn't
dead - nor did the commit dialog pop up somewhere under another window.  It
just didn't show.

I checked View->IDE Log, but there were no error messages (I mean other
than the "normal" ones).  So I exited the IDE (Netbeans->Quit Netbeans) and
restarted it.

Back in the IDE, all the modified had lost their "modified" color (modified
file tabs show up in blue font under Darcula) and when I repeated the above
"Show Changes", no files show as modified?!  But clearly that is not the
case.  When I go to the command-line and do "git status" I clearly see that
the files are still modified).

So I exited NB, deleted its cache directory -
$HOME/Library/Caches/NetBeans/ - and restarted.  No difference.  NB still
thinks the files are not modified :-(

So I uninstalled NB 11.2 and re-installed it.  Again - no difference.  What
should I try next?  Is there some file or directory somewhere outside the
cache directory that might have gotten corrupted?

Any help/suggestion would be much appreciated,
Tom

p.s. here's my setup from the IDE log:

>Log Session: Tuesday, February 18, 2020 at 3:21:30 PM Eastern Standard Time
>System Info:
  Product Version = Apache NetBeans IDE 11.2
  Operating System= Mac OS X version 10.15.3 running on x86_64
  Java; VM; Vendor= 11.0.3; Java HotSpot(TM) 64-Bit Server VM
11.0.3+12-LTS; Oracle Corporation
  Runtime = Java(TM) SE Runtime Environment 11.0.3+12-LTS
  Java Home   =
/Library/Java/JavaVirtualMachines/jdk-11.0.3.jdk/Contents/Home
  System Locale; Encoding = en_US (nb); UTF-8
  Home Directory  = /Users/thwolf
  Current Directory   = /
  User Directory  = /Users/thwolf/Library/Application
Support/NetBeans/11.2
  Cache Directory = /Users/thwolf/Library/Caches/NetBeans/11.2


Re: Anyone know of any gerrit integration?

2020-01-02 Thread Thomas Wolf
:-)
Despite being in the US for 40 years, I swear English is my 2nd language
:-)  When I used 'we', I meant we were using git and 'I' was using NB's git
plugin (point being we weren't using code review).  Sorry.
tom

On Thu, Jan 2, 2020 at 5:09 PM Emilian Bold  wrote:

> Oh, I didn't realise you are using the royal 'we'. I assumed the whole
> team is on NB (although, fully expecting not the whole company).
>
> 1 out of 2000 seems pretty low though. Are you sure there aren't more
> NB refugees hiding somewhere? Opening the Profiler when no colleague
> is looking.
>
> --emi
>
> On Thu, Jan 2, 2020 at 11:57 PM Thomas Wolf  wrote:
> >
> > ...except that nobody in my company (some 2,000 devs), aside from me,
> uses Netbeans and the IDEs that are used (IntelliJ, Eclipse) do have hooks
> into gerrit.  So they may not be convinced by your calculations :-(
> >
> > Anyway - thanks for the feedback.
> > Tom
> >
> > On Thu, Jan 2, 2020 at 4:48 PM Emilian Bold 
> wrote:
> >>
> >> It's not the answer you are looking for but this would be a perfect
> >> moment for your company to either develop or pay for this:
> >>
> >> 5 team members * 2 commits / day * 5 days / week * 4 weeks * 2 minutes
> >> lost per commit made outside the IDE = 400 minutes / month = 6.5
> >> billable hours wasted every month.
> >>
> >> --emi
> >>
> >>
> >> On Thu, Jan 2, 2020 at 10:55 PM Thomas Wolf  wrote:
> >> >
> >> > We've been happily using git from within NB for a few years.  Now
> corporate insists we use gerrit for code review.  It seems like NB doesn't
> have support for pushing changes for review to gerrit - the only suggestion
> of a hack solution I saw was from 2015 in this stack overflow question:
> >> >
> https://stackoverflow.com/questions/21992512/git-pushing-from-netbeans-to-gerrit
> >> >
> >> > Does anyone know of any solutions that would let me stay within the
> IDE instead of having to face the cruel world of command-line git?
> >> >
> >> > If there's an open feature request ticket for this, I'd happily vote
> for it (or is voting no longer a thing since moving to Apache?)
> >> >
> >> > Thnx a bunch,
> >> > tom
> >> >
> >> > --
> >> > tjw...@gmail.com
> >> >
> >
> >
> >
> > --
> > tjw...@gmail.com
> > http://landofwolf.blogspot.com/
>


-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Anyone know of any gerrit integration?

2020-01-02 Thread Thomas Wolf
...except that nobody in my company (some 2,000 devs), aside from me, uses
Netbeans and the IDEs that are used (IntelliJ, Eclipse) do have hooks into
gerrit.  So they may not be convinced by your calculations :-(

Anyway - thanks for the feedback.
Tom

On Thu, Jan 2, 2020 at 4:48 PM Emilian Bold  wrote:

> It's not the answer you are looking for but this would be a perfect
> moment for your company to either develop or pay for this:
>
> 5 team members * 2 commits / day * 5 days / week * 4 weeks * 2 minutes
> lost per commit made outside the IDE = 400 minutes / month = 6.5
> billable hours wasted every month.
>
> --emi
>
>
> On Thu, Jan 2, 2020 at 10:55 PM Thomas Wolf  wrote:
> >
> > We've been happily using git from within NB for a few years.  Now
> corporate insists we use gerrit for code review.  It seems like NB doesn't
> have support for pushing changes for review to gerrit - the only suggestion
> of a hack solution I saw was from 2015 in this stack overflow question:
> >
> https://stackoverflow.com/questions/21992512/git-pushing-from-netbeans-to-gerrit
> >
> > Does anyone know of any solutions that would let me stay within the IDE
> instead of having to face the cruel world of command-line git?
> >
> > If there's an open feature request ticket for this, I'd happily vote for
> it (or is voting no longer a thing since moving to Apache?)
> >
> > Thnx a bunch,
> > tom
> >
> > --
> > tjw...@gmail.com
> >
>


-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Anyone know of any gerrit integration?

2020-01-02 Thread Thomas Wolf
We've been happily using git from within NB for a few years.  Now corporate
insists we use gerrit for code review.  It seems like NB doesn't have
support for pushing changes for review to gerrit - the only suggestion of a
hack solution I saw was from 2015 in this stack overflow question:
https://stackoverflow.com/questions/21992512/git-pushing-from-netbeans-to-gerrit

Does anyone know of any solutions that would let me stay within the IDE
instead of having to face the cruel world of command-line git?

If there's an open feature request ticket for this, I'd happily vote for it
(or is voting no longer a thing since moving to Apache?)

Thnx a bunch,
tom

-- 
tjw...@gmail.com


Re: Dependent libraries don't get copied?

2019-11-05 Thread Thomas Wolf
Thanks for the heads up!

Incidentally, after I posted my question, I changed my source code level and 
platform to Java 8 and got the old behavior back: the libraries got copied to 
dist/lib/ .  So maybe this bug had to do with Java 9 related changes that came 
with modularization?  Just guessing.

Anyway, i’ll switch to NB 11.2.
Tschüss,
Thomas

> On Nov 5, 2019, at 2:26 AM, Helmut Leininger  wrote:
> 
> 
> I think it is solved in Netbeans 11.2
> 
> Helmut
> 
> Am 05.11.2019 um 03:57 schrieb Thomas Wolf:
>> I'm developing a pretty standard Swing application in Netbeans 11.1 on a 
>> Mac, using Oracle Java 12.0.2+10.  While I was doing day-to-day development, 
>> I told the IDE not to create a jar of the application after every compile.  
>> But now that I'm ready to give this code to someone, I told Netbeans in 
>> Properties->Packaging to create the jar and to copy dependent libraries.  
>> The jar gets created in the dist/ directory, but the dependent libraries do 
>> not get copied over.  I could have sworn that in NB 8 and older, a "lib/" 
>> directory would be created and the dependent jars would be copied there.  
>> Instead I get the following build output:
>> 
>> Created dir: /Users/twolf/NetBeansProjects/SST/dist
>> Copying 1 file to /Users/twolf/NetBeansProjects/SST/build
>> Building jar: /Users/twolf/NetBeansProjects/SST/dist/SST.jar
>> To run this application from the command line without Ant, try:
>> /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java -cp 
>> /Users/twolf/java/jaxb-ri/lib/jaxb-api.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-core.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-impl.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-jxc.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-xjc.jar:/Users/twolf/java/jaxb-ri/lib/javax.activation.jar:/Users/twolf/NetBeansProjects/SST/dist/SST.jar
>>  com.spectare.sst.MainFrame
>> deploy:
>> jar:
>> BUILD SUCCESSFUL (total time: 3 seconds)
>> 
>> Is this a bug or what does "Properties->Packaging->Copy dependent Jars" 
>> actually do?
>> 
>> Thanks,
>> tom
>> -- 
>> tjw...@gmail.com
>> http://landofwolf.blogspot.com/
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Dependent libraries don't get copied?

2019-11-04 Thread Thomas Wolf
I'm developing a pretty standard Swing application in Netbeans 11.1 on a
Mac, using Oracle Java 12.0.2+10.  While I was doing day-to-day
development, I told the IDE not to create a jar of the application after
every compile.  But now that I'm ready to give this code to someone, I told
Netbeans in Properties->Packaging to create the jar and to copy dependent
libraries.  The jar gets created in the dist/ directory, but the dependent
libraries do not get copied over.  I could have sworn that in NB 8 and
older, a "lib/" directory would be created and the dependent jars would be
copied there.  Instead I get the following build output:

Created dir: /Users/twolf/NetBeansProjects/SST/dist
Copying 1 file to /Users/twolf/NetBeansProjects/SST/build
Building jar: /Users/twolf/NetBeansProjects/SST/dist/SST.jar
To run this application from the command line without Ant, try:
/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java -cp
/Users/twolf/java/jaxb-ri/lib/jaxb-api.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-core.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-impl.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-jxc.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-xjc.jar:/Users/twolf/java/jaxb-ri/lib/javax.activation.jar:/Users/twolf/NetBeansProjects/SST/dist/SST.jar
com.spectare.sst.MainFrame
deploy:
jar:
BUILD SUCCESSFUL (total time: 3 seconds)

Is this a bug or what does "Properties->Packaging->Copy dependent Jars"
actually do?

Thanks,
tom
-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Any step-by-step on importing/developing react app in Netbeans?

2019-10-07 Thread Thomas Wolf
Ok, never mind.  I'm already far further than I was before I asked you.  I
can figure out the rest - thanks again for the images - they helped
illuminate how stupid I was :-)
Tom


On Mon, Oct 7, 2019 at 2:18 PM Geertjan Wielenga 
wrote:

> I don’t understand, to be honest, what does keeping src separated from
> generated/dependency stuff mean. I can’t really help with this, you’ll need
> to explain in a lot more detail and also ‘why’ etc.
>
> Gj
>
> On Mon, 7 Oct 2019 at 20:02, Thomas Wolf  wrote:
>
>> Hi Geertjan,
>> Thanks.  It looks like you simply opened that directory as a project?  I
>> was hoping to keep the src separated from the generated/dependency stuff -
>> that's why I was looking to create a new project from one of the existing
>> project templates and put all the nb/dependencies in the NetBeansProjects/
>> folder and just point to 'src' in the my_apps folder in my git repository.
>>
>> If I wanted to do this, would I use   "HTML5/JS Application with Existing
>> Sources" or "Node.js Application with Existing Sources"?
>>
>> Thanks again,
>> Tom
>>
>> On Mon, Oct 7, 2019 at 11:37 AM Geertjan Wielenga 
>> wrote:
>>
>>> https://github.com/geertjanw/pics/blob/master/react-in-nb-1.png
>>>
>>> https://github.com/geertjanw/pics/blob/master/react-in-nb-2.png
>>>
>>> Hope it helps.
>>>
>>> Gj
>>>
>>> On Mon, Oct 7, 2019 at 3:12 PM Thomas Wolf  wrote:
>>>
>>>> Hi Geertjan,
>>>> That would be great - thanks!
>>>> I don't have my src on GitHub, but this directory structure is created
>>>> by React's sample application generator using cmd "npx create-react-app
>>>> app" (see
>>>> https://reactjs.org/docs/create-a-new-react-app.html#create-react-app
>>>> ).
>>>>
>>>> Tom
>>>>
>>>>
>>>> On Sat, Oct 5, 2019 at 4:43 AM Geertjan Wielenga 
>>>> wrote:
>>>>
>>>>> If you can point to this or a similar source structure on GitHub, I’ll
>>>>> make a YouTube clip showing how to set it up in Apache NetBeans.
>>>>>
>>>>> Gj
>>>>>
>>>>> On Fri, 4 Oct 2019 at 22:12, Thomas Wolf  wrote:
>>>>>
>>>>>> Hey everyone,
>>>>>> I'm just getting my feet wet with web-based application development
>>>>>> (but decades of Java dev experience using NB) and, up to this point, have
>>>>>> been using NB mainly as an editor for my first React app.
>>>>>>
>>>>>> The react application is working fine - with a standard react app
>>>>>> directory structure:
>>>>>>
>>>>>> app/
>>>>>>  build/
>>>>>>  node_modules/
>>>>>>  public/
>>>>>>  src/
>>>>>>  package.json
>>>>>>
>>>>>> My simple development cycle has been to start the app via 'npm start'
>>>>>> and, as I update the files in src/ using Netbeans (via "Favorites" 
>>>>>> window),
>>>>>> npm server picks up the changes and reloads the browser with my app.
>>>>>>
>>>>>> Debugging's basically been done by adding console.log messages :-(  I
>>>>>> would love to debug from within the IDE instead.  Is that even feasible 
>>>>>> or
>>>>>> must I rely on the browser-based debuggers?
>>>>>>
>>>>>> Is there a way I can create a NB project of the appropriate type from
>>>>>> "existing" source?  If so, which project template should I use?  Someone
>>>>>> suggested using "Node.js Application with Existing Source", but what do I
>>>>>> specify for "Source Folder"?  I tried both "app" and "src", but NB 
>>>>>> doesn't
>>>>>> like either.  When I click "Finish", NB just shows some warning msg for a
>>>>>> split second (too short to read) and stays on that screen.
>>>>>>
>>>>>> Clicking "Help" on this screen does nothing except produce a thud
>>>>>> sound :-(
>>>>>>
>>>>>> I'm on NB 11.0 on a Mac (macOS 10.14.6)  w. Java 11.03.  NB's working
>>>>>> fine for my Java-based projects.
>>>>>>
>>>>>> Any help/steps would be much appreciated.
>>>>>> Tom
>>>>>>
>>>>>>
>>>>>> --
>>>>>> tjw...@gmail.com
>>>>>> http://landofwolf.blogspot.com/
>>>>>>
>>>>>
>>>>
>>>> --
>>>> tjw...@gmail.com
>>>> http://landofwolf.blogspot.com/
>>>>
>>>
>>
>> --
>> tjw...@gmail.com
>> http://landofwolf.blogspot.com/
>>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Any step-by-step on importing/developing react app in Netbeans?

2019-10-07 Thread Thomas Wolf
Hi Geertjan,
Thanks.  It looks like you simply opened that directory as a project?  I
was hoping to keep the src separated from the generated/dependency stuff -
that's why I was looking to create a new project from one of the existing
project templates and put all the nb/dependencies in the NetBeansProjects/
folder and just point to 'src' in the my_apps folder in my git repository.

If I wanted to do this, would I use   "HTML5/JS Application with Existing
Sources" or "Node.js Application with Existing Sources"?

Thanks again,
Tom

On Mon, Oct 7, 2019 at 11:37 AM Geertjan Wielenga 
wrote:

> https://github.com/geertjanw/pics/blob/master/react-in-nb-1.png
>
> https://github.com/geertjanw/pics/blob/master/react-in-nb-2.png
>
> Hope it helps.
>
> Gj
>
> On Mon, Oct 7, 2019 at 3:12 PM Thomas Wolf  wrote:
>
>> Hi Geertjan,
>> That would be great - thanks!
>> I don't have my src on GitHub, but this directory structure is created by
>> React's sample application generator using cmd "npx create-react-app app"
>> (see
>> https://reactjs.org/docs/create-a-new-react-app.html#create-react-app ).
>>
>> Tom
>>
>>
>> On Sat, Oct 5, 2019 at 4:43 AM Geertjan Wielenga 
>> wrote:
>>
>>> If you can point to this or a similar source structure on GitHub, I’ll
>>> make a YouTube clip showing how to set it up in Apache NetBeans.
>>>
>>> Gj
>>>
>>> On Fri, 4 Oct 2019 at 22:12, Thomas Wolf  wrote:
>>>
>>>> Hey everyone,
>>>> I'm just getting my feet wet with web-based application development
>>>> (but decades of Java dev experience using NB) and, up to this point, have
>>>> been using NB mainly as an editor for my first React app.
>>>>
>>>> The react application is working fine - with a standard react app
>>>> directory structure:
>>>>
>>>> app/
>>>>  build/
>>>>  node_modules/
>>>>  public/
>>>>  src/
>>>>  package.json
>>>>
>>>> My simple development cycle has been to start the app via 'npm start'
>>>> and, as I update the files in src/ using Netbeans (via "Favorites" window),
>>>> npm server picks up the changes and reloads the browser with my app.
>>>>
>>>> Debugging's basically been done by adding console.log messages :-(  I
>>>> would love to debug from within the IDE instead.  Is that even feasible or
>>>> must I rely on the browser-based debuggers?
>>>>
>>>> Is there a way I can create a NB project of the appropriate type from
>>>> "existing" source?  If so, which project template should I use?  Someone
>>>> suggested using "Node.js Application with Existing Source", but what do I
>>>> specify for "Source Folder"?  I tried both "app" and "src", but NB doesn't
>>>> like either.  When I click "Finish", NB just shows some warning msg for a
>>>> split second (too short to read) and stays on that screen.
>>>>
>>>> Clicking "Help" on this screen does nothing except produce a thud sound
>>>> :-(
>>>>
>>>> I'm on NB 11.0 on a Mac (macOS 10.14.6)  w. Java 11.03.  NB's working
>>>> fine for my Java-based projects.
>>>>
>>>> Any help/steps would be much appreciated.
>>>> Tom
>>>>
>>>>
>>>> --
>>>> tjw...@gmail.com
>>>> http://landofwolf.blogspot.com/
>>>>
>>>
>>
>> --
>> tjw...@gmail.com
>> http://landofwolf.blogspot.com/
>>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Any step-by-step on importing/developing react app in Netbeans?

2019-10-07 Thread Thomas Wolf
Hi Geertjan,
That would be great - thanks!
I don't have my src on GitHub, but this directory structure is created by
React's sample application generator using cmd "npx create-react-app app"
(see https://reactjs.org/docs/create-a-new-react-app.html#create-react-app
).

Tom


On Sat, Oct 5, 2019 at 4:43 AM Geertjan Wielenga 
wrote:

> If you can point to this or a similar source structure on GitHub, I’ll
> make a YouTube clip showing how to set it up in Apache NetBeans.
>
> Gj
>
> On Fri, 4 Oct 2019 at 22:12, Thomas Wolf  wrote:
>
>> Hey everyone,
>> I'm just getting my feet wet with web-based application development (but
>> decades of Java dev experience using NB) and, up to this point, have been
>> using NB mainly as an editor for my first React app.
>>
>> The react application is working fine - with a standard react app
>> directory structure:
>>
>> app/
>>  build/
>>  node_modules/
>>  public/
>>  src/
>>  package.json
>>
>> My simple development cycle has been to start the app via 'npm start'
>> and, as I update the files in src/ using Netbeans (via "Favorites" window),
>> npm server picks up the changes and reloads the browser with my app.
>>
>> Debugging's basically been done by adding console.log messages :-(  I
>> would love to debug from within the IDE instead.  Is that even feasible or
>> must I rely on the browser-based debuggers?
>>
>> Is there a way I can create a NB project of the appropriate type from
>> "existing" source?  If so, which project template should I use?  Someone
>> suggested using "Node.js Application with Existing Source", but what do I
>> specify for "Source Folder"?  I tried both "app" and "src", but NB doesn't
>> like either.  When I click "Finish", NB just shows some warning msg for a
>> split second (too short to read) and stays on that screen.
>>
>> Clicking "Help" on this screen does nothing except produce a thud sound
>> :-(
>>
>> I'm on NB 11.0 on a Mac (macOS 10.14.6)  w. Java 11.03.  NB's working
>> fine for my Java-based projects.
>>
>> Any help/steps would be much appreciated.
>> Tom
>>
>>
>> --
>> tjw...@gmail.com
>> http://landofwolf.blogspot.com/
>>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Any step-by-step on importing/developing react app in Netbeans?

2019-10-04 Thread Thomas Wolf
Hey everyone,
I'm just getting my feet wet with web-based application development (but
decades of Java dev experience using NB) and, up to this point, have been
using NB mainly as an editor for my first React app.

The react application is working fine - with a standard react app directory
structure:

app/
 build/
 node_modules/
 public/
 src/
 package.json

My simple development cycle has been to start the app via 'npm start' and,
as I update the files in src/ using Netbeans (via "Favorites" window), npm
server picks up the changes and reloads the browser with my app.

Debugging's basically been done by adding console.log messages :-(  I would
love to debug from within the IDE instead.  Is that even feasible or must I
rely on the browser-based debuggers?

Is there a way I can create a NB project of the appropriate type from
"existing" source?  If so, which project template should I use?  Someone
suggested using "Node.js Application with Existing Source", but what do I
specify for "Source Folder"?  I tried both "app" and "src", but NB doesn't
like either.  When I click "Finish", NB just shows some warning msg for a
split second (too short to read) and stays on that screen.

Clicking "Help" on this screen does nothing except produce a thud sound :-(

I'm on NB 11.0 on a Mac (macOS 10.14.6)  w. Java 11.03.  NB's working fine
for my Java-based projects.

Any help/steps would be much appreciated.
Tom


-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: The last straw

2019-09-28 Thread Thomas Wolf
Cameron,
I think you’re severely mischaracterizing the situation - NB hasn’t lost its 
way, but it has lost corporate sponsorship.

In the old days, Sun, flush with cash and a desire to promote Java, bought the 
little startup from Europe and provided the financial resources to make it  
flourish.  I think the turning point for NB came when Oracle bought Sun.   I 
think Java in general and NB in particular weren’t important to the Database 
giant.  Java itself didn’t suffer much as it had become one of the top 
languages of the world and millions of developers and thousands of 
organizations depended on it and were, thus, willing to support its continued 
growth.  But NB, even in the days of Sun, had to compete with other IDEs - 
initially Symantec’s Visual Cafe and later IntelliJ and Eclipse.  The latter, 
“free” like NB, became the 800lb gorilla in the room.  Always supported by IBM 
and then also other companies.  But NB managed to hold its own until Oracle 
decided to no longer support it at the level it needed.  IMO, the spin-off to 
Apache was just Oracle trying to shed itself of this “cost center” and try to 
have the folks that use NB become more responsible for its future.

I applaud the devs who came from Sun & Oracle to continue to diligently direct 
NB’s development and future.  But it’s up to to its users to make this work.  
If you need a feature, don’t simply complain about it not being there - help 
develop it!  Otherwise you’re really just a whining freeloader.

If you helped work to make NB better, goodbye.  Otherwise, goodbye and good 
riddance.

Tom Wolf
(another freeloader - but one who’s not whining.)

> On Sep 28, 2019, at 11:05 AM, Alan Cameron 
>  wrote:
> 
> 
> Hi All,
>  
> Walter Oney’s email is the last straw for me.
>  
> I had been a user of NetBeans 8.2 , using it for self-training in C, C++ and 
> PHP when this Apache incubation thing started and NetBeans 8.2 was dropped 
> from any sort of support. I have been watching the emails to this list with 
> increasing worries that it would never get around to PHP let alone C, C++.
>  
> The organisation has lost its way and is not helping itself by diverging from 
> some sort of common ground.
>  
> A radical rethink is long overdue and I wonder how commercial shops can stand 
> the ever mounting problems with this and that. I am surprised there are any 
> commercial users left using NetBeans.
>  
> I will be cancelling my subscription to this and other list tarred with the 
> Apache name.
>  
> Goodbye.
>  
> From Alan Cameron
> Please reply to alan.camer...@virginmedia.com
>  


Re: Loading and Displaying Images

2019-09-17 Thread Thomas Wolf
The java development kit comes with the 'jar' command (the example of how
to do it uses that; on Unix machines the "diff" command lets you view
differences between two files).  from a command-prompt, you would type "jar
tf theNameOfYourWorkingJarFile" to see a listing of all the classes in that
jar file.

Hope that helps,
Tom

On Tue, Sep 17, 2019 at 11:20 AM Judi Rastall  wrote:

> Tom,
>
> How do I look at the contents of a jar file? Is there a jar file viewer or
> decompiler?
>
> Judi
>
> On 17/09/2019 16:03, Thomas Wolf wrote:
>
> Judi,
> I would compare the contents of your jar files - the one that works vs.
> the one that now doesn't work.  i.e. jar tf workginJarFile.jar > l1; jar tf
> nonWorkingJarFile.jar > l2; diff l1 l2.  This might help you see if, for
> whatever reason, the images didn't make it into your current jar file.
>
> Good luck.
> Tom
>
>
> On Tue, Sep 17, 2019 at 9:59 AM Judi Rastall  wrote:
>
>> I am working on an application that needs to load various images and
>> there seem to be a million different ways to do this in the examples I have
>> found online. The method I have found to work most reliably until recently
>> is this:
>>
>> LogoLabel.setIcon(new
>> javax.swing.ImageIcon(getClass().getResource("Images/WF5_200.gif")));
>>
>> This is part of the setting up of a JLabel within a JPanel and it runs
>> perfectly well within NetBeans. I thought I was doing quite well and have
>> managed to call other functions from JButtons in the main app.
>>
>> At various times I have built (compiled) the project to a jar file and
>> have tested it to see that it runs OK under the runtime engine. So far so
>> good. However, in recent weeks the jar file has stopped running. It builds
>> with no error messages but if I run it from my desktop shortcut the cursor
>> shows "waiting" for a couple of seconds and then reverts to normal and
>> nothing else happens. If I run it from the command line within the \dist\
>> directory I can see an "Unknown Source" error message followed by a pointer
>> to the line of code above that loads the gif file. It appears to me that
>> the compile/build function cannot interpret the file location. I have tried
>> placing a copy of the image in the same directory as the source java file
>> (and removing the images\ path) but still no joy.
>>
>> Now here's the strange thing. Until the end of August it would build and
>> run OK. I was able to retrieve the previous jar file from my backup and it
>> still runs perfectly well.
>>
>> I cannot understand what has changed and would be grateful for any
>> suggestions as to where I might look to solve this very frustrating problem.
>>
>> With thanks,
>>
>> Judi R
>>
>>
>>
>>
>
> --
> tjw...@gmail.com
> http://landofwolf.blogspot.com/
>
>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Loading and Displaying Images

2019-09-17 Thread Thomas Wolf
Judi,
I would compare the contents of your jar files - the one that works vs. the
one that now doesn't work.  i.e. jar tf workginJarFile.jar > l1; jar tf
nonWorkingJarFile.jar > l2; diff l1 l2.  This might help you see if, for
whatever reason, the images didn't make it into your current jar file.

Good luck.
Tom


On Tue, Sep 17, 2019 at 9:59 AM Judi Rastall  wrote:

> I am working on an application that needs to load various images and there
> seem to be a million different ways to do this in the examples I have found
> online. The method I have found to work most reliably until recently is
> this:
>
> LogoLabel.setIcon(new
> javax.swing.ImageIcon(getClass().getResource("Images/WF5_200.gif")));
>
> This is part of the setting up of a JLabel within a JPanel and it runs
> perfectly well within NetBeans. I thought I was doing quite well and have
> managed to call other functions from JButtons in the main app.
>
> At various times I have built (compiled) the project to a jar file and
> have tested it to see that it runs OK under the runtime engine. So far so
> good. However, in recent weeks the jar file has stopped running. It builds
> with no error messages but if I run it from my desktop shortcut the cursor
> shows "waiting" for a couple of seconds and then reverts to normal and
> nothing else happens. If I run it from the command line within the \dist\
> directory I can see an "Unknown Source" error message followed by a pointer
> to the line of code above that loads the gif file. It appears to me that
> the compile/build function cannot interpret the file location. I have tried
> placing a copy of the image in the same directory as the source java file
> (and removing the images\ path) but still no joy.
>
> Now here's the strange thing. Until the end of August it would build and
> run OK. I was able to retrieve the previous jar file from my backup and it
> still runs perfectly well.
>
> I cannot understand what has changed and would be grateful for any
> suggestions as to where I might look to solve this very frustrating problem.
>
> With thanks,
>
> Judi R
>
>
>
>

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


Re: Releasing a Netbeans platform application to the general public

2019-09-15 Thread Thomas Wolf
I can’t speak for general users, but in enterprises you can’t assume Java - 
much less an ancient one like 7.   I don’t even think that’s available for 
download anymore, is it?  If that’s all you’ve tested with, i think you’d have 
to include it with your installation.

Just my opinion, of course.
tom

> On Sep 15, 2019, at 11:22 AM, Jerome Lelasseux  
> wrote:
> 
> 
> Hello,
> 
> I develop in my spare time a Netbeans platform music application targeted at 
> individual musicians (professional or amateur). The application is based on 
> NB11/Java7. I test it on Win10(x64) and on a Linux Mint distribution, though 
> I expect most of the users will be on Windows. At the beginning I won't 
> release a Mac version.
> 
> In a few weeks I will put it online for the first time, and I'm interested to 
> get recommendations from experienced people regarding possible 
> installation/configuration problems on user machines.
> 
> For example is it realistic to assume that most users will have Oracle JRE7 
> already installed ? Is it better to embed a JRE in my download package ? etc.
> 
> Thanks
> Jerome
> 
> 
> 
> 
> 


Re: NB 11 crashes on Mac

2019-04-17 Thread Thomas Wolf
Thanks Wade.  Next time this happens, I will be sure to copy/paste the
entire JVM stack trace that gets shown when "Report..." is selected.
That'll at least tell us if it's the same 2d bug.
tom

On Wed, Apr 17, 2019 at 3:11 PM Wade Chandler 
wrote:

> See this too
> https://lists.apache.org/thread.html/6cea044b220876ef9eba9068e3ec28bb8283e116b65e3ea4078af9c1@%3Cusers.netbeans.apache.org%3E
>
> I was thinking perhaps it was due to an older JDK build, but we were
> talking 1.8 range, and with you having it in Java 11 then not sure. The
> linked Java 2D bug is still open, so this may be an opportunity for us to
> try to track it down.
>
> Wade
>
> On Apr 17, 2019, at 2:58 PM, Thomas Wolf  wrote:
>
> Yes, this doesn't happen on a regular basis.  I upgraded to NB 11 a few
> weeks ago and it's happened 3-4 times so far.  And it invariably happens
> while NB is not even being used (e.g. a bit after I come in to work,
> reconnecting my 2 external monitors to my MBP and while I'm reading news or
> mail; NB is iconified or hidden behind the current window.)  I'm not even
> sure whether NB 11 is to blame or the JRE.  When I switched from NB 8.2 to
> NB 11, I also switched from a Java 8 VM to a Java 11 VM - maybe it's a bug
> in the VM.  When a VM crashes on a Mac, does it produce a core dump
> somewhere?
>
> Thnx,
> Tom
>
> On Wed, Apr 17, 2019 at 2:08 PM Geertjan Wielenga 
> wrote:
>
>> If you can provide a way for the problem to be reproduced, or the log
>> files exactly at the moment where the crash happens, we can try to
>> investigate.
>>
>> But if I understand it correctly, this only happens after you’re using
>> multiple monitors, switching things off, switching things on, leaving work,
>> coming home, switching off and on, and a few other things like that?
>>
>> Gj
>>
>> On Wed, 17 Apr 2019 at 13:36, Thomas Wolf  wrote:
>>
>>> Hi Geertjan,
>>> This was a crash of the NB JVM, so I didn't think NB would have had an
>>> opportunity to write anything before it croaked.  But I went to Application
>>> Support/NetBeans/11.0/var/log and checked there to see if there was the
>>> equivalent of a core dump.  But just the messages.  Since  I had restarted
>>> NB since the crash, I looked in messages.log.1 to see if there were any
>>> messages prior to the crash.  Looking back a couple hundred lines back from
>>> the end of the log, I see:
>>>   WARNING
>>> [org.netbeans.modules.javascript2.editor.formatter.FormatContext]: Tried to
>>> remove EOL
>>>   WARNING [null]: Last record repeated again.
>>>   WARNING [null]: Last record repeated again.
>>>
>>> followed by 167 WARNING messages like this:
>>>   WARNING
>>> [org.netbeans.modules.editor.bracesmatching.MasterMatcher]: Origin offsets
>>> out of range, origin = [671, 698], caretOffset = 727,
>>>   lookahead = 1, searching forward. Offending BracesMatcher:
>>> org.netbeans.modules.html.editor.HtmlBracesMatching@1293bde1
>>>
>>> with only the coordinates & the caretOffset changing.  Followed by the
>>> WARNING message:
>>>   WARNING [org.netbeans.modules.versioning.util.Utils]:
>>> associateEncoding() no file object available for
>>>
>>> /var/folders/gz/86n0ss0j65q2v4mk50wfnx8hgn/T/vcs-1555092873422/vcs-1555362477084/index.html
>>>
>>> followed by the WARNING message:
>>>   WARNING [org.netbeans.core.TimableEventQueue]: too much time
>>> in AWT thread null
>>>
>>> followed by three WARNING messages like this one:
>>>   WARNING [org.netbeans.core.TimableEventQueue]: too much time
>>> in AWT thread org.netbeans.modules.sampler.InternalSampler@662b36a1
>>>
>>> That's it.  Since there are no time stamps on any of these entries, I
>>> have no idea whether these happened just before the crash or hours/days
>>> before.  Is there anywhere else I should/could be looking for clues?  Is
>>> this info enough to go on to open a Jira ticket?
>>>
>>> Thanks,
>>> Tom
>>> p.s. here's the beginning of the log file:
>>>
>>> >Log Session: Friday, April 12, 2019 at 2:14:24 PM Eastern Daylight Time
>>> >System Info:
>>>   Product Version = Apache NetBeans IDE 11.0 (Build
>>> incubator-netbeans-release-404-on-20190319)
>>>   Operating System= Mac OS X version 10.14.4 running on x86_64
>>>   Java; VM; Vendor= 11.0.1; Java HotSpot(T

Re: NB 11 crashes on Mac

2019-04-17 Thread Thomas Wolf
Yes, this doesn't happen on a regular basis.  I upgraded to NB 11 a few
weeks ago and it's happened 3-4 times so far.  And it invariably happens
while NB is not even being used (e.g. a bit after I come in to work,
reconnecting my 2 external monitors to my MBP and while I'm reading news or
mail; NB is iconified or hidden behind the current window.)  I'm not even
sure whether NB 11 is to blame or the JRE.  When I switched from NB 8.2 to
NB 11, I also switched from a Java 8 VM to a Java 11 VM - maybe it's a bug
in the VM.  When a VM crashes on a Mac, does it produce a core dump
somewhere?

Thnx,
Tom

On Wed, Apr 17, 2019 at 2:08 PM Geertjan Wielenga 
wrote:

> If you can provide a way for the problem to be reproduced, or the log
> files exactly at the moment where the crash happens, we can try to
> investigate.
>
> But if I understand it correctly, this only happens after you’re using
> multiple monitors, switching things off, switching things on, leaving work,
> coming home, switching off and on, and a few other things like that?
>
> Gj
>
> On Wed, 17 Apr 2019 at 13:36, Thomas Wolf  wrote:
>
>> Hi Geertjan,
>> This was a crash of the NB JVM, so I didn't think NB would have had an
>> opportunity to write anything before it croaked.  But I went to Application
>> Support/NetBeans/11.0/var/log and checked there to see if there was the
>> equivalent of a core dump.  But just the messages.  Since  I had restarted
>> NB since the crash, I looked in messages.log.1 to see if there were any
>> messages prior to the crash.  Looking back a couple hundred lines back from
>> the end of the log, I see:
>>   WARNING
>> [org.netbeans.modules.javascript2.editor.formatter.FormatContext]: Tried to
>> remove EOL
>>   WARNING [null]: Last record repeated again.
>>   WARNING [null]: Last record repeated again.
>>
>> followed by 167 WARNING messages like this:
>>   WARNING
>> [org.netbeans.modules.editor.bracesmatching.MasterMatcher]: Origin offsets
>> out of range, origin = [671, 698], caretOffset = 727,
>>   lookahead = 1, searching forward. Offending BracesMatcher:
>> org.netbeans.modules.html.editor.HtmlBracesMatching@1293bde1
>>
>> with only the coordinates & the caretOffset changing.  Followed by the
>> WARNING message:
>>   WARNING [org.netbeans.modules.versioning.util.Utils]:
>> associateEncoding() no file object available for
>>
>> /var/folders/gz/86n0ss0j65q2v4mk50wfnx8hgn/T/vcs-1555092873422/vcs-1555362477084/index.html
>>
>> followed by the WARNING message:
>>   WARNING [org.netbeans.core.TimableEventQueue]: too much time in
>> AWT thread null
>>
>> followed by three WARNING messages like this one:
>>   WARNING [org.netbeans.core.TimableEventQueue]: too much time in
>> AWT thread org.netbeans.modules.sampler.InternalSampler@662b36a1
>>
>> That's it.  Since there are no time stamps on any of these entries, I
>> have no idea whether these happened just before the crash or hours/days
>> before.  Is there anywhere else I should/could be looking for clues?  Is
>> this info enough to go on to open a Jira ticket?
>>
>> Thanks,
>> Tom
>> p.s. here's the beginning of the log file:
>>
>> >Log Session: Friday, April 12, 2019 at 2:14:24 PM Eastern Daylight Time
>> >System Info:
>>   Product Version = Apache NetBeans IDE 11.0 (Build
>> incubator-netbeans-release-404-on-20190319)
>>   Operating System= Mac OS X version 10.14.4 running on x86_64
>>   Java; VM; Vendor= 11.0.1; Java HotSpot(TM) 64-Bit Server VM
>> 11.0.1+13-LTS; Oracle Corporation
>>   Runtime = Java(TM) SE Runtime Environment 11.0.1+13-LTS
>>   Java Home   =
>> /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
>>   System Locale; Encoding = en_US (nb); UTF-8
>>   Home Directory  = /Users/thwolf
>>   Current Directory   = /
>>
>>
>> On Wed, Apr 17, 2019 at 11:55 AM Geertjan Wielenga 
>> wrote:
>>
>>> You’re always going to find NetBeans messages and log files in the user
>>> directory.
>>>
>>> Gj
>>>
>>>
>>> On Wed, 17 Apr 2019 at 11:47, Thomas Wolf  wrote:
>>>
>>>> Thanks Josh for your environment.  Here's mine (should have included
>>>> that with my initial post):
>>>> Build incubator-netbeans-release-404-on-20190319)
>>>> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
>>>> Runtime: Java(TM) SE Runtime Environment 11

  1   2   >