Re: Package x is declared in module y which is not in the module graph

2022-01-15 Thread John Mc
Could this be related to the Java Module System from Java 9+?

Not used JMSmyself, just guessing here...

John

On Sat 15 Jan 2022, 22:01 Jack W.,  wrote:

>
> Not sure what's exporting to what, then.
> This is a one-file project.
> What is the brilliant idea here that I am missing by which Java imports
> work completely differently than they have for almost 30 years?
>
> On Sat, Jan 15, 2022 at 12:40 PM Mark A. Flacy 
> wrote:
>
>> Greetings,
>>
>> That's not a maven error message but one from javac.
>>
>> --
>> Mark A. Flacy
>> mfl...@verizon.net
>>
>> On 2022 M01 15, Sat 13:00:40 CST Jack W. wrote:
>> > Doesn't seem relevant, I'm not using Maven.
>> >
>> >
>> > On Sat, Jan 15, 2022 at 10:49 AM Mark A. Flacy
>> 
>> >
>> > wrote:
>> > > Greetings,
>> > >
>> > >
>> > >
>> https://stackoverflow.com/questions/57421537/java-11-package-is-declared-i
>> > > n-module-which-does-not-export-it
>> > >
>> > > --
>> > >
>> > > Mark A. Flacy
>> > >
>> > > mfl...@verizon.net
>> > >
>> > > On 2022 M01 15, Sat 10:53:21 CST Jack W. wrote:
>> > > > NB 12.6 downloaded today:
>> > > >
>> > > >
>> > > >
>> > > > I started a project and added the dependent jars to the libraries
>> in the
>> > > >
>> > > > Properties dialog.
>> > > >
>> > > >
>> > > >
>> > > > But when I do an import I get the message:
>> > > >
>> > > >
>> > > >
>> > > > Package *x* is declared in module *y* which is not in the module
>> graph
>> > > >
>> > > >
>> > > >
>> > > > I've been using NetBeans since Xelfi and have never seen this
>> before.
>> > > >
>> > > > What is a "module graph"?
>> > > >
>> > > > How do I fix this?
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Jack Woehr   # If it doesn't work in Firefox,
>> > > >
>> > > > Box 51, Golden CO 80402  # it's broken.
>> > > >
>> > > > http://www.softwoehr.com # Just Say No to Chrome.
>> >
>> > --
>> > Jack Woehr   # If it doesn't work in Firefox,
>> > Box 51, Golden CO 80402  # it's broken.
>> > http://www.softwoehr.com # Just Say No to Chrome.
>>
>>
>>
>>
>>
>> -
>> 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
>>
>>
>
> --
> Jack Woehr   # If it doesn't work in Firefox,
> Box 51, Golden CO 80402  # it's broken.
> http://www.softwoehr.com # Just Say No to Chrome.
>


Re: KEYS file

2021-11-05 Thread John Mc
Hi

The Vote threads are emails...

But you can kind links to the KEYS file in the Downloads page on the
website:
Here's where the link is for the 12.5 download:
[image: image.png]

While here is where the link is for the 12.0 download:
[image: image.png]

Hope this helps

John

On Fri, 5 Nov 2021 at 12:42, Jack W.  wrote:

>
>
> On Thu, Nov 4, 2021 at 12:13 AM John Mc  wrote:
>
>> Same place it's always been, I believe:
>> https://dist.apache.org/repos/dist/release/netbeans/KEYS
>>
>> If you search for previous vote threads it's usually included in the
>> first post.
>>
>
> Should there be some navigation from the Downloads page rather than making
> the user search?
>
> --
> ---
> 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: KEYS file

2021-11-04 Thread John Mc
Same place it's always been, I believe:
https://dist.apache.org/repos/dist/release/netbeans/KEYS

If you search for previous vote threads it's usually included in the first
post.

Regards

John

On Thu 4 Nov 2021, 03:23 Jack W.,  wrote:

> Where is the pgp KEYS file hiding these days?
>
> --
> ---
> 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: slightly off-topic: Can someone with BigSur or older help me out?

2021-10-18 Thread John Mc
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: [External] : Re: removing the "new project" support for Ant projects

2021-04-22 Thread John Mc
Just keep it simple:

"Apache NetBeans recommends for beginners creating new projects with modern
build/dependency frameworks like Maven or Gradle"

I wouldn't include a reference, warning of its potential removal, since
that's not been the common consensus here...

Regards

John

On Thu, 22 Apr 2021 at 08:32, Ewan Slater  wrote:

