Re: Netbeans/Chrome Error

2024-04-25 Thread John Lavelle
I haven't managed to get this to work reliably since about version 9 of
NetBeans. Sometimes it works, sometimes not.

What you need to do is, remove the NetBeans plugin from Chrome and in
NetBeans don't use "Chrome with Netbeans Connector".

Steps if you need them:

   1. right click on the Project
   2. Select Properties
   3. Click on Browser
   4. Select Chrome (without the NetBeans Connector)
   5. Click OK


Best regards,
John

Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Thu, Apr 25, 2024 at 1:18 AM Tom Rushworth  wrote:

> Neatbeans version 21 and latest version of Chrome. When I click on "Run
> Project", I get the following error:
>
> [image: error message]
>
> I know that I can simply click OK and the error has no further effect. My
> question is, How can I eliminate the error in the first place?
>
> Tom
>


Re: Netbeans and Emmet

2024-04-24 Thread John Lavelle
Yes, I am using Emmet in NetBeans 21. I used the version off GitHub,
mentioned below.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Wed, Apr 24, 2024 at 4:14 AM Michael Bien  wrote:

> this is likely the project you are looking for:
> https://github.com/emmetio/netbeans
>
> it seems to lack maintainers but the last release might still work.
> Simply download the nbm and try to install it using
> tools -> plugins -> downloaded -> add plugins
>
> -mbien
>
>
> On 23.04.24 22:09, Tom Rushworth wrote:
> > Sorry, Netbeans version 21.
> >
> > On 4/23/2024 4:07 PM, Tom Rushworth wrote:
> >> Can Emmet be installed in Netbeans?  If so, how?
> >>
> >> 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
>
>


NetBeans Scala and Swing

2024-02-22 Thread John Parten

Hi Everyone,

I am a "NetBeans Newbie", working on a Linux Fedora 38 Desktop 
workstation. I have "Java OpenJDK 17.0.9", "Scala 3.4.0" and "NetBeans 
IDE 20" installed. I would like to configure NetBeans so it has context 
sensitive help for Scala (eg when you hover or click a key word, info is 
displayed in the IDE). I am assuming that NetBeans has a "MetaLS" 
compatible interface.


Q1) Is it possible to configure NetBeans to intelligently support Scala 
(and maybe Swing)?


Q2) Can you advise on guideline for NetBeans plugins and procedures to 
adopt for Scala support?


Q3) Is there a better (easier to install) Layout Manager that I should 
be targeting instead of Swing?


Q4) Does NetBeans have a MetaLS interface ?

I tried to follow the guidelines at 
https://sourceforge.net/projects/erlybird/files, downloaded 
nbscala-7.4_2.10.x-1.6.2.0.zip, and extracted 18 *.nbm plugins. 14 out 
of 18 installed OK using NetBeans downloaded plugin manager, but the 
remaining 4 have a dependency ("Swing Layout Extensions 1.6.1 found but 
>= 1.27.1 needed"). I do not know how to overcome this. Then I realized 
that these downloaded plugins are over 10 years old. I am probably off 
the rails!


Thanks in advance for any help and advice you can give ...

... JohnP




RE: Navigating between errors, warnings hints etc

2024-01-25 Thread John
Vic, Firstly, thanks for taking the time to respond to my query. Much appreciated.It used to be CTRL-PERIOD and CTRL-COMMA, but it stopped working a long time ago.Glad it’s not just me then! the Action Items window (CTRL-6) is really nice This looks very promising. I only have a distant recollection of this feature when I first installed NetBeans a few years ago and probably dismissed it as just a ‘ToDo’ list (I use an alternative utility for this).  It took me a little while to figure it out as the ‘actions’ only appear once you save the file, rather than interactively as you make a change. Still a Ctrl-S every now and then, to enable you to ‘check for actions’ is worth it for the benefit of then reviewing all the damage to your source. Thanks once again. John From: Vic RickerSent: 24 January 2024 23:06To: users@netbeans.apache.orgSubject: Re: Navigating between errors, warnings hints etc It used to be CTRL-PERIOD and CTRL-COMMA, but it stopped working a long time ago.It's not quite the same, but the Action Items window (CTRL-6) is really nice.  It shows all of the errors, TODO and FIXME comments, and other things.  You can click on the entries to go to the relevant part of the source.Hope this helps.On 1/20/24 07:32, John wrote:Hi, I am using NetBeans IDE version 20, JDK 21.0.2 on Windows 10. I have been looking in vain for a way to navigate between errors in my source without having to scroll manually through the source trying to spot the red ! marks in the margin or using F11 to recompile to list them. I note the ‘Navigate > Next Error | Previous Error’ from the menu bar but these seem to do nothing even if I introduce new errors into my source. The NetBeans help on Navigation (https://netbeans.apache.org/tutorial/main/kb/docs/java/editor-codereference/) doesn’t mention anything about these two ‘Navigate’ options.There is documentation on the RHS Error Stripes which is the closest I can find but that is hard for me to visualise as lots of different stripes detailed and I find it hard to separate out the colours (a bit colour-blind). Stack overflow mentions (https://stackoverflow.com/questions/11877871/netbeans-keyboard-shortcut-for-navigating-to-next-error-marker-in-editor) , in Netbeans 8, a perfect option, found in the Keymap shortcuts, called ‘Next error in Editor.  This is meant to cycle between all the hints, warnings & errors. This would be perfect for my use except that the Tools > Options > Keymap, search ‘Next’ no longer lists it in NetBeans 20. Any advice on either Navigate > Next error not working‘Next error in Editor’ missingAn alternative workaround I haven’t considered would do wonders for my stress levels! Thanks in advance John   - 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



Navigating between errors, warnings hints etc

2024-01-20 Thread John
Hi, I am using NetBeans IDE version 20, JDK 21.0.2 on Windows 10. I have been looking in vain for a way to navigate between errors in my source without having to scroll manually through the source trying to spot the red ! marks in the margin or using F11 to recompile to list them. I note the ‘Navigate > Next Error | Previous Error’ from the menu bar but these seem to do nothing even if I introduce new errors into my source. The NetBeans help on Navigation (https://netbeans.apache.org/tutorial/main/kb/docs/java/editor-codereference/) doesn’t mention anything about these two ‘Navigate’ options.There is documentation on the RHS Error Stripes which is the closest I can find but that is hard for me to visualise as lots of different stripes detailed and I find it hard to separate out the colours (a bit colour-blind). Stack overflow mentions (https://stackoverflow.com/questions/11877871/netbeans-keyboard-shortcut-for-navigating-to-next-error-marker-in-editor) , in Netbeans 8, a perfect option, found in the Keymap shortcuts, called ‘Next error in Editor.  This is meant to cycle between all the hints, warnings & errors. This would be perfect for my use except that the Tools > Options > Keymap, search ‘Next’ no longer lists it in NetBeans 20. Any advice on either Navigate > Next error not working‘Next error in Editor’ missingAn alternative workaround I haven’t considered would do wonders for my stress levels! Thanks in advance John   

-
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: Variable display in debugger

2024-01-11 Thread John Barrow
Hi,

> Does this still requires me to change the source code?  It looks like it
to me though I might be missing something.

You deduced correctly that it would mean introducing a debug line to
publish the Object at that time if you are debugging within one of their
methods, although if you are doing that you must have a compilable source.
If you want to see the current "result" after you have called a method,
then you could use reflection to query their class structure and so access
the instance you are interested in(assuming that they haven't blocked
access). I then apply the JSON method I sent earlier to reveal the inner
class instances.

> because you used Reply-To-All rather than Reply-To-List.

I am using the GMail app and only has a "Reply all". I haven't come across
a Reply to List option before.

> That I really can't change easily enough.

Given the lack of other feedback from the forum, it looks unlikely that
there is a built in feature. I suppose someone may have written a NetBeans
extension to do this but that is outside my skill set. My suggestions are
simply what I have deduced on my own when wanting to expand my debugging
skills and can't be bothered to spend hours stepping through code. I have
always preferred creating a readable audit trail through the code that I
can review and compare with my understanding of what the routine is meant
to do!


John


On Thu, 11 Jan 2024, 12:55 Admin @ Goodun, 
wrote:

> Hi John,
>
> On Tue, 2024-01-09 at 17:00 +, John wrote:
> > Hi,
> >
> > Firstly, I believe the etiquette is to always use “Reply All” so that
> > the rest of the group is aware of the thread progression.
>
> Sorry about that.  My mail agent (Evolution) didn't recognise your
> message as coming from a mail list because you used Reply-To-All rather
> than Reply-To-List.
>
>
> > Having said that, I just remembered that I also publish instances of
> > classes as JSON (via Googles Gson API, although I assume you could
> > use Jackson as well) using the following code
>
> Does this still requires me to change the source code?  It looks like
> it to me though I might be missing something.
>
> I'm debugging my code that runs as an extension to the CMS Joomla, a
> huge codebase that I really can't change easily enough.
>
> I'll be including your code in my own extensions, it looks great.
>
> Mark
>
> -
> 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 20 Exception

2024-01-10 Thread John Lavelle
 Java:  17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7-Ubuntu-0ubuntu118.04


Best regards,
John
j...@jql.co.uk

On Wed, Jan 10, 2024 at 11:13 AM Pieter van den Hombergh <
pieter.van.den.hombe...@gmail.com> wrote:

> on which java release is your netbeans running, that maybe relevant.
>
>
> from they start of the stacktrace you may infer that the problem can be in
> a properties file or the Path thereof. there could be a wrongly interpreted
> Unicode character.
>
> met vriendelijke groet
> Pieter van den Hombergh
>
> Op wo 10 jan 2024 10:38 schreef John Lavelle :
>
>> Hi,
>>
>> On starting Netbeans 20, just after the background scanning external
>> files ends, I am getting the exception shown below. Netbeans seems to be
>> functioning correctly.
>>
>> Steps to recreate the problem: Start Netbeans 20 with two open projects
>> OS: Linux Mint 19.3 Cinnamon (5.4.0-150-generic)
>> 
>> Unexpected Exception Category: Error
>> java.lang.IllegalArgumentException: Malformed \u encoding.
>> at java.base/java.util.Properties.loadConvert(Properties.java:662)
>> at java.base/java.util.Properties.load0(Properties.java:455)
>> at java.base/java.util.Properties.load(Properties.java:408)
>> at
>> org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.handleStoredFiles(CustomIndexerImpl.java:83)
>> at
>> org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.access$000(CustomIndexerImpl.java:46)
>> at
>> org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl$FactoryImpl.filesDeleted(CustomIndexerImpl.java:122)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.delete(RepositoryUpdater.java:2595)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.lambda$scanSource$3(RepositoryUpdater.java:5728)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2119)
>> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2117)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2098)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1400(RepositoryUpdater.java:135)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:5770)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:5443)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5075)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5842)
>> [catch] at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6197)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5855)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6116)
>> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
>> at
>> org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6116)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6112)
>> at
>> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>> at
>> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>> at
>> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>> at
>> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>> at
>> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6112)
>> at
>> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
>> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
>> at
>> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
>> at
>> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)
>>
>>
>>
>> Best regards,
>> John
>>
>>
>>


Netbeans 20 Exception

2024-01-10 Thread John Lavelle
Hi,

On starting Netbeans 20, just after the background scanning external files
ends, I am getting the exception shown below. Netbeans seems to be
functioning correctly.

Steps to recreate the problem: Start Netbeans 20 with two open projects
OS: Linux Mint 19.3 Cinnamon (5.4.0-150-generic)

Unexpected Exception Category: Error
java.lang.IllegalArgumentException: Malformed \u encoding.
at java.base/java.util.Properties.loadConvert(Properties.java:662)
at java.base/java.util.Properties.load0(Properties.java:455)
at java.base/java.util.Properties.load(Properties.java:408)
at
org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.handleStoredFiles(CustomIndexerImpl.java:83)
at
org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.access$000(CustomIndexerImpl.java:46)
at
org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl$FactoryImpl.filesDeleted(CustomIndexerImpl.java:122)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.delete(RepositoryUpdater.java:2595)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.lambda$scanSource$3(RepositoryUpdater.java:5728)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2119)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2117)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2098)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1400(RepositoryUpdater.java:135)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:5770)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:5443)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5075)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5842)
[catch] at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6197)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5855)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6116)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at
org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6116)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6112)
at
org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at
org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at
org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at
org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6112)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)



Best regards,
John


RE: Variable display in debugger

2024-01-09 Thread John
Hi, Firstly, I believe the etiquette is to always use “Reply All” so that the rest of the group is aware of the thread progression. What if that's not there (as in debugging 3rd party code)? I haven’t used any third party code that isn’t the JVM or could access the source to and so I am not aware of any other method to view all the data within a class as a single valuewithin the debugger as this would depend on how to present the Array elements and each of those could have arrays etc. Having said that, I just remembered that I also publish instances of classes as JSON (via Googles Gson API, although I assume you could use Jackson as well) using the following code   static String toJson (Object object, boolean suppressNulls) {    GsonBuilder gsonBuilder;    gsonBuilder = new GsonBuilder(); if (!suppressNulls) {  gsonBuilder.serializeNulls();    }    gsonBuilder.setPrettyPrinting(); return gsonBuilder.create().toJson(object);  }  And so you could use that in your code to publish the nested array to a log or System.out() John From: Admin @ GoodunSent: 09 January 2024 15:06To: JohnSubject: Re: Variable display in debugger That's great. but it seems to rely on you coding your classes with atoString method. What if that's not there (as in debugging 3rd party code)?   

-
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: Variable display in debugger

2024-01-09 Thread John
Hi, I make use of the Debuggers ‘Variables’ tab and make the ‘String value: String representation of the value” column active. For some reason it is off by default. Then, for any complex class I ensure that the @Override public String toString() {} method is defined to publish all the details about the class. The toString() method is rarely needed for these complex classes and so I make use of it as a debugging tool. I always make sure that I have overridden this method as part of setting up a new class.  As you note, a simple array (e.g. ArrayList<>()) only shows the size of the array in the String value column (e.g. size = 5). In this case, I wrap the array inside a record and override the toString() method there. The debugger then uses the records toString() method in the stringValue cell, showing you the full array. e.g.   record StringList (List data) {    @Override    public String toString () {  StringBuilder result = new StringBuilder();  boolean isFirst = true;  for (String value : data) {    if (isFirst) {  isFirst = false;    }    else {  result.append(',');  result.append(System.lineSeparator());    }    result.append(value);  }  return result.toString();    }  } class MyClass {    private StringList strings;    MyClass() {  this.strings = new StringList(new ArrayList<>());    }  }  Then, when you view the ‘strings’ field in an instance of MyClass, the debugger will show you the full array. You will need to use the ‘...’ to view it and you can even cut and paste it into notepad if want to take a snapshot or view it in a larger window. John From: Admin @ GoodunSent: 09 January 2024 12:02To: users@netbeans.apache.orgSubject: Variable display in debugger Can I get a view of an entire array while debugging php? I have an array of arrays, which means I have to drill down into eachsub-array to actually see data.  This is a problem in my large array(it has over 200 sub-arrays). So, is there a way to display, or cause to be displayed, such an arrayduring execution?  It doesn't have to be *in* the debugger, anywhere Ican see it would be ok. TIAMark -To unsubscribe, e-mail: users-unsubscr...@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  

-
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: [EXTERNAL] Re: Converting Java 8 to 17+, conflicts with modules

2023-11-11 Thread John Manko
All great advice.  I was able to solve the compile issue using the following, 
but I'll need to refine my deps and module declarations.  Each of these were 
added explicitly because they're used, include several classes/packages from 
org.eclipse.persistence.*.


jakarta.inject
jakarta.inject-api
2.0.1
provided
jar


jakarta.enterprise
jakarta.enterprise.cdi-api
4.0.1
provided
jar


jakarta.json
jakarta.json-api
2.1.3
provided
jar


jakarta.ws.rs
jakarta.ws.rs-api
3.1.0
provided
jar


jakarta.json.bind
jakarta.json.bind-api
3.0.0
provided
jar


jakarta.validation
jakarta.validation-api
3.0.2
provided
jar


jakarta.ejb
jakarta.ejb-api
4.0.1
provided
jar


jakarta.servlet
jakarta.servlet-api
6.0.0
provided
jar


jakarta.persistence
jakarta.persistence-api
3.1.0
provided
jar


jakarta.xml.bind
jakarta.xml.bind-api
4.0.1
provided
jar


org.glassfish.jersey.media
jersey-media-multipart
3.1.3
provided


org.glassfish.jersey.core
jersey-client
${project.dependency.jersey.version}
provided


org.eclipse.persistence
org.eclipse.persistence.core
3.0.4
provided
jar


org.eclipse.persistence
org.eclipse.persistence.jpa
4.0.2
provided
jar




requires jakarta.cdi;
requires jakarta.ejb;
requires jakarta.inject;
requires jakarta.json;
requires jakarta.json.bind;
requires jakarta.servlet;
requires jakarta.validation;
requires jakarta.ws.rs;
requires jakarta.xml.bind;
requires jersey.client;
requires jersey.media.multipart;
requires org.eclipse.persistence.jpa;



From: Stephen G. Parry 
Sent: Saturday, November 11, 2023 11:47 AM
To: Bradley Willcott ; John Manko ; 
users@netbeans.apache.org 
Subject: [EXTERNAL] Re: Converting Java 8 to 17+, conflicts with modules


CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


>From my experience, minimize your direct Maven dependencies. Try to use 
>services as much as possible. For example. eclipselink should be a runtime, 
>not a compile time dependency and should be injected as service:


module-info.java:

requires jakarta.persistence;
uses jakarta.persistence.spi.PersistenceProvider;

pom.xml:


org.eclipse.persistence
eclipselink
4.0.1
runtime



Basically, strip the dependencies back to nothing and only add the ones that 
stop the compilation from failing or the code from running, one mod at a time.

Some of your dependencies may fail to load because they are not fully modular 
yet. Your options then are:


a) make your application non-modular, for now. This still works for most things 
apart from Java FX. Doing non-modular FX is like urinating into a stiff breeze.

b) use moditect to patch the non-modular dependencies, until modular ones are 
available. It's a hack, but it works surprisingly well.



On 11/11/2023 15:42, Bradley Willcott wrote:
Hi John.
Check out this site: 
https://www.digitalocean.com/community/tutorials/maven-dependency-tree-resolving-conflicts<https://urldefense.com/v3/__https://www.digitalocean.com/community/tutorials/maven-dependency-tree-resolving-conflicts__;!!HzYX23eHnp2Wbe4!UJMA1Rmsp-1cH7vOEIOeagJSpQlcBx-0D0STmQ9DCsdCC3uI-7hcS--YJXfnhsVXFxbD1fEqbNnV3bw$>.
It should give you what you need to know.