> I think a warning message that:
>
>1. Recommends Maven or Gradle
>2. Warns that Ant project creating may be removed in a future release.
>
> My €0.02
> --
> *From:* Geertjan Wielenga 
> *Sent:* 22 April 2021 08:15
> *Cc:* users@netbeans.apache.org 
> *Subject:* [External] : Re: removing the "new project" support for Ant
> projects
>
> Hi all,
>
> I don’t think we’re going to resolve this, several people in this
> discussion don’t understand the key point with which this thread started:
> should we consider downplaying the prominence of Ant by removing from
> NetBeans the ability to create new Ant projects (while keeping all other
> Ant functionality).
>
> The previous time we had this discussion we solved it by moving Maven and
> Gradle projects above Ant projects, as descrbed here:
>
>
> https://blogs.apache.org/netbeans/entry/restructuring-of-project-templates-in
> 
>
> A next step (very simple) could be to change all the desciptions of Ant
> projects in the New Project wizard to a warning message stating that
> NetBeans recommends usage of Maven or Gradle instead of Ant.
>
> Thanks,
>
> Gj
>
> On Thu, 22 Apr 2021 at 08:30, Bilu  wrote:
>
> +1 for not removing Ant support or Ant New project creation.
>
> I personnally still use Ant for my projects
> Le 22/04/2021 à 03:40, Owen Thomas a écrit :
>
> If one wants to create an Ant project from within NetBeans, then one
> should be able to do that.
>
> I've encountered both Maven and Gradle (Gradle when developing for Android
> on IntelliJ... another anecdote about frustration), and I can see their use
> when one has to manage one's code base against differing versions of third
> party libraries. That's great, but if one is merely doing something small,
> especially something that might showcase some feature of SE without
> bringing in functionality of third party libraries, Ant leaves the
> developer alone to do that. All the stuff that Gradle and Maven introduce
> to one's build script becomes useless boilerplate - a distraction
> especially when one merely wants to demonstrate or learn a feature of the
> SE API and perhaps even to grasp some of the necessity of the build script
> itself.
>
> It's not difficult to move a project to Maven or Gradle or any other build
> script. Copy one's /src directory from the Ant project to the appropriate
> directory of the destination project (maybe set a main class) and off you
> go. Novice developers can easily be scared into withdrawal by
> considerations that are not salient to their aims, and the distractions
> that Maven/Gradle build scripts introduce can only encourage withdrawal
> into those developers who are trying to navigate this world alone. I would
> consider it a backward step if NB were to adopt the position of other IDEs
> and appropriate an air of superiority around the choice of build script.
> Because nothing more than an air of superiority is projected by an IDE that
> doesn't permit the creation of Ant projects.
>
> I like Ant. Ant is good. Leave Ant alone.
>
> Done.
>
>   Owen.
>
>


Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread John Mc
Geertjans link shows you how to use NetBeans to connect to a Java Derby
Server. But there was one key thing in that link. The JDBC connection
string for NetBeans to connect to that database.