Regards,
Brad.

On 11/11/23 06:20, John Manko wrote:
This might not be a purely Netbeans issue, but maybe NB has some tooling to 
assist, or someone can answer a quick question.

I'm in the middle of converting Java 8 project to Java 17/21 (A little late in 
the game, I know!  I'm beholden to other forces beyond my control.), and I have 
a library module with a module-info like such:

module com.my.lib {

requires com.google.common;
requires com.google.gson;
requires eclipselink;
requires jakarta.jakartaee.api;
requires java.loggin

Converting Java 8 to 17+, conflicts with modules

2023-11-10 Thread John Manko
This might not be a purely Netbeans issue, but maybe NB has some tooling to 
assist, or someone can answer a quick question.

I'm in the middle of converting Java 8 project to Java 17/21 (A little late in 
the game, I know!  I'm beholden to other forces beyond my control.), and I have 
a library module with a module-info like such:

module com.my.lib {

requires com.google.common;
requires com.google.gson;
requires eclipselink;
requires jakarta.jakartaee.api;
requires java.logging;
requires java.sql;
requires jersey.client;
requires jersey.media.multipart;
requires org.apache.pdfbox;
requires org.apache.fontbox;

exports com.my.package;

}


I get the following error message in Netbeans:

module com.my.lib reads package jakarta.faces.context from both 
jakarta.faces.api and jakarta.jakartaee.web.api


What am I'm doing wrong here?   Is there any tooling in NB to help create the 
module-info based on declared maven dependencies?

Below is are pom.xml deps (test deps removed):



jakarta.platform
jakarta.jakartaee-api
10.0.0
provided


org.eclipse.persistence
eclipselink
4.0.2
provided


org.glassfish.jersey.core
jersey-client
3.1.3
provided


org.glassfish.jersey.media
jersey-media-multipart
3.1.3
provided


com.google.code.gson
gson
2.9.1


com.google.guava
guava
32.1.3-jre


org.apache.pdfbox
pdfbox
3.0.0






nbactions.xml schema definition

2023-08-31 Thread John Manko
Where can I find the schema definition for nbactions.xml?  I'm using the Payara 
Micro maven plugin, and I need to pass some environment variables to the war.  
I'd like to put the variables in an .env file (similarly how I do with the 
Docker runtime).

Here is my nbactions.xml:




debug

war


resources:resources
compiler:compile
war:exploded
payara-micro:stop
payara-micro:start


-Xdebug 
-Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}
true
true
false
user
password
MyDatabase
MyServer
1433
true



run

war


resources:resources
compiler:compile
war:exploded
payara-micro:stop
payara-micro:start


false
user
password
MyDatabase
MyServer
1433
true




In Netbeans, whether running or debugging, those environment variables are 
passed to the war runtime and used in payara-resources.xml:


https://raw.githubusercontent.com/payara/Payara-Server-Documentation/master/schemas/payara-resources_1_6.dtd;>













When running a docker container, I can use a file, say .env, and load that up 
when running the container.

DATABASE_NAME=MyDatabase
DATABASE_SERVER=MyServer
DATABASE_SERVER_PORT=1433
DATABASE_USER=user
DATABASE_PASS=password
DATABASE_SERVER_ENCRYPT=true

The motivation is to add the .env file to .gitignore so each developer can 
customize those connection properties in that file but leave nbactions.xml 
alone.


Re: Newbie help

2023-05-12 Thread John Lavelle
Peter,

Maybe this will help: https://netbeans.apache.org/help/index.html

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Fri, May 12, 2023 at 1:44 PM Peter Toye  wrote:

> Hello
>
>
> I'm returning to NetBeans after a long bap, and have forgotten almost
> everything I know, so please be indulgent.
>
>
> I'm trying to work out how to organise the workflow for developing a
> program - I suspect it's changed since I was last here.
>
>
> What I can't work out is how to separate the development from the release
> version of the project. I've got a working version which I want to use, but
> I want to extend it without losing sight of the original. I've been using
> Visual Studio for other projects, and they have a separate configurations
> for the dev and release versions and the executables go into different
> directories. Is there a way of doing this in NetBeans? As far as I can see,
> once I've started a debug session, the release version is overwritten.
>
>
> I can't see any documentation on the Apache NetBeans website about the
> basics of developing programs - I expect I'm looking in the wrong place.
>
>
> Thanks in advance,
>
> Peter
> mailto:netbe...@ptoye.com 
> https://www.ptoye.com <http://www.ptoye.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: Git branch display

2023-03-25 Thread John Lavelle
Hi,

There used to be a Plug-in called Show_Branch_In Statusbar.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Sat, Mar 25, 2023 at 6:34 PM Thomas Wolf  wrote:

> 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 <
> ad...@goodunlimited.co.uk> a écrit :
>
>
> Is there a way of getting NetBeans to (always) display the git branch I
> currently am switched to?
>
> Mark
> (v17)
>
> -
> 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
>
> <1679765052193blob.jpg>
>
> -
> 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
>
>


java.lang.NullPointerException

2023-03-08 Thread John Lavelle
Hi,

I'm getting a *java.lang.NullPointerException* when opening a .json file
in NetBeans. Note the file opens correctly just this Silent Error is thrown.

The error is:
Cannot invoke "org.openide.filesystems.FileObject.getMIMEType()" because
"this.internalFo" is null

I believe it is because there are no Code Templates for JSON and the Code
Templates window is open. Although not tested, I believe the same error
will be thrown if other Code Templates sections don't have any code
templates defined.

To recreate:

   1. Open the Code Templates window (*Window>Code Templates*)
   2. Create a JSON file with some dummy JSON data and give the file the
   extension: .json
   3. In *Tools>Options>Editor>Code Templates>JSON* make sure there are no
   templates
   4. Open the file in NetBeans.
   5. Silent Error (*Unexpected Exception*) is thrown

This error can be eliminated by adding a JSON Code Template to the Code
Templates (JSON) section.

This bug has been reported.

Best regards,
John


Re: Namespace for a php project?

2023-03-06 Thread John Lavelle
Create a Template (Tools>Templates) and put it in there.

Best regards,
John

On Mon, Mar 6, 2023 at 10:40 AM Admin @ Goodun 
wrote:

> Can I set default namespace(s) for a php project?
>
> A search suggests that it should be on the project properties "sources"
> page, but it isn't (NB 17).  Has it been moved?  I haven't been able to
> find it.
>
> Has it been removed?  If so, why.  And if so, why is there still a, now
> redundant, dropdown for it in the new php class dialogue?
>
> TIA
> Mark
>
> -
> 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: PHP - connection to localhost

2023-02-26 Thread John Lavelle
Hi,

In the "Project>Properties>Run Configuration" check that the following:


   - Run As = Local Web Site (running on local web server)
   - Project URL = http://{YOUR site name}/
   - Index File = index.php  // Use the Browse button to find it if
   necessary
   -
   - Advanced should be set to Default


Best regards,
John

JLavelle.uk https://www.youtube.com/jlavelleuk


On Sun, Feb 26, 2023 at 9:34 AM alain desbouvrie 
wrote:

> Hi,
> This is the first time I try and use this mailing, therefore I am sorry in
> case I don’t use it properly.
> I am running on Netbeans 11.2 on a Mac with MAMP.  I have been uusing this
> configuration for quite a while with total satisfaction.
>
> For some reason it now refuses to connect to localhost.  I don’t think I
> have made any change on anything.  It does not look like being related to
> MAMP since I can run my php project locally  without Netbeans.  I just
> don’t have any idea what to look at for fixing the issue.  Any help is
> welcome :)
>
> Alain D
> -
> 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: Predefined Variables for File Templates

2023-02-07 Thread John Lavelle
Scroll down and you'll find them...

Best regards,
John

On Tue, Feb 7, 2023 at 8:41 AM Tom Rushworth  wrote:

> I'm sorry but for me that's overkill.  I don't need to create a new
> template.  I'm happy to modify an existing one.  Therefore, all I need is a
> list of the available predefined variables.
>
> Tom
> On 2/7/2023 2:16 AM, John Lavelle wrote:
>
> https://netbeans.apache.org/tutorials/60/nbm-filetemplates.html
>
> Best regards,
> John
>
>
> On Tue, Feb 7, 2023 at 2:42 AM Tom Rushworth  wrote:
>
>> When creating a file template, I know that there are predefined
>> variables. For example, ${date}, and ${time}.  Will someone point me to
>> a list of all the predefined variables that I can use?
>>
>>
>> -
>> 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: Predefined Variables for File Templates

2023-02-06 Thread John Lavelle
https://netbeans.apache.org/tutorials/60/nbm-filetemplates.html

Best regards,
John


On Tue, Feb 7, 2023 at 2:42 AM Tom Rushworth  wrote:

> When creating a file template, I know that there are predefined
> variables. For example, ${date}, and ${time}.  Will someone point me to
> a list of all the predefined variables that I can use?
>
>
> -
> 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: Rainbow Braces - ???

2023-01-24 Thread John Lavelle
I use Rainbow Braces on both version 15 and 16 of Netbeans without a
problem.

Best regards,
John


On Tue, Jan 24, 2023 at 8:51 PM Philippe FICHET
 wrote:

> The plugin (https://plugins.netbeans.apache.org/catalogue/?id=25) is
> validated only for Netbeans versions between 12 and 15.
>
> The owner of the plugin has to do an action to ask for the validation for
> Netbeans 16 (and soon 17)
>
> It is still possible to download and install it manually from
> https://plugins.netbeans.apache.org/catalogue/download/197/netbeans-rainbow-braces-1.3.1.nbm
> (or by clicking on "NB 15" on the plugin page).
> Le 24/01/2023 à 00:30, Amn Ojee Uw a écrit :
>
> I was looking for Rainbow Braces in the Tools > Plugins > Available
> plugins, but to no avail! How do I install this plugin?
>
> 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
>
>


"Background scanning of projects" message every second

2023-01-21 Thread John
Hi, Running  Product Version: Apache NetBeans IDE 16 Java: 19.0.1; OpenJDK 64-Bit Server VM 19.0.1+10-21 Runtime: OpenJDK Runtime Environment 19.0.1+10-21 System: Windows 10 version 10.0 running on amd64; UTF-8; en_GB (nb) User directory: C:\Development\NetBeans\John Cache directory: C:\Development\NetBeans\Cache   I get a constant repeat of the above message in the status bar. It happens every second or so and unlike the first time when Netbeans opens where the progress bar shows a %age is counted up to 100%, the progress bar quickly moves to about half way and then the dialog vanishes (No %age).  I have created a Windows Video at https://www.dropbox.com/sh/pe75yrfz87t7fza/AAALcjuLc3YfSVU2PNIfjMeGa?dl=0 if it helps anyone to visualise the issue. I have checked my user folder ‘log’ and see several messages.log files, each containing hundreds of similar ‘posts’ – I have included two examples below. From the message title ‘SCAN_EXCEEDS_RATE ID’, it looks like this is not the expected behaviour. My question is ‘How do I interpret these posts to locate the reason why it is Background Scanning so frequently?’ Each iteration in the log seems to be nearly identical apart from what looks to be “time spent” attributes. My only guess is that the analysis is getting stuck in a loop somewhere so that it can’t be resolved and so is making another attempt.  Thanks SCAN_EXCEEDS_RATE ID: 4902, Type:INDEXERTime scheduled: Sat Jan 21 09:32:53 GMT 2023Time executed: Sat Jan 21 09:32:53 GMT 2023Time finished: Sat Jan 21 09:32:53 GMT 2023Scanned roots: [< root = file:/C:/Development/Work/spellingBee/src/main/java/; spent = 403; crawler = 1; res = 11; allRes = -1>], total time: 403Current root(s): []Current indexer(s): Time spent in indexers:    CopyResourcesIndexer: 0    TLIndexer: 0    TaskListIndexer: 1    css: 0    html: 0    java: 274    lsp-indexer: 1    org-netbeans-modules-jumpto-file-FileIndexer: 10    org.netbeans.modules.java.source.indexing.COSSynchronizingIndexer: 1    tests: 4    text/x-java: 30Time spent in indexers, in individual roots:    file:/C:/Development/Work/spellingBee/src/main/java/    CopyResourcesIndexer: 0    TLIndexer: 0    TaskListIndexer: 1    css: 0    html: 0    java: 274    lsp-indexer: 1    org-netbeans-modules-jumpto-file-FileIndexer: 10    org.netbeans.modules.java.source.indexing.COSSynchronizingIndexer: 1    tests: 4    text/x-java: 30Time in index store: 76Time crawling: 2Stacktrace:    java.base/java.lang.Thread.getStackTrace(Thread.java:2550)    org.netbeans.modules.parsing.impl.indexing.LogContext.create(LogContext.java:111)    org.netbeans.modules.parsing.spi.indexing.Context.addSupplementaryFiles(Context.java:217)    org.netbeans.modules.java.source.indexing.JavaBinaryIndexer.doIndex(JavaBinaryIndexer.java:117)    org.netbeans.modules.java.source.indexing.JavaBinaryIndexer.index(JavaBinaryIndexer.java:86)    org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$1.run(Indexable.java:126)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:274)    org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:124)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexBinary(RepositoryUpdater.java:3099)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.lambda$scanBinary$2(RepositoryUpdater.java:5363)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2119)    org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2117)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2106)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1900(RepositoryUpdater.java:135)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanBinary(RepositoryUpdater.java:5391)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$BinaryWork.getDone(RepositoryUpdater.java:3929)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452)    org.netbeans.modules.parsing.impl.indexing.RepositoryUpdate

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

2022-11-29 Thread John
Scott, Thanks for the advice, and indeed, turning off Suggestions > Expand Enhanced For Loop, removes the warning . I don’t then get a ‘Can use functional operations’ hint instead but that might be due to the context the for loop exists in.  Do you happen to know where to find hint ‘Can use functional operations’ in the Options?  I can’t locate something similar when looking through the lists. I prefer to use functional operations when there isn’t exception handling needed (feels messy then and so prefer the older syntax). Michael, suggestions which are only active at the current line where your cursor is, don't necessary produce better code, they are just there to transform parts of it in case you want to change something. Internally they are hints of a kind called actions. Thanks for the clarification, I was wondering why some markers only appeared when the line had focus. I suppose my issue with this is probably just the icon which has an “!” implying that something is not right rather than use a different icon (e.g. ‘?’ type icon) to hint that it is offering suggestions. I couldn’t find anywhere where you could use your own icons for the hints otherwise I would amend the ‘Warning on Current Line’ one to something a little softer. You should notice that if you change the loop to the iterator version, but not actually use the iterator except calling next() it will also add a hint called "convert to for-loop" which does the opposite.  I did notice that and, for me, that made it more confusing, even contradictory. But then I think that is more to do with my interpretation of the icon as I read that as ‘use best practice’ and so it was like Netbeans couldn’t make up its mind which syntax was best 樂. John  From: Scott PalmerSent: 28 November 2022 17:51To: JohnCc: NetBeans Mailing ListSubject: Re: NetBeans `Convert to for (Iterator...) {}' suggestion I agree that this isn’t usually a good suggestion.  It is available as a refactoring for when you might need an iterator, but by no means should the IDE “warn” about it.  I think that is the current behaviour though.  The line is not marked with a hint lightbulb unless I put the cursor on that line. So it’s not like it shows in the gutter as a warning like you would get for an unused private function or similar. It appears to be the hint “Expand Enhanced For Loop” that you will find under “Suggestions” in the editor Hints panel. When I turn that off the”expand” hint, the suggestion changes to  “Can use functional operations” which coverts the loop to this.dictionart.forEach(word -> {...}); ScottOn Nov 28, 2022, at 9:00 AM, John  wrote: Hi, Quick one. I have just installed a vanilla Netbeans 15 and when I write a line such as for (Word word : this.dictionary) {..} Netbeans offers me a Warning / Recommendation  `Convert to for (Iterator...) {}' That, if chosen, converts my syntax to for (Iterator it = this.dictionary.iterator(); it.hasNext();) {...} This is a lot less readable to me and I therefore wanted to turn off this hint.  However, The  doesn’t offer the option to disable this hint and I couldn’t find it in the Tools > Options > Editor > Hints (Java) list, although I found lots of other nice hints that I have turned on!   I found this on Stack Overflow https://stackoverflow.com/questions/24263479/netbeans-convert-to-for-iterator-suggestion But that was to do with which one is more efficient and I suspect that the warning is due to the fact that the more verbose version is quicker if the number of elements in the iterator is very large. Am I stuck with this, or is it that I just overlooked where the hint is in the long list?  John 

-
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



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

2022-11-28 Thread John
Hi, Quick one. I have just installed a vanilla Netbeans 15 and when I write a line such as for (Word word : this.dictionary) {...} Netbeans offers me a Warning / Recommendation  `Convert to for (Iterator...) {}' That, if chosen, converts my syntax to for (Iterator it = this.dictionary.iterator(); it.hasNext();) {...} This is a lot less readable to me and I therefore wanted to turn off this hint.  However, The  doesn’t offer the option to disable this hint and I couldn’t find it in the Tools > Options > Editor > Hints (Java) list, although I found lots of other nice hints that I have turned on!   I found this on Stack Overflow https://stackoverflow.com/questions/24263479/netbeans-convert-to-for-iterator-suggestion But that was to do with which one is more efficient and I suspect that the warning is due to the fact that the more verbose version is quicker if the number of elements in the iterator is very large. Am I stuck with this, or is it that I just overlooked where the hint is in the long list?  John 

-
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



My .class files keep auto-updating their timestamp every minute

2022-06-09 Thread John
Once I have compiled a change to one of my java class files, the class file that is generated updates the timestamp of the rebuilt class file as expected but then appears to be updating its timestamp every minute without any interference from me. I don’t have any other application open and when I close Netbeans, the incrementing of the timestamp stops. It may actually be updating the timestamp more regularly than that, but I can only see the minutes change in the Windows File Explorer. The timestamp on just the recompiled class does refresh exactly on the minute though. If I Shift-F11 to rebuild all the classes in the project, then they all change their timestamps on the minute. I can repeat the behaviour each time I start Netbeans and (say) make a minor change to another java class file and F11 to rebuild. That .class file now starts auto-incrementing its timestamp. This is causing Tomcat issues as it is checking for any file changes and then refreshing its WebApp which means that I have to shut down  Anyone else noticed this and is there a setting to disable it if I am currently using Netbeans 12.6 using Java 17. I have amended the default Maven .pom file to store the classes directly into the WEB-INF\classes folder of my web application for convenience but I can’t see why that would have any impact, but mention it for completeness.      C:\Development\Tomcat\apache-tomcat-10.0.16\webapps\honeycomb\WEB-INF\classes     Having Googled for issues, they suggested clearing cache and turning off Tools > Options > Miscellaneous > Files tab > “Enable auto-scanning of sources”  I have cleared the Netbeans cache and relaunched NetBeans having restarted Windows (just to be sure!), I left it for a while to refresh the cache.  As an aside, I had ‘Background scanning projects’ keep repeating (every second or so) until I shut NetBeans down. Previously, prior to clearing the cache this message rotated ad-infinitum with ‘Checking for external changes’. This appears to have gone away for now, having closed and restarted Netbeans again.  Any help would be appreciated as I currently have to keep Netbeans closed most of the time in order for my testing / front end to work as expected. Thanks in advance John

-
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: BufferedReader and BufferedWriter : non-static variable cannot be accessed from the static context

2022-05-23 Thread John Barrow
I am relatively new to Java, and get this occasionally myself due to the
"static main" method being typed within the class.

The issue is that you are trying to access "BF" and "str" that exist inside
a class, from a static environment (main). I think it would have helped if
the exception had been a little more explicit, mentioning the fields that
were at fault.

If you were accessing the class from another source file (class) you would
first have to create an instance, i.e.

Add2StrJOp myAdd2StrJOp = new Add2StrJOp();

Then you could access "BF" and "str" as

myAdd2StrJOp.BF and myAdd2StrJOp.str.

As the main method is a static method, it also needs to create an instance
of Add2StrJOp using "new" before you can access the fields within the
class, just as if using your class from an external source file.

So add the line above at the top of your main method, just after the "try
{" line and then prefix the class fields with your newly created instance
variable to reference them.

Hope that helps.

John

On Sun, 22 May 2022, 23:53 Zulfi Khan,  wrote:

> Hi,
>
> I have written the following code:
>
> /*
>  * Click
> nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to
> change this license
>  * Click
> nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java
> to edit this template
>  */
>
> package com.mycompany.add2strjop;
> import javax.swing.*;
> import java.lang.NumberFormatException;
> import java.io.FileWriter;
> import java.io.FileReader;
> import java.io.BufferedWriter;
> import java.io.BufferedReader;
> import java.io.IOException;
> public class Add2StrJOp {
>   BufferedReader BF= null;
>   BufferedReader BW= null;
>   String str = "test";
>
>public static void main(String args[]){
>   try{
>   FileReader file = new FileReader("abc.txt");
>   BF = new BufferedReader(file);//E
>  //BF= new BufferedReader(new FileReader("abc.txt"));
>   while ((str = BF.readLine())!=null){//E
> JOptionPane.showMessageDialog(null, str);//E
>   //JOptionPane.showMessageDialog(null, "hello World");
> //BF.clos()
>   }
>  }catch(IOException e){
>   e.printStackTrace();
>  }
>   finally{
>  try{
> if( BF!=null){//E
>BF.close();//E
> }
>  }catch(IOException e) {
> e.printStackTrace();
>   }
> }//finally
>   try{
> BW = new BufferedWriter(new FileWriter("abc.txt"));//E
> String str= "This is a test";
> BW.write(str);//E
> BW.close();//E
>  }catch(IOException e) {
>  e.printStackTrace();
>  }
> }
> }
>
>
>
> I have commented the lines as //E where I am getting the error "Non-static
> variable cannot be referenced from static context.
>
> Zulfi.
>
>
>


RE: Unexplainable [!] on file with no lines marked

2022-02-25 Thread John
Jason, Firstly, thanks for your suggestion, however I had already tried that, including shutting down windows, clearing cache, ensuring NetBeans fully loaded (went away and had lunch!) before doing anything,  clean and rebuild the main project. I even copied the source into notepad (to strip any offending characters), created a new Java Class file in the same package and pasted it in. Immediately the [!] appeared against that file as well! I then did a grep search of the NetBeans directory for the offending file name and voila! In my John/var/log/messages.log it is reporting that NetBeans produced an error which I will (as requested) raise as a bug against java/source, but in case you are interested, I have attached the offending log text file. Apparently the exception is  java.lang.IllegalStateException: java.lang.AssertionError: Method parameter without PARAMETER flag    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383) Whatever that means! Again, thanks for your time in responding which led me to think about deducing what might be causing it. John From: Jason AbreuSent: 24 February 2022 19:42To: users@netbeans.apache.orgSubject: Re: Unexplainable [!] on file with no lines marked John, I've noticed on NetBeans 12.6 that there are some background processes that get hung up every now and then.  Close NetBeans and check your Task Manager and look for any lingering Java processes.  Kill them and re-open NetBeans.  Let it do it's background scan and check your file to see if it still has the error indicator.  A tell-tale, that I found, was that a Clean-Build works to build the project, even with files flagged as containing an error.  This has even bitten me with building Gradle projects. -- Jason Abreu On 2/23/22 07:00, John Barrow wrote:> Hi,> > I have recently cloned Tomcat for some development work and resolving> issues and came across a file that had a red [!] on the file tab, but> the file (very short) didn't mark any lines as exceptions. The project> also builds perfectly.> > I have attached a screenshot of the offending file.> > Is there a way of determining why the [!] appears?> > Hovering over or > > I have shut down NetBeans, removed the cache folder and tried again> but it is persistently there.> > Tomcat is an Ant project so that may be relevant as I normally work with Maven.> > John> > -> 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.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  /*
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  See the NOTICE file distributed with
 *  this work for additional information regarding copyright ownership.
 *  The ASF licenses this file to You under the Apache License, Version 2.0
 *  (the "License"); you may not use this file except in compliance with
 *  the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.apache.catalina.ant;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import org.junit.Assert;
import org.junit.Test;

import org.apache.catalina.startup.Tomcat;
import org.apache.catalina.startup.TomcatBaseTest;
import org.apache.tools.ant.BuildException;

public class TestDeployTask extends TomcatBaseTest {

@Test
public void bug58086a() {
DeployTask deployTask = new DeployTask() {

@Override
public void execute(String command, InputStream istream, String 
contentType, long contentLength)
throws BuildException {
Assert.assertEquals("/deploy?path=somepath", command);
Assert.assertEquals("application/octet-stream", contentType);
try {
istream.close();
} catch (IOException e) {
}
}

};

setDefaults(deployTask);

testExecute(deployTask, "file:./test/deployment/conte

RE: .jsp files showing exceptions

2022-02-24 Thread John
Juan, Just to be clear, Tomcat provides all the scripts to build the NetBeans environment, all you need to do is open an existing project in NetBeans once you have finished the instructions within the two files contained in the previous email! John From: Juan AlgabaSent: 24 February 2022 00:20To: John BarrowCc: NetBeans User GroupSubject: Re: .jsp files showing exceptions Also HOW, did you open the tomcat source code using netbeans? Netbeansas far as I'm aware, won't recognize ant projects without modificationlike it does with maven, it needs to generate an IDE-generated antscript (i.e. build.xml), ¿Did you use the "new project with existingsources"? ¿What options did you select during that wizard? On Wed, Feb 23, 2022 at 3:57 PM Juan Algaba  wrote:> > Would you mind telling us exactly what branch/commit did you clone> tomcat from so that people can try reproducing your issue?> > https://github.com/apache/tomcat> > Also, have you modified build.xml after cloning the project? (e.g.> adding  )> > > On Wed, Feb 23, 2022 at 4:13 AM John Barrow  wrote:> >> > Hi,> >> > Similar to the previous email (sent a few minutes ago), I am working> > with the Tomcat project and NetBeans is reporting exceptions on a few> > of the .jsp files. I have attached screen shots of one (very basic)> > .jsp file and I can't seem to resolve the exception. I suspect that it> > is some sort of configuration issue in NetBeans / project definition> > of Tomcat. Again, Tomcat is an Ant based project.> >> > I have googled around and found very old reported issues with Eclipse> > lying about exceptions, but not about NetBeans and so wondering if> > this is something I should just ignore.> >> > I used the lightbulb at the top right-hand-side of the file to disable> > HTML error checking for this file but that didn't have any effect.> >> > Again, attached three screen shots of the exceptions reported. While> > not an expert, this 'Hello World' jsp page looks to be valid with it> > just including a simple string _expression_.> >> > Thanks> >> > John> >> > -> > 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> > > > --> > -Juan Algaba   -- -Juan Algaba 

-
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: .jsp files showing exceptions

2022-02-24 Thread John
Juan, Firstly, thanks for taking an interest in my issue regarding .jsp files and possibly taking on the challenge of installing Tomcat development environment to investigate this. To answer your questions from the last few emails, Running Netbeans 12.6 on Windows 10 with JDK 17, although Tomcat is currently built with 11, but using either JDK yields the same issue. In essence, all I was trying to do was get Tomcat to compile and deploy on my local machine  So I forked and cloned a copy of main from https://github.com/apache/tomcat into its own folder (C:\Community in my case, to keep it separate from my local developments) . I worked through the BUILDING.txt file (Build & Test) – note ‘ant test’ takes 35 minutes on a 4 core i7 chip!  Then CONTRIBUTING.md (ant ide-netbeans) that creates a free form project with an nbproject folder containing a number of files, including project.xml There are a few issues with the quality of the project.xml file (that I am still working through with Tomcat) but this doesn’t affect the two issues I reported to Netbeans (rogue [!] for no reason and [!] for some .jsp files. I have attached the version of project.xml that I am using and you can do a text compare to see the differences.  You don’t need to run Tomcat to see the issues that appear in the Projects window, but if you do then  CMD prompt (if Windows, don’t know the UNIS equivalent)cd output\build\bin   (from the folder you cloned Tomcat into)catalina.bat run  launches Tomcat, Ctrl-C to terminate the session I have successfully done all this and so if you have issues, rather than spending ages trying to resolve them, happy to share my experience. John From: Juan AlgabaSent: 24 February 2022 00:32To: John BarrowCc: NetBeans User GroupSubject: Re: .jsp files showing exceptions Found this in the Tomcat source code https://github.com/apache/tomcat/tree/main/res/ide-support/netbeans ¿Are these the instructions you followed? On Wed, Feb 23, 2022 at 4:20 PM Juan Algaba  wrote:> > Also HOW, did you open the tomcat source code using netbeans? Netbeans> as far as I'm aware, won't recognize ant projects without modification> like it does with maven, it needs to generate an IDE-generated ant> script (i.e. build.xml), ¿Did you use the "new project with existing> sources"? ¿What options did you select during that wizard?> > On Wed, Feb 23, 2022 at 3:57 PM Juan Algaba  wrote:> >> > Would you mind telling us exactly what branch/commit did you clone> > tomcat from so that people can try reproducing your issue?> >> > https://github.com/apache/tomcat> >> > Also, have you modified build.xml after cloning the project? (e.g.> > adding  )> >> >> > On Wed, Feb 23, 2022 at 4:13 AM John Barrow  wrote:> > >> > > Hi,> > >> > > Similar to the previous email (sent a few minutes ago), I am working> > > with the Tomcat project and NetBeans is reporting exceptions on a few> > > of the .jsp files. I have attached screen shots of one (very basic)> > > .jsp file and I can't seem to resolve the exception. I suspect that it> > > is some sort of configuration issue in NetBeans / project definition> > > of Tomcat. Again, Tomcat is an Ant based project.> > >> > > I have googled around and found very old reported issues with Eclipse> > > lying about exceptions, but not about NetBeans and so wondering if> > > this is something I should just ignore.> > >> > > I used the lightbulb at the top right-hand-side of the file to disable> > > HTML error checking for this file but that didn't have any effect.> > >> > > Again, attached three screen shots of the exceptions reported. While> > > not an expert, this 'Hello World' jsp page looks to be valid with it> > > just including a simple string _expression_.> > >> > > Thanks> > >> > > John> > >> > > -> > > 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> >> >> >> > --> >> > -Juan Algaba> > > > --> -Juan Algaba   ---Juan Algaba 

-
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: .jsp files showing exceptions

2022-02-24 Thread John
André, Thanks for your suggestion, I am using JDK 11, the one that Tomcat is currently being built with and confirmed that it is set in the project.xml file.  I couldn’t find any other options, apart from setting the default language for Netbeans to UTF-8, In netbeans.confFind netbeans_default_options=...Add -J-Dfile.encoding=UTF-8 to the end Unsurprisingly, this made no difference at all. If you memory is good, do you recall where else I may look to confirm compatibility? John From: André PfeifferSent: 23 February 2022 14:40To: John BarrowSubject: Re: .jsp files showing exceptions Hello John Barrow, It seems you have environment/dependency issues. Have you checked the java version being used vs target output?It has been some time since I last used netbeans but if you go through project properties you should find something odd. Best regards, André Pfeiffer Em qua., 23 de fev. de 2022 às 09:12, John Barrow <jbarrow...@gmail.com> escreveu:Hi,Similar to the previous email (sent a few minutes ago), I am workingwith the Tomcat project and NetBeans is reporting exceptions on a fewof the .jsp files. I have attached screen shots of one (very basic).jsp file and I can't seem to resolve the exception. I suspect that itis some sort of configuration issue in NetBeans / project definitionof Tomcat. Again, Tomcat is an Ant based project.I have googled around and found very old reported issues with Eclipselying about exceptions, but not about NetBeans and so wondering ifthis is something I should just ignore.I used the lightbulb at the top right-hand-side of the file to disableHTML error checking for this file but that didn't have any effect.Again, attached three screen shots of the exceptions reported. Whilenot an expert, this 'Hello World' jsp page looks to be valid with itjust including a simple string _expression_.ThanksJohn-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 

-
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: Integrate MS-SQL JDBC Sources into NetBeans to enable drilldown of methods

2022-02-04 Thread John
Hi Lars, I use Maven and, while not an expert, use it to (for example) to check for latest versions – e.g. mvn versions:use-latest-releases and so have automated the tasks that I find useful. This only takes me a few seconds to do and, as I am only developing locally as a hobby, I do this regularly so always working on the latest version. My issue is focused on how NetBeans integrates those sources as the information available on the web seems a bit thin and as I asked in my second point, I can’t locate where in NetBeans to see the configuration settings I have already made.  Are you saying that I need to reference the source files inside my pom.xml (I.e. a Maven solution) and that NetBeans will auto-reference that information? I have checked the pom.xml file, and it only references the dependency – I.e.     com.microsoft.sqlserver    mssql-jdbc    10.2.0.jre17    jar     Since sending the email, I have explored the Maven repository (.m2) and looking in  C:\Users\John\.m2\repository\com\microsoft\sqlserver\mssql-jdbc\10.2.0.jre17 I find that I have all the jar files for the sources and Javadoc. mssql-jdbc-10.2.0.jre17-javadoc.jarmssql-jdbc-10.2.0.jre17-javadoc.jar.sha1mssql-jdbc-10.2.0.jre17-sources.jarmssql-jdbc-10.2.0.jre17.jarmssql-jdbc-10.2.0.jre17.jar.sha1mssql-jdbc-10.2.0.jre17.pommssql-jdbc-10.2.0.jre17.pom.sha1 and used jar -tf mssql-jdbc-10.2.0.jre17-sources.jar to see that they have the .java files I was expecting. So now I think that I have made a mistake when selecting the file in ‘Add Local Sources’ to be the zip that I downloaded from GitHub which actually contains the project if I wanted to build it locally! So, if that analysis is correct, then I am initially looking for help with the following question of the three I initially posed so I can try linking up with the mssql-jdbc-10.2.0.jre17-sources.jar in the Maven repository. > Out of curiosity, if I made a mistake and picked the wrong .zip file, how would I go about amending that setting to use a different .zip file. John From: Lars Bruun-HansenSent: 04 February 2022 16:42To: JohnSubject: Re: Integrate MS-SQL JDBC Sources into NetBeans to enable drilldown of methods Hi JohnIt seems to me that you are dealing with a lot of time consumingissues (downloading dependencies from odd places, attaching sourcesand what not) which most Java developers don't have to deal with. Inshort: I think you should invest time in learning Maven or Gradle. Itwill truly boost your productivity. Having said that, for your particular use-case, it is not obvious,even in the situation where Maven/Gradle had seamlessly done all thesetup for your (this setup is a prerequisite). Even with all yourducks lined up (sources downloaded and attached) you still face theminor problem that all the JDBC objects are really interfaces. So whenyou Ctrl-click on a method you will be taken to the interface class,not its particular implementation (in your case Microsoft's JDBCdriver). The trick for that would be to use the debugger. This willlead you into the source code for the actual implementation, notmerely the JDBC interface class. Then you can learn from Microsoft'scode if that is what you want. /Lars On Fri, Feb 4, 2022 at 5:08 PM John  wrote:> > Good afternoon,> > > > I am running the latest versions of NetBeans (12.6), JDK 17 and MS-SQL JDBC driver 10.2 on Windows 10.> > > > I want to integrate the JDBC sources into NetBeans so that, if I  on a method (e.g. setAutoCommit of java.sql.Connection.setAutoCommit(boolean), NetBeans will take me to the source file and then allow me to drill-down further within the source of that method, just as I can do for my own methods.> > > > I can do it for all of the JDK – (e.g. String class or String.length()) and this is excellent.> > > > Firstly, I went to the ‘Projects’ tab, located the ‘Dependencies’ folder for my project and opened the folder to locate the jar file for the MS-SQL JDBC support.> > I discovered that if you  on the mssql-jdbc-10.2.0.jre17.jar, you get an option to ‘Download the JavaDoc’ and ‘Add local sources’. I had previously downloaded the latest sources as a .zip file from https://github.com/microsoft/mssql-jdbc/releases into a folder on my local disk.> > > > So, I selected both of those.> > I Downloaded the JavaDoc as I didn’t know where the SQL JavaDoc was on the web.> > For the Local Sources, I pointed at the zip file that I had previously downloaded.> > > > Neither gave any confirmation of completion but when I  again, the options have disappeared and so I am assuming that NetBeans now knows about them.> > > > Anyway, the JavaDoc download appears to have worked as get the relevant popup when hover over the method but when I  the method it takes me into a generated interface with the message at the top of the tab saying “Showing generated source file. No sourc

Integrate MS-SQL JDBC Sources into NetBeans to enable drilldown of methods

2022-02-04 Thread John
Good afternoon, I am running the latest versions of NetBeans (12.6), JDK 17 and MS-SQL JDBC driver 10.2 on Windows 10. I want to integrate the JDBC sources into NetBeans so that, if I  on a method (e.g. setAutoCommit of java.sql.Connection.setAutoCommit(boolean), NetBeans will take me to the source file and then allow me to drill-down further within the source of that method, just as I can do for my own methods. I can do it for all of the JDK – (e.g. String class or String.length()) and this is excellent. Firstly, I went to the ‘Projects’ tab, located the ‘Dependencies’ folder for my project and opened the folder to locate the jar file for the MS-SQL JDBC support. I discovered that if you  on the mssql-jdbc-10.2.0.jre17.jar, you get an option to ‘Download the JavaDoc’ and ‘Add local sources’. I had previously downloaded the latest sources as a .zip file from https://github.com/microsoft/mssql-jdbc/releases into a folder on my local disk. So, I selected both of those.I Downloaded the JavaDoc as I didn’t know where the SQL JavaDoc was on the web.For the Local Sources, I pointed at the zip file that I had previously downloaded.  Neither gave any confirmation of completion but when I  again, the options have disappeared and so I am assuming that NetBeans now knows about them. Anyway, the JavaDoc download appears to have worked as get the relevant popup when hover over the method but when I  the method it takes me into a generated interface with the message at the top of the tab saying “Showing generated source file. No sources are attached to class jar file”. I googled that message and was pointed to the Tools > Java Platforms and while it looks to be just for the JDK, there was a Sources tab and an option to add in a zip to the long list that was already there. I therefore added the “mssql-jdbc-10.2.0.zip” file, containing the sources into the list and re-loaded NetBeans, but that didn’t appear to make any difference. So, I must be missing a key link here. Can someone give me some advice as to what I am doing wrong How do I integrate the MS-SQL sources zip file into NetBeansGiven that I have  on the mssql-jdbc-10.2.0.jre17.jar to ‘Add local sources’, how can I locate the environment setting that I gave NetBeans detailing the file location.  then Properties on the mssql-jdbc-10.2.0.jre17.jar file, tells me that ‘Sources locally’ is ticked and greyed out, but nothing moreOut of curiosity, if I made a mistake and picked the wrong .zip file, how would I go about amending that setting to use a different .zip file. If I unzip the sources that are within the .zip, then I can locate the full source of the method using an external editor, but I would obviously far rather use the power of NetBeans to create a fully integrated solution. I love the fact that I can drilldown into the JDK, it gives me a valuable insight into how each of the methods is coded and a view of how others write their Java. Thanks in advance John 

-
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: Introduction to Profiling Java Applications in NetBeans IDE

2022-01-29 Thread John
In light of your first set of comments, I dived in and just felt around the UI as it bore little resemblance to the document. As you point out, I did get the offer to do an initial calibration when I first asked to do a profile.   Fortunately, I did not see the issues you reported below and as a novice to this tool, can’t be of much help as to interpreting your exceptions. The profiler did present views for each of its options in the drop-down (part of Profile button) and found the ‘Method’ option to be the most useful. I had deliberately, during coding, left a sequential scan within the code that I knew needed optimising to see if the Profiler would spot it. The good news is that it did and reported that most of the time was spent inside this method. I was optimistically hoping to see a count for each line of code visited as that would be ideal for my analysis, as given a specific test set of data, I know how often I am expecting each piece of code to be executed and so if the number of iterations were high then I could investigate further. The ‘hot spots’ icon allowing a quick drill down into the methods and sorting them by the time spent within each method. I did find a column for the number of ‘hits’, as opposed to Total Time, by selecting the drop down arrow on the far right hand side.  However, the number presented was meaningless to me as was way too low. To prove this, I wrote my own debug method to log iterations for specific methods to evaluate a true figure. For example, a method ‘FindDuplicateRow’ reported 403 hits, yet by counting the number of executions of this method I had 48,219! So, while my initial requirement was not met (number of times each line of code executed), the time spent in each of the main methods at least gave an indicator of where inefficiencies may be.  When I first looked around, I can see that there are several plugins to purchase but as a amateur developer, I can’t justify the expense and so this built in one is probably a reasonable substitute. The only issue that I have currently discovered is that it appears that you can profile a specific class or method, which the online documentation also discusses. The UI for this is very clean (right click the suspect routine and select ‘Profile method’ or ‘Profile class’) but if I then run the profiler again, it runs but never displays anything, regardless of what method / class I pick and so I can only profile the whole project. The Output window appears to think that everything is not as it should be as I get the following output with several ‘Profiler engine warning: ...’ messages (see below)  -< com.propertymanagement:propertyManagement >--Building propertyManagement 1.0[ jar ]- --- exec-maven-plugin:3.0.0:exec (default-cli) @ propertyManagement ---Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 18)Profiler Agent: Established connection with the tool*** Profiler engine warning: Cannot use ClassLoader.findLoadedClass() and/or ClassLoader.findBootstrapClass() in ClassLoaderManagerProfiler Agent: Local accelerated sessionProfiler Agent: Initializing...Profiler Agent: Options: >C:\Development\Netbeans\Netbeans-12.6\profiler\lib,5140,10<Profiler Agent: Initialized successfullyProfiler Agent: 250 classes cached.Profiler Agent: 250 classes cached.Profiler Agent: 250 classes cached.Profiler Agent: 250 classes cached.Profiler Agent: 250 classes cached.Loaded the database configuration for C:\Development\Work\PropertyManagement\Configuration\Configuration.jsonRead the database dictionary for propertyManagement    0:00:00.044.502500  [Elapsed   0:00:00.044.502500]Published database dictionary for propertyManagement    0:00:00.054.744300  [Elapsed   0:00:00.099.246800]Import data from c:\PropertyManagement\    0:00:00.002.900500  [Elapsed   0:00:00.102.147300]*** Profiler engine warning: class java.security.AllPermissionCollection loaded by *** Profiler Agent Communication Thread*** Profiler engine warning: class jdk.internal.reflect.GeneratedMethodAccessor1 loaded by *** Profiler Agent Communication Thread*** Profiler engine warning: class jdk.internal.reflect.GeneratedMethodAccessor2 loaded by *** Profiler Agent Communication ThreadImport data complete    0:00:36.330.365900  [Elapsed   0:00:37.207.295700]Execution time:   0:00:37.207.452500Debug messages for [SQL statement] written to c:\Log\PropertyManagement.logProfiler Agent: Connection with agent closedProfiler Agent: Connection with agent closedProfiler Agent: 250 classes cached.BUILD SUCCESSTotal time:  47.465 sFinished at: 2022-01-29T20:56:58Z Now time to go and optimise my sequential scan! John  From: Peter ReamSent: 29 

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.
>


editing code with char completion

2021-12-11 Thread John Smith
When I edit java code, I type an opening parenthesis followed by variable
or whatever and then it's time to get to the closing parenthesis. Netbeans
has put the closing parentheses there already which is handy. But now I
have to interrupt my flow; if I type the closing parenthesis, it adds one
and keeps the one to the right of the cursor... so now I have two. To
prevent that I have to stop typing and use my cursor or "end" key to get
past the auto inserted bracket.

When I edit javascript code, it works perfectly there? But for some reason
java code it never works.

I use Netbeans all day every day (professionally) and have used it since
3.5 so I'm not a new user. But maybe I'm just missing a checkbox somewhere
in the settings somewhere or something?

Ideally it would either skip past the auto inserted closing brackets, or
simply not insert them in the first place.

Any tips?


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: [plugins] [wordpress] [php] PHP WordPress Blog/CMS plugin

2021-08-26 Thread John Lavelle
Some of the dependencies were changed in Netbeans 12.2. You will either
need to contact the creator and see if they've updated the plugin, or, if
the plugin is essential to your project, install NetBeans 12.1.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Thu, Aug 26, 2021 at 4:34 PM Geertjan Wielenga
 wrote:

>
> Probably that plugin doesn’t support the version of NetBeans you’re using.
> At least it would be best to try with the latest release of NetBeans, which
> is 12.4, or even better 12.5 Beta 2.
>
> Gj
>
> On Thu, 26 Aug 2021 at 16:17, Web Developing Team TCA.by 
> wrote:
>
>> [image: image.gif] Hello,
>>
>> I'm using Apache NetBeans 12.3 and try to install "PHP WordPress
>> Blog/CMS" plugin.
>> But the IDE returns error
>> [image: image.gif][image: image.png]
>> What is the PHP Editor that it wants? When can I download it?
>>
>> *Best regards,*
>> *Web Developing & Support department of*
>>
>> *Trakhtenberg Consulting Agency*
>> *https://tca.by* <https://tca.by/>
>>
>> *mob.: +375-29 355-28-81*
>> *mob.: +375-29 555-48-81*
>> *Skype TCA.by*
>> *https://facebook.com/ru.tca.by/ <https://facebook.com/ru.tca.by/>*
>>
>> [image: Mailtrack]
>> <https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
>>  Sender
>> notified by
>> Mailtrack
>> <https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
>>  26.08.21,
>> 17:15:13
>>
>> -
>> 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: Auto Popup Completion Window

2021-08-06 Thread John Lavelle
Geertjan,

Don't take it personally. It's like everything in this world, if something
causes you problems you have two options:

   1. Live with it
   2. Try to find a solution.

I've been living with it for a number of years (I've used NetBeans since
version 6.something) and I haven't found a definitive fix for this in
NetBeans. Though, I did do a video on Code Completion in NetBeans in 2018 -
https://youtu.be/V0ooRAR3Uxk.

It has, recently, become more intrusive and much more of a problem, so I
now need to look at other solutions as I'm spending too much time deleting
"auto-filled suggestions".

I know that NetBeans has been positioning itself as the Java IDE and that's
where the money is for Apache. This means those of us using NetBeans for
other languages are out on a limb and need to find their own solutions. If
I had the time, I'd investigate it and try to fix it in NetBeans. At
present I just don't have the time.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Fri, Aug 6, 2021 at 9:41 AM Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Or we identify the cause and fix the problem?
>
> Gj
>
> On Fri, 6 Aug 2021 at 09:29, John Lavelle  wrote:
>
>> I've tried all sorts of things but none of them worked 100%. it's even
>> worse ewhen writing php and html in the same document.
>>
>> I've started to look at other IDEs as I have to constantly keep going
>> back and deleting the "auto-filled suggestions"
>>
>> Best regards,
>> John Lavelle
>> j...@jql.co.uk
>>
>> Sent via awful Android
>>
>> On Fri, 6 Aug 2021, 01:17 Tom Rushworth,  wrote:
>>
>>> I'm surprised that you can't reproduce the problem.  I didn't do
>>> anything special.  Just opened an HTML files and typed an a.  I haven't
>>> fixed it, but I improved it.  I turned off the spell checker. Now the pop
>>> up at least has something to do with HTML tags.
>>>
>>> Thanks for trying,
>>>
>>> Tom
>>>
>>>
>>> On 8/5/2021 2:57 AM, Emilian Bold wrote:
>>>
>>> I just tried this and I can't reproduce it.
>>>
>>> It I uncheck for HTML there's no auto popup window.
>>>
>>> The popup window does show up if I expressly press cmd+space and stays
>>> there until I close it with Escape or until I select some option.
>>> Maybe this is the odd behaviour you are annoyed by?
>>>
>>> It is odd: in other languages the popup goes away after a while but
>>> for HTML you have the dictionary always suggesting something so once
>>> opened the popup never closes.
>>>
>>> (Though, I suspect this happened before 12.4 too? I dunno).
>>>
>>> --emi
>>>
>>> On Thu, Aug 5, 2021 at 9:24 AM Tom Rushworth  
>>>  wrote:
>>>
>>> Using Netbeans 12.4 on Windows 10.
>>>
>>> I do not want the Auto Popup Completion Window to pop up in HTML and PHP. 
>>> Other file types OK.
>>>
>>> I have checked the Auto Popup for All Languages and unchecked it for HTML 
>>> and PHP.  This seems to have no effect on HTML.  If I type ul, I get a pop 
>>> up with 6 variations of ULCER.  If I type an a,the window pops up.  How can 
>>> I not get the popup window in HTML?
>>>
>>> -
>>> 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: Auto Popup Completion Window

2021-08-06 Thread John Lavelle
I've tried all sorts of things but none of them worked 100%. it's even
worse ewhen writing php and html in the same document.

I've started to look at other IDEs as I have to constantly keep going back
and deleting the "auto-filled suggestions"

Best regards,
John Lavelle
j...@jql.co.uk

Sent via awful Android

On Fri, 6 Aug 2021, 01:17 Tom Rushworth,  wrote:

> I'm surprised that you can't reproduce the problem.  I didn't do anything
> special.  Just opened an HTML files and typed an a.  I haven't fixed it,
> but I improved it.  I turned off the spell checker. Now the pop up at least
> has something to do with HTML tags.
>
> Thanks for trying,
>
> Tom
>
>
> On 8/5/2021 2:57 AM, Emilian Bold wrote:
>
> I just tried this and I can't reproduce it.
>
> It I uncheck for HTML there's no auto popup window.
>
> The popup window does show up if I expressly press cmd+space and stays
> there until I close it with Escape or until I select some option.
> Maybe this is the odd behaviour you are annoyed by?
>
> It is odd: in other languages the popup goes away after a while but
> for HTML you have the dictionary always suggesting something so once
> opened the popup never closes.
>
> (Though, I suspect this happened before 12.4 too? I dunno).
>
> --emi
>
> On Thu, Aug 5, 2021 at 9:24 AM Tom Rushworth  
>  wrote:
>
>
> Using Netbeans 12.4 on Windows 10.
>
> I do not want the Auto Popup Completion Window to pop up in HTML and PHP. 
> Other file types OK.
>
> I have checked the Auto Popup for All Languages and unchecked it for HTML and 
> PHP.  This seems to have no effect on HTML.  If I type ul, I get a pop up 
> with 6 variations of ULCER.  If I type an a,the window pops up.  How can I 
> not get the popup window in HTML?
>
>
> -
> 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
>
>


HTML Autocomplete

2021-07-19 Thread John Lavelle
Here's the video of the screen showing autocomplete popping up as soon as
you press enter even though it is switched off in Options. This a PHP file
but it does exactly the same in an HTML file as well.

https://youtu.be/npzGbVEiDVc

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


Re: Fwd: HTML Disable Auto Completion 12.4

2021-07-12 Thread John Lavelle
Hi,

My apologies for not getting the video done on the HTML autocomplete
problem, unfortunately work intervened. I'll try and get it done for
Wednesday.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Mon, Jul 12, 2021 at 1:01 PM Bradley Willcott 
wrote:

> Hi John.
> I tried using auto-completion with HTML, and got the following screenshots:
>
> I typed: 
>
>
> I typed: [Enter]
>
>
>
> I typed: >
>
>
>
> I typed: [Enter]
>
>
>
> I see nothing wrong with this sequence.  Is your experience different?
>
> Brad.
>
> On 12/7/21 3:27 pm, John Lavelle wrote:
>
>
> Hi,
>
> I'm in meetings all morning. I will video my IDE this afternoon so you can
> see what happens
>
> Best regards,
> John
> j...@jql.co.uk
> Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
> JLavelle.uk https://www.youtube.com/jlavelleuk
>
>
> On Mon, Jul 12, 2021 at 8:39 AM Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> Right, exactly, that makes sense.
>>
>> Does that do the trick for you, John Lavelle?
>>
>> Hope so!
>>
>> Gj
>>
>> On Mon, Jul 12, 2021 at 8:36 AM James Ostrowick 
>> wrote:
>>
>>> So, if you start typing:
>>>
>>> <
>>> >> >>
>>> It will start to show two options:
>>> 
>>> 
>>>
>>>
>>> If you hit enter at the
>>> >>
>>> Point it will select  as this is the first entry.
>>>
>>> What I’ve found to work, to stop this from happening is go into
>>> preferences / options
>>>
>>>
>>> Kind Regards,
>>> James Ostrowick
>>>
>>>
>>> On 12 Jul 2021, at 08:32, Geertjan Wielenga <
>>> geertjan.wiele...@googlemail.com> wrote:
>>>
>>>
>>> I have this in the HTML editor right now:
>>>
>>> >>
>>> Where must I place the cursor and where/when must I press Enter to see
>>> the problem?
>>>
>>> With the above, I need to put the cursor at the end, i.e., here:
>>>
>>> >>
>>> And then call up code completion, via Ctrl-Space, to see the code
>>> completion.
>>>
>>> What must I do from the above point to see the problem?
>>>
>>> Gj
>>>
>>> On Mon, Jul 12, 2021 at 8:27 AM James Ostrowick 
>>> wrote:
>>>
>>>>
>>>> Nope, this was a Mac.
>>>> Mac OS X 11.4
>>>> Netbeans 12.4
>>>>
>>>> Kind Regards,
>>>> James Ostrowick
>>>>
>>>>
>>>> On 12 Jul 2021, at 08:26, Geertjan Wielenga <
>>>> geertjan.wiele...@googlemail.com> wrote:
>>>>
>>>> Maybe it's Windows specific?
>>>>
>>>> On Mac, trying really hard, but not able to reproduce.
>>>>
>>>> Gj
>>>>
>>>> On Mon, Jul 12, 2021 at 8:16 AM James Ostrowick 
>>>> wrote:
>>>>
>>>>> I know exactly what John is talking about.
>>>>>
>>>>> 
>>>>>
>>>>> If you hit enter at this point(in the attached image)
>>>>> It will complete the  element
>>>>>
>>>>> This happens in HTML/XHTML files.
>>>>>
>>>>> Kind Regards,
>>>>> James Ostrowick
>>>>>
>>>>>
>>>>> On 12 Jul 2021, at 08:13, Geertjan Wielenga <
>>>>> geertjan.wiele...@googlemail.com.INVALID> wrote:
>>>>>
>>>>> Nope, that's never happened to me -- and if what you're trying to do
>>>>> is disable code completion just because it pops up when you press Enter,
>>>>> then the problem lies elsewhere.
>>>>>
>>>>> Check that your code completion hasn't been mapped to the Enter key in
>>>>> one way or another.
>>>>>
>>>>> Gj
>>>>>
>>>>> On Mon, Jul 12, 2021 at 8:09 AM John Lavelle  wrote:
>>>>>
>>>>>> When you press Enter for a Newline it pops up. Very irritating.
>>>>>>
>>>>>> Best regards,
>>>>>> John
>>>>>> j...@jql.co.uk
>>>>>> Bike Farkles:
>>>>>> https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
>>>>

Re: HTML Disable Auto Completion 12.4

2021-07-12 Thread John Lavelle
When you press Enter for a Newline it pops up. Very irritating.

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Mon, Jul 12, 2021 at 8:02 AM Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Maybe somehow the code completion is mapped to your Enter key?
>
> Gj
>
> On Mon, Jul 12, 2021 at 8:01 AM Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> Every time you press Enter it pops up?
>>
>> That's strange and not something I've ever seen.
>>
>> Has that always been the case?
>>
>> Gj
>>
>> On Mon, Jul 12, 2021 at 7:19 AM John Lavelle  wrote:
>>
>>> Geertjan,
>>>
>>> The only way to disable it is to turn it off for *all* languages, not
>>> just HTML.
>>>
>>> Auto complete in HTML is very intrusive unlike say for PHP.
>>>
>>> I find auto complete useful in general but in HTML every time you press
>>> enter it pops up and you have to press Escape before typing. Quite often,
>>> if you're changing between languages, you forget to press escape and have
>>> to delete the "suggestions"
>>>
>>> Best regards,
>>> John Lavelle
>>> j...@jql.co.uk
>>>
>>> Sent via awful Android
>>>
>>> On Sun, 11 Jul 2021, 22:35 Geertjan Wielenga, <
>>> geertjan.wiele...@googlemail.com> wrote:
>>>
>>>> Trying to look into this, but not sure what the aim is -- why does code
>>>> completion need to be disabled for HTML? I.e., if you don't call it up via
>>>> Ctrl-Space, you won't see it, right?
>>>>
>>>> Gj
>>>>
>>>> On Thu, Jul 8, 2021 at 10:59 AM John Lavelle  wrote:
>>>>
>>>>> Emi,
>>>>>
>>>>> Many thanks for that. Any chance you can give me a "heads-up" on the
>>>>> xml file name?
>>>>>
>>>>> Best regards,
>>>>> John
>>>>> j...@jql.co.uk
>>>>> Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
>>>>> JLavelle.uk https://www.youtube.com/jlavelleuk
>>>>>
>>>>>
>>>>> On Thu, Jul 8, 2021 at 9:30 AM Emilian Bold 
>>>>> wrote:
>>>>>
>>>>>> Back when I was working on this each such settings had a property that
>>>>>> was being saved by NetBeans. So, just because there's no UI for it it
>>>>>> doesn't mean you can't make a simple module that tweaks that property
>>>>>> or just hand-edit an XML in your userdir.
>>>>>>
>>>>>> So now, the questions just is how was that property called?
>>>>>>
>>>>>> You can probably learn it by just tweaking the property in an older
>>>>>> NetBeand then diff-ing the files. I'd guess just copying the XML to
>>>>>> the 12.4 user dir would do the trick.
>>>>>>
>>>>>> --emi
>>>>>>
>>>>>> On Thu, Jul 8, 2021 at 10:24 AM John Lavelle  wrote:
>>>>>> >
>>>>>> > BUMP! BUMP!
>>>>>> >
>>>>>> > I assume that no one uses HTML in NetBeans so has no experience of
>>>>>> this?
>>>>>> >
>>>>>> > Any answers or suggestions?
>>>>>> >
>>>>>> > Regards
>>>>>> > John
>>>>>> >
>>>>>> > BUMP!
>>>>>> >
>>>>>> > Can anyone shed any light on this?
>>>>>> >
>>>>>> > Thanks
>>>>>> > John
>>>>>> >
>>>>>> > Hi,
>>>>>> >
>>>>>> > You used to be able to disable the Auto Completion pop-up for HTML
>>>>>> by deleting (must be deleted not just disabled) the items in
>>>>>> "Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
>>>>>> Completion>HTML" deselecting "Auto Popup Completion Window".
>>>>>> >
>>>>>> > In 12.4 it seems the only way to disable Code Completion for HTML
>>>>>> is to disable it for every language in the "All languages" Code 
>>>>>> Completion
>>>>>> section.
>>>>>> >
>>>>>> > Is there a way to disable Code Completion just for one language as
>>>>>> the "old" system no longer seems to work correctly?
>>>>>> >
>>>>>> > Best regards,
>>>>>> > John
>>>>>> > j...@jql.co.uk
>>>>>> > Bike Farkles:
>>>>>> https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
>>>>>> > JLavelle.uk https://www.youtube.com/jlavelleuk
>>>>>>
>>>>>


Re: HTML Disable Auto Completion 12.4

2021-07-11 Thread John Lavelle
Geertjan,

The only way to disable it is to turn it off for *all* languages, not just
HTML.

Auto complete in HTML is very intrusive unlike say for PHP.

I find auto complete useful in general but in HTML every time you press
enter it pops up and you have to press Escape before typing. Quite often,
if you're changing between languages, you forget to press escape and have
to delete the "suggestions"

Best regards,
John Lavelle
j...@jql.co.uk

Sent via awful Android

On Sun, 11 Jul 2021, 22:35 Geertjan Wielenga, <
geertjan.wiele...@googlemail.com> wrote:

> Trying to look into this, but not sure what the aim is -- why does code
> completion need to be disabled for HTML? I.e., if you don't call it up via
> Ctrl-Space, you won't see it, right?
>
> Gj
>
> On Thu, Jul 8, 2021 at 10:59 AM John Lavelle  wrote:
>
>> Emi,
>>
>> Many thanks for that. Any chance you can give me a "heads-up" on the xml
>> file name?
>>
>> Best regards,
>> John
>> j...@jql.co.uk
>> Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
>> JLavelle.uk https://www.youtube.com/jlavelleuk
>>
>>
>> On Thu, Jul 8, 2021 at 9:30 AM Emilian Bold 
>> wrote:
>>
>>> Back when I was working on this each such settings had a property that
>>> was being saved by NetBeans. So, just because there's no UI for it it
>>> doesn't mean you can't make a simple module that tweaks that property
>>> or just hand-edit an XML in your userdir.
>>>
>>> So now, the questions just is how was that property called?
>>>
>>> You can probably learn it by just tweaking the property in an older
>>> NetBeand then diff-ing the files. I'd guess just copying the XML to
>>> the 12.4 user dir would do the trick.
>>>
>>> --emi
>>>
>>> On Thu, Jul 8, 2021 at 10:24 AM John Lavelle  wrote:
>>> >
>>> > BUMP! BUMP!
>>> >
>>> > I assume that no one uses HTML in NetBeans so has no experience of
>>> this?
>>> >
>>> > Any answers or suggestions?
>>> >
>>> > Regards
>>> > John
>>> >
>>> > BUMP!
>>> >
>>> > Can anyone shed any light on this?
>>> >
>>> > Thanks
>>> > John
>>> >
>>> > Hi,
>>> >
>>> > You used to be able to disable the Auto Completion pop-up for HTML by
>>> deleting (must be deleted not just disabled) the items in
>>> "Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
>>> Completion>HTML" deselecting "Auto Popup Completion Window".
>>> >
>>> > In 12.4 it seems the only way to disable Code Completion for HTML is
>>> to disable it for every language in the "All languages" Code Completion
>>> section.
>>> >
>>> > Is there a way to disable Code Completion just for one language as the
>>> "old" system no longer seems to work correctly?
>>> >
>>> > Best regards,
>>> > John
>>> > j...@jql.co.uk
>>> > Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
>>> > JLavelle.uk https://www.youtube.com/jlavelleuk
>>>
>>


Re: HTML Disable Auto Completion 12.4

2021-07-08 Thread John Lavelle
Emi,

Many thanks for that. Any chance you can give me a "heads-up" on the xml
file name?

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Thu, Jul 8, 2021 at 9:30 AM Emilian Bold  wrote:

> Back when I was working on this each such settings had a property that
> was being saved by NetBeans. So, just because there's no UI for it it
> doesn't mean you can't make a simple module that tweaks that property
> or just hand-edit an XML in your userdir.
>
> So now, the questions just is how was that property called?
>
> You can probably learn it by just tweaking the property in an older
> NetBeand then diff-ing the files. I'd guess just copying the XML to
> the 12.4 user dir would do the trick.
>
> --emi
>
> On Thu, Jul 8, 2021 at 10:24 AM John Lavelle  wrote:
> >
> > BUMP! BUMP!
> >
> > I assume that no one uses HTML in NetBeans so has no experience of this?
> >
> > Any answers or suggestions?
> >
> > Regards
> > John
> >
> > BUMP!
> >
> > Can anyone shed any light on this?
> >
> > Thanks
> > John
> >
> > Hi,
> >
> > You used to be able to disable the Auto Completion pop-up for HTML by
> deleting (must be deleted not just disabled) the items in
> "Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
> Completion>HTML" deselecting "Auto Popup Completion Window".
> >
> > In 12.4 it seems the only way to disable Code Completion for HTML is to
> disable it for every language in the "All languages" Code Completion
> section.
> >
> > Is there a way to disable Code Completion just for one language as the
> "old" system no longer seems to work correctly?
> >
> > Best regards,
> > John
> > j...@jql.co.uk
> > Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
> > JLavelle.uk https://www.youtube.com/jlavelleuk
>


Fwd: HTML Disable Auto Completion 12.4

2021-07-08 Thread John Lavelle
BUMP! BUMP!

I assume that no one uses HTML in NetBeans so has no experience of this?

Any answers or suggestions?

Regards
John

BUMP!

Can anyone shed any light on this?

Thanks
John

Hi,

You used to be able to disable the Auto Completion pop-up for HTML by
deleting (must be deleted not just disabled) the items in
"Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
Completion>HTML" deselecting "Auto Popup Completion Window".

In 12.4 it seems the only way to disable Code Completion for HTML is to
disable it for every language in the "All languages" Code Completion
section.

Is there a way to disable Code Completion just for one language as the
"old" system no longer seems to work correctly?

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


Fwd: HTML Disable Auto Completion 12.4

2021-07-06 Thread John Lavelle
BUMP!

Can anyone shed any light on this?

Thanks
John

Hi,

You used to be able to disable the Auto Completion pop-up for HTML by
deleting (must be deleted not just disabled) the items in
"Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
Completion>HTML" deselecting "Auto Popup Completion Window".

In 12.4 it seems the only way to disable Code Completion for HTML is to
disable it for every language in the "All languages" Code Completion
section.

Is there a way to disable Code Completion just for one language as the
"old" system no longer seems to work correctly?

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


HTML Disable Auto Completion 12.4

2021-07-05 Thread John Lavelle
Hi,

You used to be able to disable the Auto Completion pop-up for HTML by
deleting (must be deleted not just disabled) the items in
"Tools>Palette>Code Clips" (why?) then in "Tools>Options>Editor>Code
Completion>HTML" deselecting "Auto Popup Completion Window".

In 12.4 it seems the only way to disable Code Completion for HTML is to
disable it for every language in the "All languages" Code Completion
section.

Is there a way to disable Code Completion just for one language as the
"old" system no longer seems to work correctly?

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


Re: [PHP] NetBeans not recognizing virtual server on WAMP

2021-06-15 Thread John Lavelle
Bruce,

Have you done the following?:

   1. added the url (mphp) to your HOSTS file (127.0.0.1 mphp)
   2. uncommented the line: # Include etc/extra/https-vhosts.conf in
   http.conf
   3. created a document root in httpd-vhosts.conf
   4. Restarted Apache2

If so *and* they are correct then, in NetBeans→Project properties→Sources:

Project folder: "path to your project root" (probably C:\WAMPP\htdocs\mphp)
Sources folder: "path to your project root" (probably C:\WAMPP\htdocs\mphp)
Web Root: 


in NetBeans→Project properties→Run Configuration:

Run As: Local Web Site (running on local web server)

Project URL: http://mphp/
Index File: index.php


Best regards,
John
j...@jql.co.uk
JLavelle.uk https://www.youtube.com/jlavelleuk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ



On Mon, Jun 14, 2021 at 9:57 PM Bruce Button  wrote:

> Greetings!
>
> I would be most grateful for some help on what seems to be a simple
> problem — though I have searched unsuccessfully for the solution.
>
> I am using Windows 10 with WAMP, and have created a virtual host for a
> NetBeans PHP project. The url for the virtual host is http://mphp. The
> virtual host allows the project to be accessed as the main folder of the
> url, rather than as a subfolder, as would be the case if I put the files
> into a subfolder of WAMP's www folder.
>
> In the project Run Configuration I have entered "http://mphp;
> <http://mphp> as the project url, but when I try to launch the project
> from NetBeans the virtual host is changed to "localhost". Similarly, if my
> project is accessible in a subfolder of localhost, and I enter
> "localhost/subfolder" in the Run Configuration, NetBeans changes that to
> just "localhost".
>
> I have Googled, looked in the NetBeans documentation and everywhere else I
> can think of for answer, but can't seem to find it.
>
> Any help would be most appreciated.
>
> Thank you!
>
> Bruce Button
>
> —
>
> Configuration: Windows 10 Professional, 64-bit
> WAMP 3.2.4 - 64 bit
> NetBeans IDE 12.0
>


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

2021-05-04 Thread John Barrow
Yes, Integer.parseInt() doesn't accept the empty string as a valid number. You 
would have to initialise the strings to "0" as a default and then would be OK.I 
think it is a bit of an opinion boundary case in that when I first discovered 
it, I thought that the empty string should equate to 0, as both of them 
represent the "zero / null" value. However, I suspect that it was done that way 
as there is no Integer value that would translate back to the empty string for 
consistency. I.e. what should String.valueOf(0) return, "0" or "". John
 Original message From: Zulfi Khan 
 Date: 04/05/2021  05:31  (GMT+00:00) To: NetBeans 
Mailing List  Subject: 
java.lang.NumberFormatException: For input string: "" Hi,I am getting following 
message when I am compiling my program on NetBeans 12.3 on Ubuntu 18.04:cd 
/home/zulfi/NetBeansProjects/GUI1; JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 
/snap/netbeans/45/netbeans/java/maven/bin/mvn "-Dexec.args=-classpath 
%classpath com.mycompany.gui1.GuiMain" 
-Dexec.executable=/usr/lib/jvm/java-11-openjdk-amd64/bin/java process-classes 
org.codehaus.mojo:exec-maven-plugin:3.0.0:execScanning for 
projects...-< com.mycompany:GUI1 
>-Building GUI1 
1.0-SNAPSHOT[ jar 
] maven-resources-plugin:2.6:resources 
(default-resources) @ GUI1 ---Using 'UTF-8' encoding to copy filtered 
resources.skip non existing resourceDirectory 
/home/zulfi/NetBeansProjects/GUI1/src/main/resources--- 
maven-compiler-plugin:3.1:compile (default-compile) @ GUI1 ---Changes detected 
- recompiling the module!Compiling 1 source file to 
/home/zulfi/NetBeansProjects/GUI1/target/classes--- 
exec-maven-plugin:3.0.0:exec (default-cli) @ GUI1 
---java.lang.NumberFormatException: For input string: ""    at 
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.base/java.lang.Integer.parseInt(Integer.java:662)    at 
java.base/java.lang.Integer.parseInt(Integer.java:770)    at 
com.mycompany.gui1.GuiMain.main(GuiMain.java:21)BUILD
 
SUCCESSTotal
 time:  4.664 sFinished at: 
2021-05-03T23:25:08-05:00-My 
program is given below:package com.mycompany.gui1;import javax.swing.*;import 
java.lang.NumberFormatException;/** * * @author zulfi */public class GuiMain {  
  public static void main(String[] args){    final String strFirstNum="";   
 final String strSecNum="";    int val1=0;    int val2=0;    try{   
 val1 = Integer.parseInt(strSecNum);    val2 = 
Integer.parseInt(strFirstNum);    }catch (NumberFormatException e) {    
e.printStackTrace();}    int res = val1 + val2;    
JOptionPane.showMessageDialog(null, "Testing Sum = "+ res );    }    
}Somebody please guide me.Zulfi.

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
> <https://urldefense.com/v3/__https://blogs.apache.org/netbeans/entry/restructuring-of-project-templates-in__;!!GqivPVa7Brio!LQDr-KpHS2hxY2ax5tglMFZL-rulMUbLx82cooIabKwml29tmmysmLxcouF-mrjO$>
>
> 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: removing the "new project" support for Ant projects

2021-04-21 Thread John Burgess
+1 also for me to not eliminating Ant support for new (or existing) projects.

-Original Message-
From: Marco Rossi 
Sent: 20 April 2021 20:10
To: Mitch Claborn 
Cc: users@netbeans.apache.org
Subject: Re: removing the "new project" support for Ant projects

+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 >> > 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, the
goals and drivers are different.
For your project, if all you have is a web app and some session
beans, then a simple WAR file is good to go. The Ant projects
seem to essentially be deprecated now, so I would not rely on
those for anything. If practical, especially if your project is
young, I would migrate it to Maven. The Maven WAR is a pretty
simple project and seems to work ok. Maven isn't going away any
time soon, Gradle, it's primary competitor, doesn't really have
the traction to overcome it yet, and it's been going for some
time. If nothing else, the pom.xml 

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

2021-04-21 Thread John Burgess
Completely agree.  Ant works and doesn’t require you to write plugins just to 
customise the build process.

From: David 
Sent: 20 April 2021 23:04
To: Lisa Ruby ; users@netbeans.apache.org
Subject: Re: removing the "new project" support for Ant projects

+1!

On Tue, 2021-04-20 at 17:10 +, 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 
mailto: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, the goals and 
drivers are different.

For your project, if all you have is a web app and some session beans, then a 
simple WAR file is good to go. The Ant projects seem to essentially be 
deprecated now, so I would not rely on those for anything. If practical, 
especially if your project is young, I would migrate it to Maven. The Maven WAR 
is a pretty simple project and seems to work ok. Maven isn't going away any 
time soon, Gradle, it's primary competitor, doesn't really have the traction to 
overcome it yet, and it's been going for some time. If nothing else, the 
pom.xml file has become a de facto portable project format if, for nothing 
else, to capture dependencies.

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.

And I still haven't heard any concrete position the project has on 
internalizing Maven archetypes used for project wizards, or the process of 
adopting that.

Legacy archetypes that used to work in NB 8 are now failing because they've 
vanished from Maven central. So, an external dependency broke an internal 
feature.

Feel free to follow up with specific questions about getting your project to 
work and/or converted to Maven.

Regards,

Will Hartung



Terms & 

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


Stopped working on Ubuntu 18.04

2020-08-17 Thread John Moriarty
It's been ~2 months since I last opened Netbeans on my Ubuntu 18.04
machine. Nothing happens when I choose Netbeans from my quick-start menu.
>From the command line, "netbeans" gives me this output:

>/ has 'other' write 40757=

"sudo netbeans" give the exact same output. Seems like some people end up
with a similar error when opening other programs ("/ has 'other' write
40777"), but changing the permissions of /var/lib/snapd like shown here
<https://stackoverflow.com/questions/51027327/ubuntu-18-04-var-lib-snapd-has-other-write-40777>
does
not fix the problem for me. (To be honest, I don't even remember if I used
snap to install Netbeans. I think I remember there being multiple ways and
only one of them working, but this was years ago now.)

Has anyone had this problem before? Does anyone know how to go about fixing
it?

Thanks very much for any help, and please do let me know if there's any
other information I should provide, or if there are any resources I should
use to educate myself about what's actually going on here.

John


Re: NetBeans 8.2 Maven Artifacts, anyone?

2020-07-16 Thread John C. Manko

  
  
I agree.  Please keep those builds/installers or archive them. 
  Some of our developers still use v8 exclusively for legacy
  applications and haven't made the transition to newer versions.  

On 7/16/20 11:38 AM, Emilian Bold
  wrote:


  
  Loads of people do. Please provide a way to easily
download what NetBeans/Oracle plans on deleting and I will back
then up somewhere.

--emi
  
  
  
joi, 16 iul. 2020, 11:17
  Antonio  a scris:

Hi all,
  
  Is anybody still using NetBeans 8.2 Maven artifacts? Is there
  any 
  interest in keeping those around?
  
  Those old artifacts are being kept in Oracle servers, and
  could be 
  decomissioned soon. Is there any interest in keeping them
  around?
  
  Thanks,
  Antonio
  
-
  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



Apache update server unavailable

2020-07-06 Thread John G. Weed
Am trying to run updates on NetBeans 11.2. List of required updates seems to 
work, however when I tell it to go ahead and update I get a pop up error 
indicating that update server is unavailable...

https://www.apache.org/dyn/closer.lua?action=download=netbeans/netbeans/11.2-u1/nbms/nb/org-netbeans-modules-updatecenters.nbm

Mostly likely my problem... but checking if the us an external (to me) 
connectivity issue?

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]
>
>
>


FXML

2020-07-01 Thread John Brice
Hello all, I have a few minor FXML-related issues I hope someone can help with.
Win10, NB12, JDK14, Maven but I've seen these since at least NB10, JDK11 and 
across multiple computers.

1) Most days (but not every day) I have to reactivate JavaFX (Tools > Options > 
Java > JavaFX) and restart NB. It works fine until the next time it decides to 
deactivate itself. I see nothing relevant in the IDE log from before the 
previous day's shutdown, the morning's start or the restart. Anyone else? Or 
any idea where I can look for more info?

2) Is it possible to modify the default controller template (I don't see it in 
Tools > Templates)? e.g. from