Taking that knowledge you could look at the link I sent on. Replace the
usual connection string with the knowledge from Geertjans link (and you may
need to include a derby jar into your swing project's classpath) and you
should be well on the way to solving the initial ask...

John

On Sun 14 Mar 2021, 20:23 Geertjan Wielenga,
 wrote:

>
> https://www.sis.pitt.edu/mbsclass/is2560/resources/UsingDerbyandDBMSinServlets.pdf
>
> Gj
>
> On Sun, Mar 14, 2021 at 9:18 PM Amy Wolf  wrote:
>
>> John: I have been googling. The problem is that the page Gertjan referred
>> to shows how to insert ALREADY EXISTING DATA into a table.
>>
>> My goal is to take the data from the JAVA form and have it insert into
>> the Derby table every time a user comes along and fills it out.
>>
>> Thanks.
>>
>> On 2021/03/14 20:10:35, John Mc  wrote:
>> > Amy,
>> >
>> > Have you tried googling?
>> >
>> > A quick search found me:
>> >
>> https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1
>> >
>> >
>> > This shows you a simple swing application with MySQL. If you couple this
>> > with Geertjan's link it should get you what you want...
>> >
>> > Regards
>> >
>> > John
>> >
>> >
>> > On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
>> >  wrote:
>> >
>> > > https://netbeans.apache.org/kb/docs/ide/java-db.html
>> > >
>> > > Gj
>> > >
>> > > On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
>> > >
>> > >> Could someone please provide sample Java code f9or NetBeans to
>> capture
>> > >> data filled out in NB form into a Java derby database? OS is Windows
>> 10 --
>> > >> latest version of NetBeans.
>> > >>
>> > >> URGENT!
>> > >>
>> > >> Thanks.
>> > >>
>> > >> -
>> > >> 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: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread John Mc
Amy,

Have you tried googling?

A quick search found me:
https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1


This shows you a simple swing application with MySQL. If you couple this
with Geertjan's link it should get you what you want...

Regards

John


On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
 wrote:

> https://netbeans.apache.org/kb/docs/ide/java-db.html
>
> Gj
>
> On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
>
>> Could someone please provide sample Java code f9or NetBeans to capture
>> data filled out in NB form into a Java derby database? OS is Windows 10 --
>> latest version of NetBeans.
>>
>> URGENT!
>>
>> Thanks.
>>
>> -
>> 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: runtime platform option missing

2021-01-14 Thread John Mc
Hi,

I'd guess it's because in the youtube video, they created an Ant based Java
Application in NetBeans 8, while in Apache NetBean 12.X Maven is the
default build tool when you create a new Java Application.

When I create a new Ant based java project I have that option in the
project's properties.

Regards

John



On Thu, 14 Jan 2021 at 22:13, Som Lima  wrote:

> Hi,
>
> I was following this video on how to use netbeans 12.1 for  remote Java
> raspberry pi development.
>
> https://www.youtube.com/watch?v=MwymxhTjfYc
>
> In the video netbeans 8.0.2 is being used I am using netbeans 12.1.
>
> As you can see I cannot select runtime platform in the project
> properties-> run window because that option is missing.
>
>
>
>
>
> -
> 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: NB12 - debugger is not going into the method

2020-07-05 Thread John Mc
Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear
and simple example it might be hard to get someone to help you on resolving
this issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
wrote:

> I am trying to debug a maven project.
>
> One of my methods returns unexpected result.
> I placed a breakpoint on the line where method is called and when it
> stopped there, I clicked on the down arrow, planning to step into the
> method and see what is going on.
> However, it did not go into the method, but behaved like “Step over” and
> moved to the next line of code.
>
> Repeated it several times and behavior was consistent – “Step In” is not
> working as it should be.
>
> I resolved my problem by putting another breakpoint inside the method, but
> it is not right. Back in version 8.2 it was working correctly.
>
>
>
> Have anyone also noticed this problem?
>
> My environment:
>
> DELL Precision 5500
>
> Win 10 Pro
>
> OpenJDK 14
>
> Netbeans 12
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>


Re: How do you setup JUnit with Maven?

2020-05-21 Thread John Mc
What version of JUnit are you using?

If its JUnit 5, then you need to be running the Maven Surefire plugin >
version 2.22

See
https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html.
Note this is referencing the latest version

Also JUnit has a sample project for JUnit 5 and maven:
https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-maven

Regards

John

On Thu, 21 May 2020 at 16:53, Ty Young  wrote:

>
> On 5/21/20 10:07 AM, Luff,Chris wrote:
> > No, nothing like that should be needed. Make sure your source packages
> are mirrored in the test sources. Prefix your classes with Test. Maven
> should run them fine.
>
>
> To be clear, a test package must be 1:1 to be seen by Maven? For example:
>
>
> Source com.foo.bar
>
>
> Test: com.foo.bar
>
>
> ?
>
>
> And the tests class must be called "TestBar.java"?
>
>
> >
> >
> >
> >> On 21 May 2020, at 15:30, Ty Young  wrote:
> >>
> >> Hi,
> >>
> >>
> >> Can anyone tell me how to setup Maven with Netbeans? I've tried
> multiple times and the result is always the same: it tries to test but
> doesn't seem to be able to find them and doesn't do anything.
> >>
> >>
> >> I'm guessing I need to override the default package name JUnit uses to
> look for classes to run, but I'm not sure where that is.
> >>
> >>
> >> -
> >> 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://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=02%7C01%7CChris.Luff%40cerner.com%7Cedddf29ac5ef4d6312d408d7fd93a0a5%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C637256682807874580sdata=Z8J%2FjPHzPGi76mwCvCegEFOF3BcfPin2Npdg%2BPSML7A%3Dreserved=0
> >>
> >
> >
> > CONFIDENTIALITY NOTICE This message and any included attachments are
> from Cerner Corporation and are intended only for the addressee. The
> information contained in this message is confidential and may constitute
> inside or non-public information under international, federal, or state
> securities laws. Unauthorized forwarding, printing, copying, distribution,
> or use of such information is strictly prohibited and may be unlawful. If
> you are not the addressee, please promptly delete this message and notify
> the sender of the delivery error by e-mail or you may call Cerner's
> corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
> Cerner Limited, Registered in England no 2519305, Registered Office 37
> North Wharf Road, London W2 1AF.
>
> -
> 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: set sources for a project to jdk 14

2020-05-17 Thread John Mc
Hi,

There is no Apache NetBeans 11.3, I suspect thats a typo?

Also Apache NetBeans 11.3 doesn't support Java 14 sources, Java 14 only was
released in March, and 11.3 was released before that.  I suspect this will
be possible in the upcoming LTS release, Apache NetBeans 12.0.

If you want you can try using the latest development versions of NetBeans:
https://netbeans.apache.org/download/dev/index.html which might allow you
to set Java 14 sources?


Regards

John

On Sun, 17 May 2020 at 08:19, Thufir  wrote:

> running NB 11.5 I have 11 as default and 14 available through Java
> Platforms; jdk 14 was installed via sdkman.
>
>
> However, when I go to the project:
>
> https://askubuntu.com/q/1240504/45156
>
>
> only jdk 11 is available when selecting the project and then "sources"
> -- so how do I set the sources to 14?
>
>
>
> thanks,
>
>
> Thufir
>
>
> -
> 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 should generate Maven projects with latest version

2020-04-30 Thread John Mc
Unless I'm mistaken, NetBeans uses the embedded NetBeans version, which for
NetBeans 12.0 should have Maven 3.6.3 embedded.

There will be another beta version of 12.0 out soon I believe, so maybe
confirm this with that version?

Regards

John

On Thu, 30 Apr 2020 at 20:16, Ty Young  wrote:

> JIRA: https://issues.apache.org/jira/browse/NETBEANS-4285
>
>
> Netbeans should, assuming there are no blockers, always use the latest
> Maven release for newly generated projects.
>
>
> Can this be done? The only issue, IIRC, is that Maven and JUnit don't
> work correctly... but that affects older versions anyway too. No one
> would be forced to upgrade either, it just affects new projects created
> via Netbeans.
>
>
> -
> 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: [java] Google style for Java

2020-03-26 Thread John Mc
I had a first draft of a NetBeans plugin I worked on previously[1].

I'd fixed some issues, but was able to get the release done correctly...
Need to come back to that.  But what you could do is close that repo,
build the project and install the nbm file into NetBeans as a plugin.

Any issues, please let me know in GitHub and I can look to address them.

Regards

John


[1]: https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
On Thu, 26 Mar 2020 at 01:24, Joel Strasser  wrote:

> I went by configuring the required options myself. But thank you anyway!
>
> Mit freundlichen Grüßen/Best regards,
>
> Joel Strasser (joestr)
> strasser...@gmail.com
>
> On Thu, 26 Mar 2020, 01:45 Zahid Rahman,  wrote:
>
>> “Integrate Google Java Style Guide in a Java project” by Alex Prut
>> https://link.medium.com/oMuepe6J94
>>
>> On Wed, 25 Mar 2020, 22:22 Joel Strasser,  wrote:
>>
>>> Hello,
>>>
>>> Is there a way to format Java files according to the Google style
>>> guidelines?
>>>
>>> I tried various plugins but they did not satisfy my expectations.
>>>
>>> Are there other possibilities to accomplish this?
>>>
>>> Greetings,
>>>
>>> Joel
>>>
>>


Re: Statement of disappointment

2020-03-13 Thread John Mc
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  >
> 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/?=x86-64-b
> >> it=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,
> >> and really getting involved in JavaFX big time. I love the cross
> >> platform capability, and use it on both Ubuntu and Windows.
> >> Raspberry Pi, no problem.  Windows, no problem.  I loved it. Then
> >> boom, Oracle takes JavaFX out of the mix, and NetBeans and I start
> >> having major problems. It gets harder and harder to use NetBeans with
> >> it’s incompatibility with JavaFX without going through hoops every
> >> single time we upgrade.  I have a ton of projects that are a major
> >> pain to go back to without having to dance on a high wire to get to
> >> work.  And I am still not sure I can do this anymore.
> >> >
> >> > I have been a computer programmer, designer and architect for
> >> > well
> >> over 53+ years.  I have see many systems come and go, many IDE rise
> >> and fall, many languages surface and crash.  The move to Maven is
> >> beyond my scope now.  I want to program, not to have to regenerate
> >> and rehash my build system every release.  I have tried to move over
> >> to 11, and mostly failed.  I have too many modules and programs in play
> to hack this out.
> >> >
> >> > It would have been great if NetBeans had a seamless 

Re: 11.2 and JUnit 5 "no tests executed"

2019-12-18 Thread John Mc
Hi Michael,

Can you create a JIRA ticket for this please?

https://issues.apache.org/jira/projects/NETBEANS

If I get some time over Christmas, I might look to fix it, if possible so
we can help others out moving forward?

Regards

John

On Wed, 18 Dec 2019 at 10:44, Michael Remijan  wrote:

> I am using Maven 3.3.9 bundled with NetBeans.
>
> This version of Maven uses the 2.12.4 version of the surefire plugin. I
> switched to the latest non-milestone version:
>
> 
> 
> 
> maven-surefire-plugin
> 2.22.2
> 
> 
> 
>
> And now it works. Thanks for the help!
>
>
> On Wednesday, December 18, 2019, 02:03:14 AM CST, John Mc <
> mcdonnell.j...@gmail.com> wrote:
>
>
> Hi
>
> What version of maven are you running?
>
> Include the maven surefire plugin but check the JUnit 5 documentation for
> what is the minimum version supported. I think off the top of my head it's
> something like 2.21 but double check on their site.
>
> I'd guess that when you include that plugin I to your pom, Maven will
> start to execute your tests.
>
> Regards
>
> John
>
> On Wed, 18 Dec 2019, 03:19 Michael Remijan, 
> wrote:
>
> I've started a brand new Maven project and had NetBeans take care of the
> POM updates when I added a unit test. NetBean automatically put in the
> dependencies for JUnit 5. So far so good. But I can't seem to get the test
> to run. NetBeans is always saying: "No tests executed".  Below are the
> details...can't get much more simple I think.
>
> C O M M A N DL I N E
> Here is the command line to run the tests (Alt + F6):
>
> cd D:\Projects\thoth-email;
> JAVA_HOME=D:\\Applications\\java\\zulu11.35.15-ca-jdk11.0.5-win_x64 cmd /c
> "\"\"D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven\\bin\\mvn.cmd\"
> -Dmaven.ext.class.path=D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven-nblib\\netbeans-eventspy.jar
> -Dfile.encoding=UTF-8 test\""
>
> P O M
> Here is the POM:
>
> 
> http://maven.apache.org/POM/4.0.0; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd;>
> 4.0.0
> org.thoth
> thoth-email
> 1.0.0.0-SNAPSHOT
> jar
> 
> UTF-8
> 11
> 11
> 
>
> 
> 
> org.junit.jupiter
> junit-jupiter-api
> 5.3.1
> test
> 
> 
> org.junit.jupiter
> junit-jupiter-params
> 5.3.1
> test
> 
> 
> org.junit.jupiter
> junit-jupiter-engine
> 5.3.1
> test
> 
> 
> 
>
>
> J U N I TT E S T
> Here is the Unit test...
>
> package org.thoth.email.ssl;
> import org.junit.jupiter.api.Assertions;
> import org.junit.jupiter.api.BeforeEach;
> import org.junit.jupiter.api.Test;
> public class SSLTest {
> public SSLTest() {
> }
> @BeforeEach
> public void setUp() {
> }
> @Test
> public void a_test() throws Exception
> {
> System.out.printf("Hello test!%n");
> Assertions.assertEquals("A", "A");
> }
> }
>
>
> Any thoughts?
>
>


Re: 11.2 and JUnit 5 "no tests executed"

2019-12-18 Thread John Mc
Hi

What version of maven are you running?

Include the maven surefire plugin but check the JUnit 5 documentation for
what is the minimum version supported. I think off the top of my head it's
something like 2.21 but double check on their site.

I'd guess that when you include that plugin I to your pom, Maven will start
to execute your tests.

Regards

John

On Wed, 18 Dec 2019, 03:19 Michael Remijan, 
wrote:

> I've started a brand new Maven project and had NetBeans take care of the
> POM updates when I added a unit test. NetBean automatically put in the
> dependencies for JUnit 5. So far so good. But I can't seem to get the test
> to run. NetBeans is always saying: "No tests executed".  Below are the
> details...can't get much more simple I think.
>
> C O M M A N DL I N E
> Here is the command line to run the tests (Alt + F6):
>
> cd D:\Projects\thoth-email;
> JAVA_HOME=D:\\Applications\\java\\zulu11.35.15-ca-jdk11.0.5-win_x64 cmd /c
> "\"\"D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven\\bin\\mvn.cmd\"
> -Dmaven.ext.class.path=D:\\Applications\\netbeans\\netbeans-11.0\\java\\maven-nblib\\netbeans-eventspy.jar
> -Dfile.encoding=UTF-8 test\""
>
> P O M
> Here is the POM:
>
> 
> http://maven.apache.org/POM/4.0.0; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd;>
> 4.0.0
> org.thoth
> thoth-email
> 1.0.0.0-SNAPSHOT
> jar
> 
> UTF-8
> 11
> 11
> 
>
> 
> 
> org.junit.jupiter
> junit-jupiter-api
> 5.3.1
> test
> 
> 
> org.junit.jupiter
> junit-jupiter-params
> 5.3.1
> test
> 
> 
> org.junit.jupiter
> junit-jupiter-engine
> 5.3.1
> test
> 
> 
> 
>
>
> J U N I TT E S T
> Here is the Unit test...
>
> package org.thoth.email.ssl;
> import org.junit.jupiter.api.Assertions;
> import org.junit.jupiter.api.BeforeEach;
> import org.junit.jupiter.api.Test;
> public class SSLTest {
> public SSLTest() {
> }
> @BeforeEach
> public void setUp() {
> }
> @Test
> public void a_test() throws Exception
> {
> System.out.printf("Hello test!%n");
> Assertions.assertEquals("A", "A");
> }
> }
>
>
> Any thoughts?
>
>


Re: Static code analysis - FindBugs (SpotBugs) support

2019-11-27 Thread John Mc
Hi

The find bugs module hasn't been donated yet it's due in a later donation -
I've asked about it before.

I had looked to start an alternative spotbugs plugin recently but switched
to another plugin and then got busy at work so haven't yet been able to get
back around to it.

Regards

John

On Wed, 27 Nov 2019, 23:56 Jose Ch,  wrote:

> When you try to install it:
>
> "FindBugs Integration" module has not been downloaded.
>
> It does not exist in the plugin portal.
>
> El mié., 27 nov. 2019 a las 14:29, Emilian Bold ()
> escribió:
>
>> I think JaCoCo works. I wonder why FindBugs doesn't work anymore?
>>
>> --emi
>>
>> On Wed, Nov 27, 2019 at 9:04 PM Mark A. Claassen 
>> wrote:
>> >
>> > Once upon a time there was a FindBugs module for Netbeans. Is there one
>> that works with Netbeans 11.  (FindBugs or its descendant 'SpotBugs')
>> >
>> > Does Netbeans have support for any more complete tools for static
>> analysis besides the included "hints"?
>> >
>> > Mark Claassen
>> > Senior Software Engineer
>> >
>> > Donnell Systems, Inc.
>> > 130 South Main Street
>> > Leighton Plaza Suite 375
>> > South Bend, IN  46601
>> > E-mail: mailto:mclaas...@ocie.net
>> > Voice: (574)232-3784
>> > Fax: (574)232-4014
>> >
>> > Disclaimer:
>> > The opinions provided herein do not necessarily state or reflect
>> > those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and
>> > assumes no legal liability or responsibility for the posting.
>> >
>> >
>> >
>> > -
>> > 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: "Compile on Save" option disabled for Maven WAR project in Netbeans 11.2, working in 11.1

2019-11-21 Thread John Mc
David,

Do you have nb-javac installed as well?  I might be wrong but I thought
that CoS requires nb-javac

Regards

John

On Thu, 21 Nov 2019 at 23:32, Josh Juneau  wrote:

> Thanks I will work on reproducing the issue.  I appreciate your time.
>
> Josh Juneau
> juneau...@gmail.com
> http://jj-blogger.blogspot.com
> https://www.apress.com/us/search?query=Juneau
>
> On Nov 21, 2019, at 4:58 PM, David Sharpe  wrote:
>
> 
> Hi Josh,
>
> It's Microsoft Windows 10 Enterprise, Version 10.0.17763 Build 17763.
>
> Regards,
> David
>
> On Thu, 21 Nov 2019 at 14:52, Josh Juneau  wrote:
>
>> Hi David,
>>
>> Can you please tell us what operating system you are using?
>>
>> Thanks!
>>
>> Josh Juneau
>> juneau...@gmail.com
>> http://jj-blogger.blogspot.com
>> https://www.apress.com/us/search?query=Juneau
>>
>> On Nov 21, 2019, at 3:24 PM, David Sharpe  wrote:
>>
>> 
>> Hi everyone,
>>
>> Can someone can confirm this for me please?
>>
>>1. Create a new Maven web application project in *Netbeans 11.1*.
>>2. Go to Project > Properties > Build > Compile
>>3. Confirm that you can toggle the "Compile on Save" option.
>>
>> Repeat the steps for *Netbeans 11.2*.
>>
>> On my computer, I'm unable to enable "Compile on Save" with Netbeans
>> 11.2. I tried running Netbeans on Oracle JDK 8 and 13.
>>
>> 
>>
>>
>> (JRebel support, I'm CCing you because this feature is integral to your
>> Netbeans integration.)
>>
>> Regards,
>> David
>>
>>


Re: Netbeans 11.1 extract local variable r

2019-10-02 Thread John Mc
What happens when you put your cursor on the first line?  Do you get a hint
in the left hand margin of the editor? This should do the same thing,
creating a return variable.



On Wed, 2 Oct 2019 at 04:17, Sahin gülci  wrote:

> Hi Emilian,
>
> I deleted the collect line but it is same, for you to try below is BEFORE :
>
> List myList =
>Arrays.asList("a1", "a2", "b1", "c2", "c1");
>
> myList
>.stream()
>.filter(s -> s.startsWith("c"))
>.map(String::toUpperCase)
>.sorted()
>.collect(Collectors.toList());
>
> AFTER should be :
>
>
> List myList =
>Arrays.asList("a1", "a2", "b1", "c2", "c1");
>
> List collect2 = myList
>.stream()
>.filter(s -> s.startsWith("c"))
>.map(String::toUpperCase)
>.sorted()
>.collect(Collectors.toList());
>
>
> On Tue, Oct 1, 2019 at 11:23 PM Emilian Bold 
> wrote:
>
>> Why does the collect call underneath your selection have the red
>> underline? Seem there is something unparseable about the source code which
>> might interfere with your refactoring too.
>>
>> --emi
>>
>> mar., 1 oct. 2019, 23:12 Sahin gülci  a scris:
>>
>>> Hi All,
>>>
>>> When I try extract local variable from simple stream, it says invalid
>>> selection but same code on Intellij and Eclipse create a local variable.
>>> How can I extract local variable ?
>>>
>>> picture on the attachments
>>>
>>>
>>>
>>> -
>>> 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: Detected Maven Version: 3.3.9 is not in the allowed range [3.5.0,).

2019-10-01 Thread John Mc
Hi All,

I think there might be an issue upgrading maven.  I took a look a while
back to see if it would make sense thinking, unwisely that it might not be
too big of an effort...

If I remember correctly, there's code in NetBeans that uses internal maven
based code that has since been restricted and is no longer exposed in the
latest versions of Maven.

Regards

John



On Tue, 1 Oct 2019 at 10:48, Neil C Smith  wrote:

> On Tue, 1 Oct 2019 at 10:40, Geertjan Wielenga 
> wrote:
> >
> > For sure. :-)
> >
> > Created the issue: https://issues.apache.org/jira/browse/NETBEANS-3188
>
> Great!  Added missing 11.3 milestone in JIRA and added it to it.
>
> 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
>
>