public class EmptyController implements Initializable {
/**
 * Initializes the controller class.
 */
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
}

to

public class EmptyController {
@FXML
public void initialize() {
// TODO
}
}

3) If I have an @FXML-annotated initialize(), is it possible to stop the 'Make 
Controller' function removing the @FXML when it updates the file?

4) If I have an FXML file without a controller, then later add a controller 
reference and do 'Make Controller', can the controller be created in 
src/main/java? It is created in src/main/resources beside the fxml file.



Re: [jira] [Commented] (NETBEANS-4513) Font Chooser does not include user installed fonts

2020-06-30 Thread John Brice
Hi Laszlo, thanks for the quick response.

The fonts do not show using JDK 8u202 (Oracle) or JDK 11.0.7 (Zulu, 
AdoptOpenJDK).

They do show using JDK 14.0.1 (both Zulu and AdoptOpenJDK builds).

I guess there is something unsupported by older versions in both fonts and I've 
just been unlucky to pick two with the same issue.

I'll stick to running NetBeans on JDK14, thanks again.


From: John Brice 
Sent: 30 June 2020 16:33
To: Laszlo Kishalmi (Jira) 
Subject: Re: [jira] [Commented] (NETBEANS-4513) Font Chooser does not include 
user installed fonts

Hi Laszlo, thanks for the quick response.

The fonts do not show using JDK 8u202 (Oracle) or JDK 11.0.7 (Zulu, 
AdoptOpenJDK).

They do show using JDK 14.0.1 (both Zulu and AdoptOpenJDK builds).

I guess there is something unsupported by older versions in both fonts and I've 
just been unlucky to pick two with the same issue.

I'll stick to running NetBeans on JDK14, thanks again.


From: Laszlo Kishalmi (Jira) 
Sent: 30 June 2020 15:24
To: john_br...@hotmail.com 
Subject: [jira] [Commented] (NETBEANS-4513) Font Chooser does not include user 
installed fonts


[ 
https://issues.apache.org/jira/browse/NETBEANS-4513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17148724#comment-17148724
 ]

Laszlo Kishalmi commented on NETBEANS-4513:
---

Please test with different JDK-s. As far as I know NetBeans only does a JDK 
call to retrieve the fonts installed in the system. It is definitely working on 
Linux.

> Font Chooser does not include user installed fonts
> --
>
> Key: NETBEANS-4513
> URL: https://issues.apache.org/jira/browse/NETBEANS-4513
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Options
>Affects Versions: 12.0
> Environment: Windows 10 Pro
>Reporter: Micah Effre
>Priority: Major
> Attachments: SourceCodePro-Regular.ttf
>
>
> I have added my favorite font "Source Code Pro" to my computer and I always 
> use this font for all my development projects.  I upgraded from Apache 
> NetBeans 11 to 12 and I an no longer able to go into font chooser to add my 
> font.  Tools-> Options -> Font & Colors -> Font chooser for category default. 
>  When I scan the list my installed font "Source Code Pro" is not in the list.
>
> I had to go back to Apache version 11 to get my font back.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