Re: NetBeans 11.1 + Maven + Lombok

2019-09-20 Thread John Mc
Thomas,

What version of Lombok are you using?  I have it working fine with Maven
and NetBeans 11.1 but I might be using a slightly older version of
Lombok(1.18.4).

Regards

John

On Fri, 20 Sep 2019 at 11:11, Simeó Reig 
wrote:

> I don't know if you still need it, we are using eclipse because Netbeans
> does not support JSF2.3 yet
>
> https://projectlombok.org/setup/netbeans
>
> Regards
> Simeó Reig
>
>
> A 20-09-2019 11:25, Thomas Kellerer escrigué:
>
> Hello,
>
> I need to open and use a Maven project in NetBeans 11 that heavily uses
> Lombok.
> All other team members are using InteliJ, where the current setup works
> without problems.
>
> But when I open that Maven project in NetBeans 11.1 half of the source
> code is marked with red error flags, because the generated getters and
> setters are not recognized by the NetBeans editor.
>
> Clean & Build obviously works because Lombok is included in the POM, but
> the NetBeans editor doesn't know that.
>
> I found various hints in the internet regarding the use of Lombok with a
> NetBeans Ant project ("Enable Annotation processing in Editor")
> But those obviously don't apply to a Maven project
>
> Is there anything I can do, so that I can properly work with that project
> in NetBeans?
>
> Regards
> Thomas
>
>
>
> -
> 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: cannot download jira plugin for netbeans 11.1