Fonts not available for selection

2020-06-30 Thread John Brice
Hello all,
NetBeans 12.0 on Zulu JDK 11.0.7 and Windows 10 1909

After adding new fonts (Office Code Pro, IBM Plex Mono), they are not available 
for selection in Tools > Options > Fonts & Colors.

I've installed both OTF and TTF versions of the fonts, I've deleted both the 
cache dir and the user dir, and I've reset the Windows 10 font cache - still 
the fonts won't appear in the list. There is nothing relevant in the IDE log.

Hack is available, but that may be either because I had it installed before 
NetBeans or because I imported a colour scheme from 11.3 which used Hack.

There is another report at https://issues.apache.org/jira/browse/NETBEANS-4513 
so it's not just me.

Has anyone else seen similar or can suggest a fix?


Re: hex dump

2020-06-27 Thread John G. Weed
100% for that
 But then I’m old school

Sincerely,

John .G Weed
Sr. Systems Architect/Programmer Analyst @ Cicero Systems, LLC
*"Reason. Resolve. Respond"*
(571) 277-9998
www.linkedin.com/in/john-weed-28378a161

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.



On Sat, Jun 27, 2020, at 12:42, Glenn Holmer wrote:
> Does anybody else think it would be useful to have the option of viewing
> variables as a traditional hex dump in the NetBeans debugger? I'm
> thinking, for example, of a byte array. You can right-click a variable
> and select "Display as/Hexadecimal", but you don't get a dump (with hex
> characters on the left and readable characters on the right).
> 
> Is there anything in the Platform that would make this easy to do?
> 
> -- 
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
> 
> 
> -
> 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
> 
> *Attachments:*
>  * cenbe.vcf

Re: [PHP][Xdebug][macOS Mojave] config problems

2020-06-25 Thread John Lavelle
When you get the message:

*Error:*
*Browser refused to debug this tab.*
*Close Chrome Developer Tools (or any other browser debugger) and try
again.*

Press refresh on the browser and everything syncs correctly

Best regards,
John
j...@jql.co.uk

Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Thu, Jun 25, 2020 at 7:15 AM Andy Elster  wrote:

> I had that installed. I once again removed extra lines from my php.ini
> file, restarted Apache and now it mostly works. I now get the popup alert:
>
> Error:
> Browser refused to debug this tab.
> Close Chrome Developer Tools (or any other browser debugger) and try again.
>
> However, once I click OK, everything seems to work. In looking at
> chrome://extensions, I don't have any developer tools or debugger running.
> Curious, but I can now keep going.
>
> Not exactly what I added/removed this time, but I'll make sure not to
> touch it again :)
>
> Thanks.
>
> On Wed, Jun 24, 2020 at 9:36 PM Geertjan Wielenga 
> wrote:
>
>>
>> Well, you need to install the Chrome connector plugin, everything indeed
>> should work, this part of NetBeans has been fixed in 12.0.
>>
>> If you describe a step by step scenario here for someone to follow, so
>> we’re sure we’re doing the same thing, we can take a look.
>>
>> Gj
>>
>> On Thu, 25 Jun 2020 at 06:25, Andy Elster  wrote:
>>
>>> I recently switched from Netbeans to Apache Netbeans and debugging is
>>> now broken. From Netbeans the IDE used to pop up a Chrome window, now I
>>> can't seem to get anything to work. I've gone to xdebug.org but that
>>> hasn't seemed to help.
>>>
>>> Anybody out there able to debug local PHP code using Apache Netbeans
>>> 12.0 on a MacBook Pro?
>>>
>>>
>>> - Andy
>>>
>>


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
>
>


"uninstaller" in PHP file name triggers false file parse error

2020-05-20 Thread John Patrick Hayden
Hello everyone!

Title says it.

I'm working on a PHP project in Netbeans 11.3 that has 3 classes in their
own files that act like autoloaders for activation/deactivation/deletion
actions.
/class-installer.php
/class-upgrader.php
/class-uninstaller.php

All 3 function properly, but within Netbeans, the "/class-uninstaller.php"
file shows the red exclamation with a "Error parsing file" message.

There is no error. It has to do with "uninstaller" being in the name.

I can rename the file "class-uninstall.php", "class-uninstaller2.php", or
any other variation and the error goes away instantly. Rename it back to
"class-uninstaller.php" and the red error is back instantly.

Like I said, the code works perfectly and there is no actual error. I'm
looking for a way to get rid of that false error message. It has more to do
with personal preference, of not seeing the red error message unless
there's actually an error.

My option for now is to just rename them to "class-install",
"class-upgrade", "class-uninstall", so they matchbut then these 3 are
oddly named from the rest of the project, and all just to get rid of a
false error message in my IDE!

Anyone else experience this or have a solution besides renaming my files?

Thanks for your time!

-JP3


Re:

2020-05-19 Thread John Lavelle
Hi,

This video, although for an earlier version of NetBeans, walks you through
installing JDK 8 when you don't have root access:

https://www.youtube.com/watch?v=O7z6JQ-NT2k

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Tue, May 19, 2020 at 10:04 PM Emilian Bold 
wrote:

> Maybe he doesn't have root on that machine?
>
> --emi
>
> On Tue, May 19, 2020 at 10:01 PM Juan Algaba  wrote:
> >
> > > Please give me idea that include no command.
> > Also, you're on linux and a developer, Why such a strange requirement?
> > I think "sudo apt install openjdk-8-jdk" is easier than actually
> > hunting down and setting up a jdk manually.
> >
> >
> > On Tue, May 19, 2020 at 11:05 AM Laszlo Kishalmi
> >  wrote:
> > >
> > > What do you mean no command?
> > >
> > > Do you have Java 8 already installed on Ubuntu?
> > >
> > > Or You just need to add Java 8 to the list of Java Platforms in
> NetBeans?
> > >
> > > On 5/19/20 9:58 AM, Brain Rebooting wrote:
> > > > HI all,
> > > >
> > > > How to install jdk 8 into netbeans 11.3 in ubuntu 18?
> > > > Please give me idea that include no command.
> > > >
> > > > Samiul alom sium
> > >
> > > -
> > > 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
> > >
> >
> >
> > --
> > Juan Algaba
> >
> > -
> > 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
>
>


Error Parsing File for PHP File with "uninstaller" in the File Name

2020-05-19 Thread John Patrick Hayden
Hello everyone!

Title says it.

I'm working on a PHP project in Netbeans 11.3 that has 3 classes in their
own files that act like autoloaders for activation/deactivation/deletion
actions.
/class-installer.php
/class-upgrader.php
/class-uninstaller.php

All 3 function properly, but within Netbeans, the "/class-uninstaller.php"
file shows the red exclamation with a "Error parsing file" message.

There is no error. It has to do with "uninstaller" being in the name.

I can rename the file "class-uninstall.php", "class-uninstaller2.php", or
any other variation and the error goes away instantly. Rename it back to
"class-uninstaller.php" and the red error is back instantly.

Like I said, the code works perfectly and there is no actual error. I'm
looking for a way to get rid of that false error message. It has more to do
with personal preference, of not seeing the red error message unless
there's actually an error.

My option for now is to just rename them to "class-install",
"class-upgrade", "class-uninstall", so they matchbut then these 3 are
oddly named from the rest of the project, and all just to get rid of a
false error message in my IDE!

Anyone else experience this or have a solution besides renaming my files?

Thanks for your time!

-JP3


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: Python in Netbeans 11.x

2020-05-13 Thread John Lavelle
Try: http://www.nbpython.org/

Best regards,
John
j...@jql.co.uk
Bike Farkles: https://www.youtube.com/channel/UCPRV92Cf_R1ihviRtVU2teQ
JLavelle.uk https://www.youtube.com/jlavelleuk


On Wed, May 13, 2020 at 4:03 PM Rik Scarborough  wrote:

> Is Python supported, or will it be supported, as a plugin for NetBeans 11?
>
> Thanks,
> --
> ~ Rik
> *Believe in Good*
>


Re: Netbeans long pauses

2020-05-11 Thread John Lavelle
I use Mint and don't have the lockup problem. Therefore, it may be another
application you are using on the system.

I have noticed that, when checking for external changes, NetBeans 11.3 can
slow down considerably especially if you have multiple large projects open.
The more projects open and the larger they are, the slower NetBeans becomes
during the check. I didn't notice this with earlier versions of NetBeans
(8.2, & 9). You may want to try and limit the number of open projects you
have in NetBeans and see if that helps.

Note: I'm using 11.3, 11.2, 11.1 and 11.0 on various computers and VMs.

Best regards,
John
j...@jql.co.uk


On Tue, May 12, 2020 at 4:08 AM Laszlo Kishalmi 
wrote:

> Try with NetBeans 11.3. 11.1 is not supported any more.
>
>
> On 5/11/20 6:04 PM, Bayless Kirtley wrote:
> > Surely there is a better answer than that. I just spent a week getting
> > everything running like I want. Everything except Netbeans works
> > perfectly, including all my Java programs. I really like the new
> > desktop too. Surely Netbeans should work with the currently most
> > popular distro of Linux.
> >
> > Bayless
> >
> >
> > On 5/11/20 3:34 PM, John G. Weed wrote:
> >> I had this problem and got so frustrated that I eventually moved off
> >> of Mint entirely. I now run Ubuntu. If I ran Netbeans and forgot to
> >> exit the application before logging off, I was almost 100% guaranteed
> >> that I wold have to reboot the computer to get back in. There wasn't
> >> a single day that wouldn't require a reboot from a hung system.
> >> Netbeans and Mint are allergic to each other for some reason. Best I
> >> could figure was a Java problem. It all was for the best anyway, as
> >> Ubuntu is much more stable and after 13 months I've not had a
> >> Netbeans required reboot once. Bottom line, migrate off of Mint
> >>
> >> Sincerely,
> >>
> >> John .G Weed
> >> Sr. Systems Architect/Programmer Analyst @ Cicero Systems, LLC
> >> *"Reason. Resolve. Respond"*
> >> (571) 277-9998
> >> www.linkedin.com/in/john-weed-28378a161
> >>
> >> *"Steal a man's reputation for probity, and the more shrewd and
> >> clever he is, the more hated and mistrusted he'll become." *Marcus
> >> Tullius Cicero (106BC-43BC)
> >>
> >> *Confidentiality Notice:* The information contained in this
> >> electronic transmission is privileged and confidential and is
> >> intended only for the recipient(s) named above. If the reader of this
> >> message is not the recipient(s) named above, or an authorized agent
> >> of such recipient(s) responsible for delivering it to the intended
> >> recipient(s), you are hereby notified that you have received this
> >> electronic transmission in error. Any review, dissemination,
> >> distribution, or copying of this electronic transmission including
> >> any attachments is strictly prohibited. If you have received this
> >> electronic transmission in error, please notify the sender immediately.
> >>
> >> On Mon, May 11, 2020, at 16:26, Bayless Kirtley wrote:
> >>> After installing Netbeans 11.1 on Linux Mint 19.3, it has a nasty habit
> >>> of suddenly locking up. It seems to be the whole computer. This happens
> >>> pretty regularly when trying to do a simple refactor, renaming a
> >>> variable. It also happens but less often when just editing or typing
> >>> code. These pauses always seem to last between 30 and 60 seconds. This
> >>> really makes it virtually unusable. On the refactor, it always happens
> >>> even before accepting the new name so it has not actually started
> >>> renaming yet. These are small Java desktop projects of a dozen or so
> >>> classes and usually only one or two projects open at a time so no more
> >>> than 2 or 3000 lines. I assume I have something wrong but no idea where
> >>> to start looking. Any help will be greatly appreciated.
> >>>
> >>> Bayless
> >>>
> >>>
> >>>
> >>> -
> >>> 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 long pauses

2020-05-11 Thread John G. Weed
I had this problem and got so frustrated that I eventually moved off of Mint 
entirely. I now run Ubuntu. If I ran Netbeans and forgot to exit the 
application before logging off, I was almost 100% guaranteed that I wold have 
to reboot the computer to get back in. There wasn't a single day that wouldn't 
require a reboot from a hung system. Netbeans and Mint are allergic to each 
other for some reason. Best I could figure was a Java problem. It all was for 
the best anyway, as Ubuntu is much more stable and after 13 months I've not had 
a Netbeans required reboot once. Bottom line, migrate off of Mint

Sincerely,

John .G Weed
Sr. Systems Architect/Programmer Analyst @ Cicero Systems, LLC
*"Reason. Resolve. Respond"*
(571) 277-9998
www.linkedin.com/in/john-weed-28378a161

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.

On Mon, May 11, 2020, at 16:26, Bayless Kirtley wrote:
> After installing Netbeans 11.1 on Linux Mint 19.3, it has a nasty habit 
> of suddenly locking up. It seems to be the whole computer. This happens 
> pretty regularly when trying to do a simple refactor, renaming a 
> variable. It also happens but less often when just editing or typing 
> code. These pauses always seem to last between 30 and 60 seconds. This 
> really makes it virtually unusable. On the refactor, it always happens 
> even before accepting the new name so it has not actually started 
> renaming yet. These are small Java desktop projects of a dozen or so 
> classes and usually only one or two projects open at a time so no more 
> than 2 or 3000 lines. I assume I have something wrong but no idea where 
> to start looking. Any help will be greatly appreciated.
> 
> Bayless
> 
> 
> 
> -
> 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: 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: Quirks when running Netbeans 11.3 on a laptop

2020-04-29 Thread John Brice
I’ve had similar problems on Windows 10, netbeans 11.0 – 11.3 and JDK 12/13. 
Line numbers disappear and nodes in the Projects pane go missing or become 
unresponsive.