2019-08-25 Thread John Mc
Hi

I can see the projects I  the old main-golden repo but not in main-contrib.

Here's a link to one of the projects
https://hg.netbeans.org/main-golden/file/tip/jira

Regards

John

On Sun 25 Aug 2019, 18:51 Geertjan Wielenga,  wrote:

> If it’s in contrib then it’s part of the 5th donation, probably sometime
> end of this year or beginning of the next.
>
> Gj
>
> On Sun, 25 Aug 2019 at 19:50, Geertjan Wielenga 
> wrote:
>
>> But where’s the source code? On hg.netbeans.org somewhere I guess.
>>
>> Gj
>>
>> On Sun, 25 Aug 2019 at 19:42, John Mc  wrote:
>>
>>> Hi
>>>
>>> I called it a JIRA cluster as I found it referenced like that here
>>> https://hg.netbeans.org/main-golden/file/tip/nbbuild/cluster.properties
>>>
>>> Regards
>>>
>>> John
>>>
>>> On Sun 25 Aug 2019, 18:35 Laszlo Kishalmi, 
>>> wrote:
>>>
>>>> It is part of contrib afaik.
>>>> On 8/25/19 10:25 AM, Geertjan Wielenga wrote:
>>>>
>>>> Can you point me in the right direction? I don’t know about the JIRA
>>>> cluster.
>>>>
>>>> Gj
>>>>
>>>> On Sun, 25 Aug 2019 at 18:30, John Mc  wrote:
>>>>
>>>>> Hi Mohamed,
>>>>>
>>>>> I asked a similar question a few weeks back.  @Geertjan do you know
>>>>> what donation this is due in?  I couldn't see a reference to the JIRA
>>>>> cluster here[1].
>>>>>
>>>>> Regards
>>>>>
>>>>> John
>>>>>
>>>>> [1]:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition
>>>>>
>>>>> On Sun, 25 Aug 2019 at 16:50, mohamed chebbi 
>>>>> wrote:
>>>>>
>>>>>> Hi
>>>>>> i cannot download ans install jira plugin for netbeans 11.1 the
>>>>>> button don't work.
>>>>>>
>>>>>> can anyone help.
>>>>>>
>>>>>> cdt
>>>>>>
>>>>>