I’ve changed my power settings to ‘never sleep’ but I still get the same issues 
if I leave netbeans for a long time (1 – 2 hours or more); not every time but 
often enough. If I use netbeans constantly all day there is no problem.

There is nothing obvious (to me) in the IDE log. I’ve cleared cache and user 
dirs, doesn’t make a difference.

John


Hi

I just wanted to know if people had noticed the following when running netbeans 
11.3 on their laptop (not sure if it happens on earlier versions or not)

I'm running on Ubuntu and using java 13

1. After closing the laptop lid and letting it suspend (or hibernate, same 
thing), the line numbers disappear when I re open the laptop and it resumes.

2. After closing the laptop and letting it suspend (or hibernate, same thing), 
you can't search or search and replace after it resumes. The short cut keys 
don't work and the menu items are Grey's out.

Both the above two are fixed with a netbeans restart.

3. After changing to tablet mode on my laptop, netbeans sometimes gets in to 
bad state where one window always has the focus no matter which window I try 
and click in. I can put the mouse pointer in another windows and click and hold 
to select text but it always does the actions in the window where the focus is 
stuck

This is fixed only by restarting the whole laptop, the problem persists on a 
restart of netbeans.


I appreciate these could be java issues (the last one definitely happened on 
earlier versions of java and netbeans), but I don't know 100%

Thanks

Peter



Re: I cannot find the MySQL Plugin

2020-04-19 Thread John Lavelle
Have a look at this video about fixing NetBeans MySQL connection Errors:
https://youtu.be/qD2PwMokQiE

Also this video for Time Zone connection problems:
https://youtu.be/yUEA0kQfoEo

Best regards,
John
j...@jql.co.uk


On Sun, 19 Apr 2020 at 14:45, Richard Grin 
wrote:

> Hi Francis,
>
> It's easy to use MySQL 8.0.19 with NetBeans.
>
> 1. In the tab Services, open the entry Databases > Drivers. If you don't
> already have an entry for MySQL, create a new one.
>
> If you create a new one, a new window is opened. Add the path to the jar
> for the MySQL driver (path to mysql-connector-java-8.0.19.jar). For the
> driver class, enter com.mysql.cj.jdbc.Driver. Give any name for the Name.
>
> If you already have an entry for MySQL, clic on Customize to check the
> information.
>
> 2. Right click on the driver and choose "Connect Using...". A "New
> Connection Wizard" window is displayed. In the Database field, enter
> jdbc:mysql://localhost:3306/customer?useTimezone=true=UTC
> (change the serverTimeZone if you want).
>
> Enter the password and Test Connection.
>
> Click Finish.
>
>
> Perhaps there is another way to use MySQL into NetBeans, but the way I
> just described above worked for me.
>
> Regards,
>
> Richard
>
>
> Le 19/04/2020 à 14:20, Dr Francis Greaves a écrit :
>
> Dear All
> I thought I would move from Oracle Netbeans 8.2 to the Apache 11.3 version
> of Netbeans, only to come unstuck at the absence of a MySQL Plugin. I know
> there is a Database connection in the Services, but I cannot get that to
> connect.
> Is there an alternative?
> Looks Like I will stick with the 8.2 Netbeans for now.
> Regards
> Francis
>
>
>


Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread John Burgess
Xor the hashcode of the inherited fields (from super. Hashcode() ) and the 
hsshcode of the new fields.

Get Outlook for Android


From: Owen Thomas 
Sent: Sunday, April 19, 2020 9:34:41 AM
To: Emilian Bold 
Cc: NetBeans Mailing List 
Subject: Re: Overriding equals and hashCode in subclass: wizard doesn't include 
inherited fields.

I don't know how calls to hashCode can be chained. Is there anything that can 
do that?

I can implement hashCode in final classes using Objects.hash(), but I suppose 
it would be niche to be able to progressively build a hash code.

On Sun, 19 Apr 2020 at 17:09, Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:
Interesting. Another idea might be to rely on super.hashCode and super.equals 
somewhere in there?

--emi


On Sun, Apr 19, 2020 at 6:00 AM Owen Thomas 
mailto:owen.paul.tho...@gmail.com>> wrote:
Hi. I'm using NB 11.0.

I'm trying to override equals and hashCode for a subclass of a type that 
extends object. The inherited class and the subclass both declare fields and 
getters for them.

It seems unfortunate to me that the NB wizard that one usually uses to generate 
the code for equals and hashCode does not permit inherited fields (or their 
getters, preferably, so the fields can remain private) to be used.

Have others found this to be a bit of a frustration?

  Owen.
--
I'll cut your code at an intensity and from a place of my own choosing.
Clique Space(TM). Anima ex machina.


--
I'll cut your code at an intensity and from a place of my own choosing.
Clique Space(TM). Anima ex machina.
Terms & 
Conditions
Unsubscribe
 to stop receiving communications from Risk Decisions


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 G. Weed
I'd be more than happy to contribute some cash to the appropriately formed 
company, either directly or in some form of licensing agreent. I'd also be 
willing to offer some time, though my expertise is limited to c/c++. 

Sincerely,

John .G Weed
Cicero Systems, LLC <http://www.cicerosystems.us/>
*"Reason. Resolve. Respond"*
(571) 277-9998

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.


On Fri, Mar 13, 2020, at 15:33, Thomas Wolf wrote:
> 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 
>>> 
>>>  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
>>>  > 
>>>

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 n

Re: [ANNOUNCE] Apache NetBeans 11.3 released

2020-03-04 Thread John Yeary
Congrats to everyone involved.


John Yeary

*NetBeans Dream Team*
*Founder Greenville Java Users Group*


<http://javaevangelist.blogspot.com/>  <https://twitter.com/jyeary>
<http://www.youtube.com/johnyeary>  <http://www.linkedin.com/in/jyeary>
<https://plus.google.com/112146428878473069965>
<http://www.facebook.com/jyeary>
<http://feeds.feedburner.com/JavaEvangelistJohnYearysBlog>
<http://netbeans.org/people/84414-jyeary>

"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt


On Wed, Mar 4, 2020 at 9:53 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: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-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 John G. Weed
Oops. Honestly, I did read that web page earlier. But I swear I didn't see the 
c/c++ references. My apologies!

Sincerely,

John .G Weed
Cicero Systems, LLC <http://www.cicerosystems.us/>
*"Reason. Resolve. Respond"*
(571) 277-9998

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.


On Wed, Mar 4, 2020, at 13:18, Geertjan Wielenga wrote:
> No, there is not.
> 
> The closest we can get to anything like an update on "when" has already been 
> published, on the 11.3 features page:
> 
> https://netbeans.apache.org/download/nb113/index.html
> 
> Gj
> 
> On Wed, Mar 4, 2020 at 7:17 PM John G. Weed  wrote:
>> __
>> Greetings,
>> 
>> I don't want to seem like the aging canker-sore, but is there an update on 
>> when c/c++ will be included in the NetBesns release, without requiring the 
>> 8.2 holdover?
>> 
>> Sincerely,
>> 
>> John .G Weed
>> Cicero Systems, LLC <http://www.cicerosystems.us/>
>> *"Reason. Resolve. Respond"*
>> (571) 277-9998
>> 
>> *"Steal a man's reputation for probity, and the more shrewd and clever he 
>> is, the more hated and mistrusted he'll become." *Marcus Tullius Cicero 
>> (106BC-43BC)
>> 
>> *Confidentiality Notice:* The information contained in this electronic 
>> transmission is privileged and confidential and is intended only for the 
>> recipient(s) named above. If the reader of this message is not the 
>> recipient(s) named above, or an authorized agent of such recipient(s) 
>> responsible for delivering it to the intended recipient(s), you are hereby 
>> notified that you have received this electronic transmission in error. Any 
>> review, dissemination, distribution, or copying of this electronic 
>> transmission including any attachments is strictly prohibited. If you have 
>> received this electronic transmission in error, please notify the sender 
>> immediately.
>> 
>> 
>> On Wed, Mar 4, 2020, at 11:50, Geertjan Wielenga wrote:
>>> plugins.netbeans.org is down at the moment.
>>> 
>>> Personally, I'd recommend to not spend our time on Darcula now that we have 
>>> FlatLaf.
>>> 
>>> If anyone disagrees, they're welcome to work on bringing Darcula into 
>>> Apache NetBeans GitHub.
>>> 
>>> Gj
>>> 
>>> On Wed, Mar 4, 2020 at 5:45 PM Thomas Wolf  wrote:
>>>> Excellent new release - thanks so much for the new software, especially 
>>>> the new L
>>>> 
>>>> Speaking of L, the new FlatLaf Dark uses a very similar color palette 
>>>> to Darcula, my favorite L 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 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
>>>>

Re: [ANNOUNCE] Apache NetBeans 11.3 released

2020-03-04 Thread John G. Weed
Greetings,

I don't want to seem like the aging canker-sore, but is there an update on when 
c/c++ will be included in the NetBesns release, without requiring the 8.2 
holdover?

Sincerely,

John .G Weed
Cicero Systems, LLC <http://www.cicerosystems.us/>
*"Reason. Resolve. Respond"*
(571) 277-9998

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.


On Wed, Mar 4, 2020, at 11:50, Geertjan Wielenga wrote:
> plugins.netbeans.org is down at the moment.
> 
> Personally, I'd recommend to not spend our time on Darcula now that we have 
> FlatLaf.
> 
> If anyone disagrees, they're welcome to work on bringing Darcula into Apache 
> NetBeans GitHub.
> 
> Gj
> 
> On Wed, Mar 4, 2020 at 5:45 PM Thomas Wolf  wrote:
>> Excellent new release - thanks so much for the new software, especially the 
>> new L
>> 
>> Speaking of L, the new FlatLaf Dark uses a very similar color palette to 
>> Darcula, my favorite L 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 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: SOLVED: Apache Netbeans w/NetBeans 8.2 C/C++ plugin on Raspberry Pi 4B (ARM64) running Ubuntu 18.04.4/xubuntu

2020-02-28 Thread John G. Weed
All,

I am one to give credit where credit is due. Emilian was correct in as far as 
the basic C/C++ functionality does not require JDK 8. So I will amend my 
instructions to reflect that revelation. For my own circumstances, we still 
require the JDK 8 to have the software perform as expected. The reason is 
unclear, and probably not worth digging into a this point. I'm just elated to 
be able to run the same, identical software baseline on Ubuntu 18.04 on all of 
our Enterprise, Tactical and now pocket versions. I spent the afternoon testing 
the software and it performs better than expected. A few issues that require 
some attention but nothing I'm going to lose sleep over. I am elated! 

Thanks so much everyone. 

On Fri, Feb 28, 2020, at 21:34, Emilian Bold wrote:
> I'm not entirely certain why you installed Java 8 from Oracle when you
> also have JDK 11 in the repository and NetBeans runs with Java 11.
> 
> The RPi is a capable machine, only slow part is the IO... You could
> never compile something heavy on that thing although in the past you
> would have compiled many things on a quad core / 4GB machine.
> 
> --emi
> 
> On Fri, Feb 28, 2020 at 11:26 PM John G. Weed  
> wrote:
> >
> > All,
> >
> > Forgive me if this needs to be sent via some other venue, but since this 
> > has been such a pain in the butt to find an answer to, I thought I'd write 
> > out the steps I followed to build a Raspberry Pi 4B (4GB) running the 
> > Ubuntu 18.04.4 LTS operating system, with the xubuntu desktop, for the 
> > purpose of running the NetBeans 11.2 IDE with (most importantly) support 
> > for the NetBeans 8.2 C/C++ plugin--one long run-on sentence.
> >
> > Our software baseline is currently running on some pretty hefty HP DL-380s 
> > (the Enterprise version), as well as some smaller tactical units. But we 
> > were missing a portable, pocket version platform. I wanted to be able to 
> > use not only the same operating system (Ubuntu 18.04), but the same IDE as 
> > well. This would dramatically decrease any cross platform maintenance  
> > issues. The following steps make this entirely possible. Many thanks to the 
> > folks who provided valuable suggestions.
> >
> > The following are the steps required to build a Ubuntu 18.04.4 LTS server 
> > based on the Raspberry Pi 4B (4GB) platform supporting the Apache NetBeans 
> > 11.2 IDE with the NetBeans 8.2 C/C++ plugin. If you are already well versed 
> > in Ubuntu and Raspberry Pi you may find the instructions a tad verbose. 
> > However, in order to reach the widest possible audience, I’ve taken the 
> > time to illustrate in excruciating detail. Please forward any changes or 
> > correction to nonsequi...@fastmail.com.
> >
> > Required:
> >
> > Raspberry Pi 4B 4GB
> >
> > HDMI monitor
> >
> > USB Keyboard and mouse
> >
> > USB power supply
> >
> > 16GB MicroSD
> >
> > Windows 10 or equivalent PC (to burn Ubuntu image to MicroSD card)
> >
> > Windows PC Steps:
> >
> > Wipe-clean (delete all exiting partitions) and format the 16GB MicroSD card 
> > using MiniTool Partition Wizard or equivalent
> >
> > Download file ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img from site 
> > https://ubuntu.com/download/raspberry-pi
> >
> > Using Win32 Disk Imager or equivalent, write the 
> > ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img to the MicroSD card.
> >
> > Raspberry PI 4B (RPi4):
> >
> > With power off, connect monitor, keyboard and mouse to the RPi4
> >
> > Insert imaged MicroSD card into the RPi4 and power up
> >
> > Login using username "ubuntu" and password "ubuntu"
> >
> > Respond to the change password request as appropriate and login
> >
> > Update configuration sources by entering: sudo apt-get update
> >
> > Install xubuntu desktop environment by entering: sudo apt-get install 
> > xubuntu-desktop
> >
> > Login to RPi4 using the changed password
> >
> > Run the Software Updater application, if it doesn’t start automatically, to 
> > update the various operating ystem components before continuing further; 
> > this include any requested reboots
> >
> > Using the Firefox browser, download file 
> > jdk-8u241-linux-arm64-vfp-hflt.tar.gz from site URL 
> > https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
> >
> > Bring up a Terminal window and enter the following commands to expand and 
> > install the java components necessary to run NetBeans-11.2:
> >
> > cd Downloads
> >
> > sudo mkdir /

Re: SOLVED: Apache Netbeans w/NetBeans 8.2 C/C++ plugin on Raspberry Pi 4B (ARM64) running Ubuntu 18.04.4/xubuntu

2020-02-28 Thread John G. Weed
I will try to build one without the JDK 8 and see what happens; if it  works, I 
will update my instructions. As for your comment "You could never compile 
something heavy on that thing..." I guess that depends on what you mean by 
heavy. The RPi4 is the only hardware platform, given it's physical size, that 
met our performance metrics--we've been waiting a long time for this 
capability. We've tried the BeagleBone Black and some others, but wold not run 
the Ubuntu operating system. And as I elluded to, this was important. 

Thank you for your inputs



On Fri, Feb 28, 2020, at 21:34, Emilian Bold wrote:
> I'm not entirely certain why you installed Java 8 from Oracle when you
> also have JDK 11 in the repository and NetBeans runs with Java 11.
> 
> The RPi is a capable machine, only slow part is the IO... You could
> never compile something heavy on that thing although in the past you
> would have compiled many things on a quad core / 4GB machine.
> 
> --emi
> 
> On Fri, Feb 28, 2020 at 11:26 PM John G. Weed  
> wrote:
> >
> > All,
> >
> > Forgive me if this needs to be sent via some other venue, but since this 
> > has been such a pain in the butt to find an answer to, I thought I'd write 
> > out the steps I followed to build a Raspberry Pi 4B (4GB) running the 
> > Ubuntu 18.04.4 LTS operating system, with the xubuntu desktop, for the 
> > purpose of running the NetBeans 11.2 IDE with (most importantly) support 
> > for the NetBeans 8.2 C/C++ plugin--one long run-on sentence.
> >
> > Our software baseline is currently running on some pretty hefty HP DL-380s 
> > (the Enterprise version), as well as some smaller tactical units. But we 
> > were missing a portable, pocket version platform. I wanted to be able to 
> > use not only the same operating system (Ubuntu 18.04), but the same IDE as 
> > well. This would dramatically decrease any cross platform maintenance  
> > issues. The following steps make this entirely possible. Many thanks to the 
> > folks who provided valuable suggestions.
> >
> > The following are the steps required to build a Ubuntu 18.04.4 LTS server 
> > based on the Raspberry Pi 4B (4GB) platform supporting the Apache NetBeans 
> > 11.2 IDE with the NetBeans 8.2 C/C++ plugin. If you are already well versed 
> > in Ubuntu and Raspberry Pi you may find the instructions a tad verbose. 
> > However, in order to reach the widest possible audience, I’ve taken the 
> > time to illustrate in excruciating detail. Please forward any changes or 
> > correction to nonsequi...@fastmail.com.
> >
> > Required:
> >
> > Raspberry Pi 4B 4GB
> >
> > HDMI monitor
> >
> > USB Keyboard and mouse
> >
> > USB power supply
> >
> > 16GB MicroSD
> >
> > Windows 10 or equivalent PC (to burn Ubuntu image to MicroSD card)
> >
> > Windows PC Steps:
> >
> > Wipe-clean (delete all exiting partitions) and format the 16GB MicroSD card 
> > using MiniTool Partition Wizard or equivalent
> >
> > Download file ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img from site 
> > https://ubuntu.com/download/raspberry-pi
> >
> > Using Win32 Disk Imager or equivalent, write the 
> > ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img to the MicroSD card.
> >
> > Raspberry PI 4B (RPi4):
> >
> > With power off, connect monitor, keyboard and mouse to the RPi4
> >
> > Insert imaged MicroSD card into the RPi4 and power up
> >
> > Login using username "ubuntu" and password "ubuntu"
> >
> > Respond to the change password request as appropriate and login
> >
> > Update configuration sources by entering: sudo apt-get update
> >
> > Install xubuntu desktop environment by entering: sudo apt-get install 
> > xubuntu-desktop
> >
> > Login to RPi4 using the changed password
> >
> > Run the Software Updater application, if it doesn’t start automatically, to 
> > update the various operating ystem components before continuing further; 
> > this include any requested reboots
> >
> > Using the Firefox browser, download file 
> > jdk-8u241-linux-arm64-vfp-hflt.tar.gz from site URL 
> > https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
> >
> > Bring up a Terminal window and enter the following commands to expand and 
> > install the java components necessary to run NetBeans-11.2:
> >
> > cd Downloads
> >
> > sudo mkdir /usr/lib/jvm
> >
> > sudo tar xvf jdk-8u241-linux-arm64-vfp-hflt.tar.gz --directory /usr/lib/jvm/
> >
> > /usr/lib/jvm/jdk1.8.0_

SOLVED: Apache Netbeans w/NetBeans 8.2 C/C++ plugin on Raspberry Pi 4B (ARM64) running Ubuntu 18.04.4/xubuntu

2020-02-28 Thread John G. Weed
All,

Forgive me if this needs to be sent via some other venue, but since this has 
been such a pain in the butt to find an answer to, I thought I'd write out the 
steps I followed to build a Raspberry Pi 4B (4GB) running the Ubuntu 18.04.4 
LTS operating system, with the xubuntu desktop, for the purpose of running the 
NetBeans 11.2 IDE with (most importantly) support for the NetBeans 8.2 C/C++ 
plugin--one long run-on sentence. 

Our software baseline is currently running on some pretty hefty HP DL-380s (the 
Enterprise version), as well as some smaller tactical units. But we were 
missing a portable, pocket version platform. I wanted to be able to use not 
only the same operating system (Ubuntu 18.04), but the same IDE as well. This 
would dramatically decrease any cross platform maintenance issues. The 
following steps make this entirely possible. Many thanks to the folks who 
provided valuable suggestions.

The following are the steps required to build a Ubuntu 18.04.4 LTS server based 
on the Raspberry Pi 4B (4GB) platform supporting the Apache NetBeans 11.2 IDE 
with the NetBeans 8.2 C/C++ plugin. If you are already well versed in Ubuntu 
and Raspberry Pi you may find the instructions a tad verbose. However, in order 
to reach the widest possible audience, I’ve taken the time to illustrate in 
excruciating detail. Please forward any changes or correction to 
nonsequi...@fastmail.com.

Required:

 1. Raspberry Pi 4B 4GB

   1. HDMI monitor

   2. USB Keyboard and mouse

   3. USB power supply

 2. 16GB MicroSD

 3. Windows 10 or equivalent PC (to burn Ubuntu image to MicroSD card)

Windows PC Steps:

 1. Wipe-clean (delete all exiting partitions) and format the 16GB MicroSD card 
using MiniTool Partition Wizard or equivalent

 2. Download file ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img 

 from site https://ubuntu.com/download/raspberry-pi

 3. Using Win32 Disk Imager or equivalent, write the 
ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img to the MicroSD card.

Raspberry PI 4B (RPi4):

 1. With power off, connect monitor, keyboard and mouse to the RPi4

 2. Insert imaged MicroSD card into the RPi4 and power up

 3. Login using username "ubuntu" and password "ubuntu"

 4. Respond to the change password request as appropriate and login

 5. Update configuration sources by entering: sudo apt-get update

 6. Install xubuntu desktop environment by entering: sudo apt-get install 
xubuntu-desktop

 7. Login to RPi4 using the changed password

 8. Run the Software Updater application, if it doesn’t start automatically, to 
update the various operating ystem components before continuing further; this 
include any requested reboots

 9. Using the Firefox browser, download file 
jdk-8u241-linux-arm64-vfp-hflt.tar.gz 

 from site URL 
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

 10. Bring up a Terminal window and enter the following commands to expand and 
install the java components necessary to run NetBeans-11.2:

   1. cd Downloads

   2. sudo mkdir /usr/lib/jvm

   3. sudo tar xvf jdk-8u241-linux-arm64-vfp-hflt.tar.gz --directory 
/usr/lib/jvm/

   4. /usr/lib/jvm/jdk1.8.0_241/bin/java -version

   5. /usr/lib/jvm/jdk1.8.0_241/bin/javac -version

   6. sudo apt-get install openjdk-11-jdk

   7. java -version

   8. sudo update-alternatives --install /usr/bin/java java 
/usr/lib/jvm/jdk1.8.0_241/bin/java 1

   9. sudo update-alternatives --install /usr/bin/javac javac 
/usr/lib/jvm/jdk1.8.0_241/bin/javac 1

   10. sudo update-alternatives --config java

   11. sudo update-alternatives --config javac

 11. Using the same Terminal window, enter the following command to baseline 
the NetBeans dependencies:

   1. sudo apt-get install g++

   2. sudo apt-get make

 12. Using the same Firefox browser, download file 
*Apache-NetBeans-11.2-bin-linux-x64.sh 
,
 **to the Downloads directory, **from site **URL ** 
https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh
 
*

 13. From the Terminal window, enter the following to begin the installation of 
the NetBeans 11.2 application:

   1. sudo chmod +x Apache-NetBeans-11.2-bin-linux-x64.sh

   2. sudo ./Apache-NetBeans-11.2-bin-linux-x64.sh

   3. Note: The installation procedure will prompt for the location of the JDK 
for the Appache NetBeans IDE:… Select the 
/*usr/lib/jvm/java-1.11.0-openjdk-arm64*

 14. When the installation procedure completes, which may or may not require a 
restart, start the NetBeans 11.2 application from the start menu, path Whisker 
Menu→Development→Apache NetBeans 11.2 IDE, and execute the following to 

Re: Apache Netbeans 11.2 Availablility for ARM64 (Raspberry Pi 4B)?

2020-02-26 Thread John G. Weed
Many, many thanks to all for the inputs thus far. Sincerely appreciated.

My end-game, to put all cards on the table for a sanity check, is to be able to 
run the Netbeans 11.2 IDE with C/C++ plugin, on the Raspberry Pi 4B 4GB, 
running the 64-bit Ubuntu 18.04.4 LTS operating system and the xubuntu-desktop. 
Does anyone see any issues beyond the SUBJ Netbeans ARM64 compatibility concern 
I initially started with?


Sincerely,

John .G Weed
Cicero Systems, LLC <http://www.cicerosystems.us/>
*"Reason. Resolve. Respond"*
(571) 277-9998

*"Steal a man's reputation for probity, and the more shrewd and clever he is, 
the more hated and mistrusted he'll become." *Marcus Tullius Cicero (106BC-43BC)

*Confidentiality Notice:* The information contained in this electronic 
transmission is privileged and confidential and is intended only for the 
recipient(s) named above. If the reader of this message is not the recipient(s) 
named above, or an authorized agent of such recipient(s) responsible for 
delivering it to the intended recipient(s), you are hereby notified that you 
have received this electronic transmission in error. Any review, dissemination, 
distribution, or copying of this electronic transmission including any 
attachments is strictly prohibited. If you have received this electronic 
transmission in error, please notify the sender immediately.


On Wed, Feb 26, 2020, at 13:31, Hans Grimmelshausen HG wrote:
> Hello John,
> 
>  Since (the important parts of) Netbeans is written in Java, it runs well on 
> the Raspberry Pi.
> 
>  I haven't checked it explicitly on the Pi4, but I used to use Netbeans a lot 
> on the Pi3. There I just copied the unpacked platform independent Netbeans 
> zip archive from my x86 Linux machine to the ARM Pi, and all worked well.
>  (Since the Pi has Debian based Raspbian Linux, even the Linux starter script 
> for Netbeans works without change.)
> 
>  On the 1 GB RAM Pi3 with its 1200 MHz ARM8-A53, Netbeans was already well 
> usable, so it should fly on the 1-4 GB RAM Pi4 with its 1500 MHz ARM8-A72 ?
> 
>  Greetings,
>  Hans
> 
> 
> 
> 
> Am 26.02.20 um 18:43 schrieb John G. Weed:
>> Does the download link Apache-NetBeans-11.2-bin-linux-x64.sh 
>> <https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh>
>>  ( SHA-512 
>> <https://www.apache.org/dist/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh.sha512>,
>>  PGP ASC 
>> <https://www.apache.org/dist/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh.asc>)
>>  provide support for the ARM64 chip set, as is used by the Raspberry Pi 4B? 
>> Has been my experience that x64 downloads in general do not support ARM64 
>> specifically.


Apache Netbeans 11.2 Availablility for ARM64 (Raspberry Pi 4B)?

2020-02-26 Thread John G. Weed
Does the download link Apache-NetBeans-11.2-bin-linux-x64.sh 

 ( SHA-512 
,
 PGP ASC 
)
 provide support for the ARM64 chip set, as is used by the Raspberry Pi 4B? Has 
been my experience that x64 downloads in general do not support ARM64 
specifically.

Re: Opening NetBeans in NetBeans

2020-01-08 Thread John Elliot V | ProgClub
On 9/1/20 5:11 pm, Laszlo Kishalmi wrote:
> You can open the NetBeans modules as projects into the IDE, they are
> located under several subfolders (organized by clusters) in the source
> code, like platform, java, nb, ide, etc...

Thanks for your help, but I haven't been able to complete this step,
step 4. Can you give detailed instructions on how I go about opening a
particular module in NetBeans..?

-- 
|_|O|_| ProgClub
|_|_|O| Because every programmer needs a good club!
|O|O|O| https://www.progclub.org/

<>
-
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

Opening NetBeans in NetBeans

2020-01-08 Thread John Elliot V | ProgClub
Hi there.

I've been using NetBeans for ages, but I'm a PHP programmer, not a Java
programmer.

In order to fix an issue in NetBeans I recently downloaded, patched, and
compiled NetBeans from source.

I did my source code editing with Vim and compiling with 'ant' from the
command line.

I would like to open the NetBeans sourecs in NetBeans itself, but I
haven't been able to figure out how to do that (I have no experience
using NetBeans with Java).

I tried searching for "open netbeans in netbeans" but, surprisingly, I
didn't find anything helpful. I also tried opening existing projects and
creating new projects (with existing sources) but I didn't have any luck
with that either.

Could someone explain to me how I can open the NetBeans sources (from
netbeans-11.2-source.zip [1]) in NetBeans 11.2..?

Thanks in advance.

Regards,
John Elliot V

[1] https://netbeans.apache.org/download/nb112/nb112.html

-- 
|_|O|_| ProgClub
|_|_|O| Because every programmer needs a good club!
|O|O|O| https://www.progclub.org/

<>
-
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: 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: Re: Auto-backup of unsaved source files

2019-12-10 Thread John Barrow
Slim, Thanks for trying that.  However, looking at some of the user comments on the plug-in page, one of them states “is that it simply executes the Save All action at regular intervals”. Your experience below seems to back this up.  This wasn’t really what I was after as that affects the main source files and I might want to throw the changes away. The version I was used to, used a different, user specified folder to snapshot all the open source files into and refreshed the contents every ‘x’ seconds. Once a file was saved in the IDE, the snapshot was deleted to avoid cluttering up the folder.  That way, it didn’t interfere with the normal operation of the IDE, but sits in the background for the rare time it may be needed.  Perhaps, once I have learnt enough Java and have time to build Netbeans from scratch and learn about writing your own plug-ins, I might have a go at providing one!  John From: Paul "TheSlimDude" MorrisSent: 10 December 2019 20:34To: users@netbeans.apache.orgSubject: Re: Auto-backup of unsaved source files So this one works. No delay at all, though. As soon as you type, it saves. There does not seem to be any configuration for it. With saving that frequently it may introduce some problems of it's own. I'm not sure I like it. But at least it works. Tested in 11.1.---Cheers,Slim On 2019-12-10 15:13, Oliver Rettig wrote:I have just found an other one: http://plugins.netbeans.org/plugin/63714/autosavemodifiedI just installed it in 11.1. No objections from the IDE but I have it turned on in Options/Miscellaneous and a file I have open and edited is not being auto-saved. Based on this, I'd say it does not appear to work. :(---Cheers,Slim On 2019-12-10 12:26, John Barrow wrote:Slim, Thanks, that plug in appears to describe exactly what I was after, just one minor issue, I am running Netbeans 10.0, shortly to upgrade to version 11. There doesn't appear to be a version to support these instances of NetBeans. However, I have bookmarked the page and will keep an eye on when that version becomes available unless there is another AutoSave plug-in that is more up-to-date. John From: Paul "TheSlimDude" MorrisSent: 10 December 2019 16:42To: users@netbeans.apache.orgSubject: Re: Auto-backup of unsaved source files You mean this on ehere?http://plugins.netbeans.org/plugin/37077/autosave-module-for-6-9-and-later---Cheers,Slim On 2019-12-10 11:39, Oliver Rettig wrote:Hi,I remember there was a Autosave-Plugin but I can not find it any more. Any body else remembering on such plugin?best regardsOliverEmilian, Thanks for the suggestion. I tried this option (as was hinted during a Google search) before emailing but there wasn't anything in the list. I assume that this is because it was a new file and I hadn't saved it yet. I ideally wanted something that did an auto-snapshot every x minutes (user specified) somewhere external to the main source folder, specifically for the case where I hadn't yet saved my current set of changes so I then had the option to retrieve these latest 'in progress' edits, or start back with the last version that was saved in Netbeans. The way I read it, the "Local History" allows you to see all the previous saved snapshots of your source (a bit like you get for each committed change to a source control system). John From: Emilian BoldSent: 10 December 2019 15:36To: John BarrowCc: NetBeans MailingSubject: Re: Auto-backup of unsaved source files See Local History.--emi mar., 10 dec. 2019, 16:58 John Barrow <jbarrow...@gmail.com> a scris:Is there an option for Netbeans to auto-save your work every (say) 5 minutes so that if Windows reboots (for example after an update) and you have forgotten to formally save work to date, there is a place to go (e.g. specified folder) that will have the version of source just before (or near enough if set the snapshot to be taken every minute) the application was closed / killed? My previous development environment had this option which made you lazy but MS Office also has something similar. While it may not save every last word, it is a useful background task that minimises the effect of any external activities. I ask, as have just lost ½ hours typing due to performing a Windows Update that required a restart and I forgot to first check that I had explicitly saved all my changes in Netbeans (force of habit based on old development environment). I googled to see if there was an obvious answer and had a look at the Editor Options in Netbeans but couldn't see any support for this. Thanks (for the next time it happens)! John - 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

RE: Re: Auto-backup of unsaved source files

2019-12-10 Thread John Barrow
Slim, Thanks, that plug in appears to describe exactly what I was after, just one minor issue, I am running Netbeans 10.0, shortly to upgrade to version 11. There doesn’t appear to be a version to support these instances of NetBeans. However, I have bookmarked the page and will keep an eye on when that version becomes available unless there is another AutoSave plug-in that is more up-to-date. John From: Paul "TheSlimDude" MorrisSent: 10 December 2019 16:42To: users@netbeans.apache.orgSubject: Re: Auto-backup of unsaved source files You mean this on ehere?http://plugins.netbeans.org/plugin/37077/autosave-module-for-6-9-and-later---Cheers,Slim On 2019-12-10 11:39, Oliver Rettig wrote:Hi,I remember there was a Autosave-Plugin but I can not find it any more. Any body else remembering on such plugin?best regardsOliverEmilian, Thanks for the suggestion. I tried this option (as was hinted during a Google search) before emailing but there wasn't anything in the list. I assume that this is because it was a new file and I hadn't saved it yet. I ideally wanted something that did an auto-snapshot every x minutes (user specified) somewhere external to the main source folder, specifically for the case where I hadn't yet saved my current set of changes so I then had the option to retrieve these latest 'in progress' edits, or start back with the last version that was saved in Netbeans. The way I read it, the "Local History" allows you to see all the previous saved snapshots of your source (a bit like you get for each committed change to a source control system). John From: Emilian BoldSent: 10 December 2019 15:36To: John BarrowCc: NetBeans MailingSubject: Re: Auto-backup of unsaved source files See Local History.--emi mar., 10 dec. 2019, 16:58 John Barrow <jbarrow...@gmail.com> a scris:Is there an option for Netbeans to auto-save your work every (say) 5 minutes so that if Windows reboots (for example after an update) and you have forgotten to formally save work to date, there is a place to go (e.g. specified folder) that will have the version of source just before (or near enough if set the snapshot to be taken every minute) the application was closed / killed? My previous development environment had this option which made you lazy but MS Office also has something similar. While it may not save every last word, it is a useful background task that minimises the effect of any external activities. I ask, as have just lost ½ hours typing due to performing a Windows Update that required a restart and I forgot to first check that I had explicitly saved all my changes in Netbeans (force of habit based on old development environment). I googled to see if there was an obvious answer and had a look at the Editor Options in Netbeans but couldn't see any support for this. Thanks (for the next time it happens)! John - 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: Re: Auto-backup of unsaved source files

2019-12-10 Thread John Barrow
Emilian, Thanks for the suggestion. I tried this option (as was hinted during a Google search) before emailing but there wasn’t anything in the list. I assume that this is because it was a new file and I hadn’t saved it yet. I ideally wanted something that did an auto-snapshot every x minutes (user specified) somewhere external to the main source folder, specifically for the case where I hadn’t yet saved my current set of changes so I then had the option to retrieve these latest ‘in progress’ edits, or start back with the last version that was saved in Netbeans.  The way I read it, the “Local History” allows you to see all the previous saved snapshots of your source (a bit like you get for each committed change to a source control system). John From: Emilian BoldSent: 10 December 2019 15:36To: John BarrowCc: NetBeans MailingSubject: Re: Auto-backup of unsaved source files See Local History.--emi mar., 10 dec. 2019, 16:58 John Barrow <jbarrow...@gmail.com> a scris:Is there an option for Netbeans to auto-save your work every (say) 5 minutes so that if Windows reboots (for example after an update) and you have forgotten to formally save work to date, there is a place to go (e.g. specified folder) that will have the version of source just before (or near enough if set the snapshot to be taken every minute) the application was closed / killed? My previous development environment had this option which made you lazy but MS Office also has something similar. While it may not save every last word, it is a useful background task that minimises the effect of any external activities. I ask, as have just lost ½ hours typing due to performing a Windows Update that required a restart and I forgot to first check that I had explicitly saved all my changes in Netbeans (force of habit based on old development environment).  I googled to see if there was an obvious answer and had a look at the Editor Options in Netbeans but couldn’t see any support for this. Thanks (for the next time it happens)! John - 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



Auto-backup of unsaved source files

2019-12-10 Thread John Barrow
Is there an option for Netbeans to auto-save your work every (say) 5 minutes so that if Windows reboots (for example after an update) and you have forgotten to formally save work to date, there is a place to go (e.g. specified folder) that will have the version of source just before (or near enough if set the snapshot to be taken every minute) the application was closed / killed? My previous development environment had this option which made you lazy but MS Office also has something similar. While it may not save every last word, it is a useful background task that minimises the effect of any external activities. I ask, as have just lost ½ hours typing due to performing a Windows Update that required a restart and I forgot to first check that I had explicitly saved all my changes in Netbeans (force of habit based on old development environment).  I googled to see if there was an obvious answer and had a look at the Editor Options in Netbeans but couldn’t see any support for this. Thanks (for the next time it happens)! John 

-
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 - 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
>>
>>


  1   2   >