Re: cannot download jira plugin for netbeans 11.1

2019-08-25 Thread John Mc
Hi

I called it a JIRA cluster as I found it referenced like that here
https://hg.netbeans.org/main-golden/file/tip/nbbuild/cluster.properties

Regards

John

On Sun 25 Aug 2019, 18:35 Laszlo Kishalmi, 
wrote:

> It is part of contrib afaik.
> On 8/25/19 10:25 AM, Geertjan Wielenga wrote:
>
> Can you point me in the right direction? I don’t know about the JIRA
> cluster.
>
> Gj
>
> On Sun, 25 Aug 2019 at 18:30, John Mc  wrote:
>
>> Hi Mohamed,
>>
>> I asked a similar question a few weeks back.  @Geertjan do you know what
>> donation this is due in?  I couldn't see a reference to the JIRA cluster
>> here[1].
>>
>> Regards
>>
>> John
>>
>> [1]:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition
>>
>> On Sun, 25 Aug 2019 at 16:50, mohamed chebbi 
>> wrote:
>>
>>> Hi
>>> i cannot download ans install jira plugin for netbeans 11.1 the button
>>> don't work.
>>>
>>> can anyone help.
>>>
>>> cdt
>>>
>>


Re: cannot download jira plugin for netbeans 11.1

2019-08-25 Thread John Mc
Hi Mohamed,

I asked a similar question a few weeks back.  @Geertjan do you know what
donation this is due in?  I couldn't see a reference to the JIRA cluster
here[1].

Regards

John

[1]:  https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition

On Sun, 25 Aug 2019 at 16:50, mohamed chebbi  wrote:

> Hi
> i cannot download ans install jira plugin for netbeans 11.1 the button
> don't work.
>
> can anyone help.
>
> cdt
>