Re: Maven Documentation

2024-06-22 Thread Mark A. Flacy
Greetings,

To fully understand what the Maven XSD is telling you, I fear that you'll have 
to read some 
www.w3.org documentation.

The wikipedia page is useful (since this isn't a political issue):  
https://en.wikipedia.org/wiki/
XML_Schema_(W3C)[1]  It provides links to the various XML Schema Definition 
recommendation documents.

Bear in mind that "recommendation" by now means "do it this way".  (There are 
alternate 
ways to describe what an XML document should or should not contain; maven 
doesn't use 
them.  The wikipedia link has references to those alternates, but that 
shouldn't concern you 
too much.)


While you'll find those W3C documents rather dense and annoying, I'll point out 
that an 
XML-aware editor will use that information to tell you what stuff you can 
insert into a 
pom.xml file at any given location.  (Well, most of the time; I've been using 
gradle more than 
maven when I can, but I know there are some things that the XSD cannot express. 
 OTOH, 
most maven plugin writers don't do stupid things to make the XSD ambiguous.)

-- 
Mark A. Flacy
/mfl...@verizon.net/

On Saturday, June 22, 2024 4:12:16 PM CDT slipbits wrote:
> Sorry about the late response.
> 
> Thank you all. I looked at the reference site and, sigh, to download the
> book I need to provide my email. I don't do this. Not because I object
> but I object to the endlessly following emails trying to sell me
> something, or tell me something, or encouraging me to do something. So,
> no book.
> 
> But I did find something, "Introducing Maven". It's old but it addresses
> topics in a way that I personally find satisfying. For one, it provides
> a consistent overview of topics, going into enough detail to illustrate
> a single point, and explaining that point, before going on. And to the
> point I have read, there are no errors; and all terms and tags are
> defined. I would add that in that long time past I was told that in
> order to provide a good presentation you should "say what you're going
> to say, say it, tell what you have said", and to this "Introducing
> Maven" does.
> 
> This is a significant departure from the Apache Maven collection in
> which none of the tutorial or referenced material has an overview but
> does have any one or all of errors, incomplete information on a topic,
> use of unexplained tags, endless references to material which suffers
> from the above. This condition exists in every single one of the
> tutorial and non-tutorial material I have looked at.
> 
> I have also looked at other book(s). Of those I have looked at none have
> an overview of the material to be covered.
> 
> I am endlessly grateful for your help.
> 
> thanks
> art
> 
> On 6/2/2024 11:19 PM, Davide Grandi wrote:
> > Right.
> > 
> > 1) get an example
> > 2) mvn clean
> > 3) mvn clean compile
> > 3) mvn clean compile package
> > 4) mvn clean compile package install
> > 
> > you can keep only "clean" and "the last command on he row", the
> > intermediate ones are implied.
> > 
> > welcome on maven !
> > 
> > Davide
> > 
> >> That's not helpful, because it's about syntax details, google "maven
> >> beginners" or "maven tutorial" and choose one that makes sense.
> >> 
> >> This one is not bad: https://www.baeldung.com/maven
> >> 
> >> (my first hits were on the apache site but these seemed too complex,
> >> despite that I've been using maven for years)
> >> 
> >> Tilman
> >> 
> >> On 03.06.2024 04:11, slipbits wrote:
> >>> I'm just getting into Maven and I'm trying to find a good book that
> >>> describes the POM and Maven. I'm just going through the Apache Maven
> >>> 
> >>> Project POM reference and things like:
> >>> According to the POM 4.0.0 XSD, the |build| element is
> >>> conceptually divided into two parts: there is a |BaseBuild| type
> >>> which contains the set of elements common to both |build|
> >>> elements (the top-level build element under |project| and the
> >>> build element under |profiles|, covered below); and there is the
> >>> 
> >>> |Build| type, which contains the |BaseBuild| set as well as more
> >>> 
> >>> elements for the top level definition. Let us begin with an
> >>> analysis of the common elements between the two.
> >>> 
> >>> are a real puzzler.
> >>> 
> >>> If this isn't the correct place to ask then please direct me to the
> >>> correct source.
> >>> 
> >>> thanks




[1] https://en.wikipedia.org/wiki/XML_Schema_(W3C)

Re: Gradle modules and dependency scanning

2023-06-26 Thread Mark A. Flacy
Greetings,

Well, yes, I've had gradle issues in the past due to work projects.  It is 
rather important that 
the people trying to fix issue X have a way to ensure that they are using code 
that invokes 
issue X to see if  they are actually fixing issue X.

_*Nobody*_ expects you to publish your non-opensource project.  Anybody else 
who might 
consider working upon your issue expects you to provide an example that shows 
your 
failure mode if you cannot expose the project with which you have a problem.  
The 
interesting bit is that you /may/ (not will, but *MAY*) find the source of your 
issue while 
creating the simulated project that reflects the very issue you have.

Get a throw-away email account and create a GitHub account for your simulated 
project.  Or 
provide a link to git repo that shows your issue.  Or create a local file tree 
of your simulated 
gradle projects tree, tar it up, and attach it to your JIRA ticket.

There is not a single person on this mailing list who will get money for fixing 
your problem. 
(assuming you haven't set a bounty to do so).  You should make it simple to 
other humans 
to replicate your problem so that they may help.   

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, June 26, 2023 7:18:53 AM CDT Thomas Kellerer wrote:
> Well, I can't show the real project (customer project with NDA). And I can't
> just create a project of that size (35 projects, 550K lines of code). AndNob
> besides I don't have a Github account.
> 
> The problem is, that basically every problem I have with NetBeans and Gradle
> only happens on bigger projects (and not with some tiny example projects.
> It would be a lot more helpful if NetBeans offered some diagnostic data
> that would allow investigating such a problem. It's pretty unrealistic to
> as every user that has a problem to publish their projects.
> 
> I thought Gradle uses the term "module" for projects that consist of
> multiple sub-projects, but apparently I was wrong.
> 
> The layout is:
> 
>main_project
>  sub-project1
> sub-sub-project1
> sub-sub-project2
>  sub-project2
>  sub-project3
> sub-sub-project1
> sub-sub-project2
> sub-sub-project3
> sub-sub-project4
> sub-sub-project5
> sub-sub-project6
> sub-sub-project7
> sub-sub-project8
> sub-sub-project9
> sub-sub-project10
> sub-sub-project11
> sub-sub-project12
> sub-sub-project13
> sub-sub-project14
> sub-sub-project15
>  sub-project4
>  sub-project5
>  sub-project6
>  sub-project7
> sub-sub-project1
> sub-sub-project2
> sub-sub-project3
> sub-sub-project4
> sub-sub-project5
> sub-sub-project6
> sub-sub-project7
> sub-sub-project8
> sub-sub-project8
>  sub-project8
> sub-sub-project1
> sub-sub-project2
> sub-sub-project3
> sub-sub-project4
> sub-sub-project5
>  sub-project9
>  sub-project10
>  sub-project11
>  sub-project12
> sub-sub-project1
> sub-sub-project2
> 
>  sub-project13
> 
> For those sub-projects that aren't recognized I can see the following
> entries in the NetBeans logfile:
> 
> INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load
> aiming EVALUATED for Unloaded Gradle Project:
> GradleFiles[projectDir=C:\Projects\**\main\commons,
> rootDir=C:\Projects\***\main]
> 
> Thomas
> 
> Mark A. Flacy schrieb am 26.06.2023 um 13:47:
> > Create a simple example in GitHub or GitLab so that people have something
> > to test against.
> > 
> > I'm not sure how your project is set up, since I normally don't use the
> > term "module" in gradle projects.
> > 
> > 
> > 
> > Sent from my Galaxy
> > 
> > 
> >  Original message 

Re: Gradle modules and dependency scanning

2023-06-26 Thread Mark A. Flacy
Create a simple example in GitHub or GitLab so that people have something to 
test against.I'm not sure how your project is set up, since I normally don't 
use the term "module" in gradle projects.Sent from my Galaxy
 Original message From: Thomas Kellerer  Date: 
6/26/23  01:17  (GMT-06:00) To: users@netbeans.apache.org Subject: Re: Gradle 
modules and dependency scanning Any ideas?Thomas Kellerer schrieb am 13.06.2023 
um 11:36:> I noticed one problem (in NetBeans 17 but it also happens with 18) 
with the Gradle integration.>> I am working on a multi-module project (with 40 
modules) using Gradle.>> Dependencies to classes in modules that are not 
currently open in the Projects window are not detected.> NetBeans marks classes 
using classes from a non-opened module with an error ("ClassNotFound"), even 
though the class is available to Gradle when building>> As soon as I open the 
module containing the "missing" class, and reload the referencing module, the 
error badges go away.>> However I don't really want to have all those 40 
modules open all the time to keep the "Projects" window clean, but the fact 
that most modules will be marked as erroneous, makes this a bit annoying.>> Is 
there anything I can do, to make NetBeans recognize the classes from non-opened 
modules?>> The Maven integration does not have this problem (although I have to 
admit that most Maven projects I work on have a lot fewer modules than 40)>> 
Regards> 
Thomas-To 
unsubscribe, e-mail: users-unsubscribe@netbeans.apache.orgFor additional 
commands, e-mail: users-help@netbeans.apache.orgFor further information about 
the NetBeans mailing lists, 
visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: Distribution of a NB app with a native library ?

2023-05-31 Thread Mark A. Flacy
Greetings,
 
At best you could claim that your package supports a specific version of a 
specific Linux distribution (with some caveats around Redhat<-->Fedora and 
Ubuntu<-->Debian equivalences).

Ideally, you'd make a different bundle that was keyed in some way such that a 
linux user of a non-Ubuntu/Debian/RedHat/Fedora/Gentoo distribution could wire 
in their own.

-- 
Mark A. Flacy
mfl...@verizon.net

On Wednesday, May 31, 2023 4:11:58 PM CDT Jerome Lelasseux wrote:
> Please forgive me it's not a pure Netbeans question.
> 
> The next version of my Netbeans platform music app uses a native library,
> the software synth Fluidsynth
> https://github.com/FluidSynth/fluidsynth/wiki/Download which is available
> on Win/Linux/Mac.
> 
> Would you have recommandations on the best way to package my app to continue
> distribution for Win/Linux/Mac ? ("best"=a trade-off between minimize work
> for me and end-user acceptability).
> 
> What I understood so far:
> Simpler for me is to bundle the native lib plus its few dependencies into
> the package. I did it on Windows, I can still use the NB packaging feature
> and it works OK.
> 
> But is it possible to do this for Linux ? When I checked on Ubuntu the
> fluidsynth lib dependencies using ldd, I found tons of libraries I would
> need to embed, and I guess they would work only for Ubuntu. I don't easily
> have access to a Mac, so not sure for Mac. Another option is to create a
> package for my app (e.g.  deb Linux and brew for Mac) which declares a
> dependency so that the package manager takes care about installing
> fluidsynth. But there are many different package managers, not for all
> distros, same for Mac, with some restrictions... I lack some experience on
> Linux and Mac and I'm lost. Any help welcome.
> 
> Thanks  Jerome





-
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: Migrating NB platform app to maven

2023-05-15 Thread Mark A. Flacy
Greetings,

Ant never had an automatic way to pull in dependencies (well, perhaps later 
versions of Ant did but I am ignorant of such updates).  Maven and gradle, 
however, know how to query external repositories of information to pull in 
such dependencies.

Maven and gradle ALSO know that you should cache such artifacts locally as 
much as possible.

In your case, you should publish any local artifacts to your local maven 
repository.  (Look in the ~/.m2/repository/ directory structure to see what's 
cached.)

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, May 15, 2023 3:26:03 PM CDT Jerome Lelasseux wrote:
> I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but
> I'm new to Maven, so forgive the newbie question.
> 
> I created a new empty NB platform app with a sample module from the NB
> wizard, then I built from there. I used https://github.com/gephi/gephi  on
> GitHub as a kind of model. So now I have my parent project, the app
> project, the branding project and all my modules. I checked the various
> pom.xml. Running "mvn validate" is a success, and the projects structure in
> the IDE is OK.
> 
> BUT... I can't build ! Using "BUild with dependencies" on the app project, I
> get error messages like:
> 
> The POM for org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT is missing, no
> dependency information available The POM for
> org.netbeans.api:org.openide.actions:jar:RELEASE170 is missing, no
> dependency information available...
> 
> Using the "Solve project problems" menu, I understood that the dependencies
> are not found because they are not available in my local repository. But to
> be in the repository I need to compile the module, which depends on other
> modules etc... The only modules I was able to compile are the few ones with
> no dependencies at all, so only those were copied in the local repository.
> 
> I expected Maven (or rather the reactor plugin) to parse the module
> dependency tree and infer the appropriate compilation order, like Ant
> did... What do I miss ?
> 
> 
> Jerome
> PS: I used a bash script to automate the migration process as much as
> possible. When I'm done I'll be happy to share it -there is not much info
> on the web...





-
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: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Mark A. Flacy
There used to be a gradle plugin for NetBeans. Sent from my Galaxy
 Original message From: Scott Palmer  Date: 
2/26/23  08:49  (GMT-06:00) To: Thomas Kellerer  Cc: NetBeans 
Mailing List  Subject: Re: Creating a new platform 
application: Maven or Ant? > On Feb 26, 2023, at 7:14 AM, Thomas Kellerer 
 wrote:> > Hello,> > I am trying to "migrate" an old NetBeans 
platform application that I created with NetBeans 8.0 about 10 years ago> > I 
decided to create a new NetBeans platform application from scratch as there is 
a lot of stuff I would do differently today.> > However, I am not sure if I 
should go for Maven or Ant as the basis for my new application.> > What is the 
recommendation from the NetBeans team for a new platform project?> > I am using 
Java 17 if that matters.For any Java project (my opinion, based on experience 
with all three options.):Prefer Maven over Ant.Prefer Gradle over Maven.There 
are exceptions and how well you know each tool will certainly influence the 
order that works for you.I don’t think Gradle is an option for a NetBeans 
Platform project.  So Maven is the best choice in this situation.I don’t think 
there is a case where I would ever choose to create a new Ant-based project 
these days.  It is more flexible than Maven, but far more awkward to work with 
than Gradle.  IMO it should probably be hidden as a legacy option in the New 
Project 
dialog.Scott-To
 unsubscribe, e-mail: users-unsubscribe@netbeans.apache.orgFor additional 
commands, e-mail: users-help@netbeans.apache.orgFor further information about 
the NetBeans mailing lists, 
visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: NB 15 no linux installer anymore?

2022-09-14 Thread Mark A. Flacy
I do not see how your message has anything to do with what either I or Mr. 
Kishalmi wrote in our messages that are quoted below. 

I posted no links at all.  Mr. Kishalmi posted a link around using snap to 
manage your local NetBeans installation.

WE are discussing linux installers.  YOU are asking about something else.  You 
should post your own message to the mailing list with an applicable subject 
line versus hijacking this conversation.

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M09 14, Wed 04:11:26 CDT Amn Ojee Uw wrote:
> Humm, I followed the link you have posted in your message, read the
> information in the web page and have found it not entirely true. C++ tools,
> don't know much about that. Could you please add a link to a tutorial of
> how to create a C++ program in netbeans. Thanks in advance.
> 
> On Wed., Sep. 14, 2022, 12:10 a.m. Mark A. Flacy,
> 
>  wrote:
> > Snap requires systemd to work.  Many, but not all, linux distributions use
> > systemd.
> > 
> > If your distro doesn't use systemd, don't expect snap to work for you.
> > 
> > --
> > Mark A. Flacy
> > mfl...@verizon.net
> > 
> > On 2022 M09 13, Tue 21:40:38 CDT László Kishalmi wrote:
> > > For the best Linux experience check out: https://snapcraft.io/netbeans
> > > It adds an application icon. The best thing is that NetBeans gets
> > > updated
> > > automatically when a new version is released. That happens seamlessly
> > > without the need of running the import option. It also has the option to
> > 
> > go
> > 
> > > back to the previous version if you do not like what we put in the most
> > > recent one.
> > > 
> > > On Tue, Sep 13, 2022 at 7:52 AM PHP-Backoffice 
> > > 
> > > wrote:
> > > > Hi,
> > > > 
> > > > is it right that there is no installer for linux platform anymore?
> > > > 
> > > > --
> > > > Mit freundlichem Gruß
> > > > aus dem PHP-Backoffice in Franken
> > > > 
> > > > Ortwin Pinke
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > For additional commands, e-mail: users-h...@netbeans.apache.org
> > 
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





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

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



Re: NB 15 no linux installer anymore?

2022-09-13 Thread Mark A. Flacy
Snap requires systemd to work.  Many, but not all, linux distributions use 
systemd.   

If your distro doesn't use systemd, don't expect snap to work for you.

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M09 13, Tue 21:40:38 CDT László Kishalmi wrote:
> For the best Linux experience check out: https://snapcraft.io/netbeans
> It adds an application icon. The best thing is that NetBeans gets updated
> automatically when a new version is released. That happens seamlessly
> without the need of running the import option. It also has the option to go
> back to the previous version if you do not like what we put in the most
> recent one.
> 
> On Tue, Sep 13, 2022 at 7:52 AM PHP-Backoffice 
> 
> wrote:
> > Hi,
> > 
> > is it right that there is no installer for linux platform anymore?
> > 
> > --
> > Mit freundlichem Gruß
> > aus dem PHP-Backoffice in Franken
> > 
> > Ortwin Pinke





-
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: Simple navigation question

2022-08-18 Thread Mark A. Flacy
Right click in the file's edit window and get the pop-up menu.  "Select in 
Projects" should do the trick.

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M08 18, Thu 14:37:11 CDT Blake McBride wrote:
> Greetings,
> 
> I am using NetBeans 14.  I have a simple navigation question (in Java).
> 
> Let's say I have many classes in a package hierarchy.  I am editing a
> particular file / class.  I want to click something so that my "Packages"
> window selects the file I am editing.
> 
> Seems like a simple need.  I just can't figure out how to do it.
> 
> Sure appreciate any help.
> 
> Blake McBride





-
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: Running with three heads

2022-08-10 Thread Mark A. Flacy
You can drag off any edit window to another display (or even another window on 
the same display).  The overall interface gets a little weird  on a Mac, but 
perfectly doable.

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M08 10, Wed 19:05:48 CDT Blake McBride wrote:
> Greetings,
> 
> I have three monitors.  I like to have the IDE with the back-end on one
> monitor.  Another IDE running the front-end on a second monitor.  And then,
> the browser displaying the app on the third monitor.
> 
> The problem I am having is that NB (14) will only allow me to have one
> (essentially) head.  I know I can open up both projects on the same head,
> but I want to see code from both at the same time.  So, I'd like to open
> two copies of NB.  One would be open to my front-end project, and the other
> would be open to my back-end project.  Can I do this?
> 
> Thanks!
> 
> Blake McBride





-
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 Mark A. Flacy
So...

Other people on this list have attempted to help prior to this reply.  They are 
much nicer than 
I.

 1.  You *never* asked a question.   You posted a bit of code and indicated 
there was an 
error.  You didn't indicate that you tried to figure out the error or anything 
else.  The people 
who subscribe to this list aren't your parents and are under no obligation to 
try to read your 
mind (assuming your parents have that obligation) to solve your _unstated_ 
problems.
 2.  This mailing list is to discuss Netbeans issues.  Basic java problems 
really shouldn't be 
addressed here, although I might be in the minority in this mailing list with 
that opinion.

There are ample places other than this list to find an answer to your implied 
problem. 

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M05 22, Sun 17:52:55 CDT 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/ja
> va/${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: Does Anyone Know How to set -source 8?

2022-02-09 Thread Mark A. Flacy
As described, yes.

If you wish to give more details about your project, I might wish to provide 
more details on the answer.

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M02 9, Wed 16:08:45 CST Tim de Vries wrote:
> As described.
> 
> Unfortunately Netbeans 12.5 does not reckognize Java POJO's as Such.
> Moving to.
> 
> 
> @Windows 10
> 
> #Windows 7
> 
> #Linux
> 
> #MacOS.
> 
> #everyone,#Everywhere,#AllTheTime.
> 
> #when I, MavenResolver, SpringBoot-Dependency-Tree,
> 
> 
> #itDoesntYet.
> 
> #allRequirementsPlusSuggestions.
> 
> 
> #aTimDependency.
> 
> #everythingElse.
> 
> 
> 
> -
> 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: adding external source code

2022-02-05 Thread Mark A. Flacy
Greetings,

I rather doubt that anyone will respond to this because nobody other than you 
knows what type of project you had created or how you created it.  Nobody 
other than you know the purpose of adding the external source to your project.

Don't be a sociopath.  How the devil would any of us know anything about "my 
project"?

-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M02 4, Fri 05:15:06 CST Amn wrote:
> How can I add external source code (file.java) to my project?
> All the information I found is related to adding libraries (file.jar)
> to the project, which I have already done (thanks folks).
> 
> TIA.
> 
> 
> -
> 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: jar works on NB but not on debian console

2022-02-05 Thread Mark A. Flacy
Greetings,

My idea is that you should start providing useful details in your questions to 
this list after 
you read normal java documentation.  Here's some help with the last bit:

https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#standard-options-for-java[1]

 *  -jar /jarfile/
Executes a program encapsulated in a JAR file. The /jarfile/ argument is the 
name of a JAR file 
with a manifest that contains a line in the form Main-Class:/classname/ that 
defines the class 
with the public static void main(String[] args) method that serves as your 
application's 
starting point. When you use -jar, the specified JAR file is the source of all 
user classes, and 
other class path settings are ignored.


-- 
Mark A. Flacy
mfl...@verizon.net

On 2022 M02 5, Sat 12:53:05 CST Amn wrote:
> In my Debian 11 machine I am trying to run the jar produced by Netbeans
> 12.6 using Java 17+ on the terminal, but it does not run correctly. The
> program just displays '>' as if waiting for an input. The program runs
> find when I run it from Netbeans though!
> The command I am using from the prompt is : 
> 'java -jar "[MyDevDir]/NetbeansWorkSpace/beep/dist/beep.jar"
> Any ideas?
> 
> 
> -
> 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] 
https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#standard-options-for-java


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

2022-01-15 Thread Mark A. Flacy
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



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

2022-01-15 Thread Mark A. Flacy
Greetings,

https://stackoverflow.com/questions/57421537/java-11-package-is-declared-in-module-which-does-not-export-it[1]

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




[1] 
https://stackoverflow.com/questions/57421537/java-11-package-is-declared-in-module-which-does-not-export-it


Re: How to remove Maven from Netbeans 12.0

2021-11-18 Thread Mark A. Flacy
Greetings,

Try Tools -> Plugins -> Installed and then click on "Show details" .  Look for 
Maven in the list and click the green check to make it go grey.   If you 
loaded gradle support, you should turn that off as well.

I couldn't live without maven library resolution, so I don't know if this will 
actually work.  You may have to restart NetBeans as well.

-- 
Mark A. Flacy
mfl...@verizon.net

On Thursday, November 18, 2021 7:01:14 PM CST Bayless Kirtley wrote:
> I have about 2 dozen total projects, all of which are ant projects and
> mostly old. I only have 5 projects open at this time and that is fairly
> common. the others are either dormant or very stable.
> 
> I did start a very simple "hello world" sort of maven project a few
> months ago when I thought I would have to learn it. I never did much
> with it and have long ago deleted it when I decided I didn't need maven
> after all. When I first startyed it, maven did build its local
> repository which took a very long time. I think I have seen it update
> that at least once since then.
> 
> I get the impression maven is checking on updates or something from the
> past but no way to determine what or why.
> 
> thanks for the suggestion
> 
> Bayless
> 
> On 11/18/21 5:51 PM, Eric Bresie wrote:
> > Was the project created as a Maven project?  Is so it may start up as
> > such and may check on dependency updates to repositories.
> > 
> > Maybe as simple as recreate as Ant project and move source and ant
> > files over.
> > 
> > On Thu, Nov 18, 2021 at 4:24 PM Bayless Kirtley  > 
> > <mailto:bk...@cox.net>> wrote:
> > I added Maven to my Netbeans 12.0 on Linux on advice that I needed to
> > have it. That turned out to be untrue. Ant serves my needs
> > perfectly so
> > I will be staying with it. Meanwhile Maven seems to be the culprit
> > that
> > slows down Netbeans startup. Before Maven it would start from scratch
> > very quickly, it seems like 15 or 20 seconds. Now it takes over a
> > minute, sometimes even longer. I think it might be updating its
> > repository or something. Meanwhile I have the same OS and Netbeans
> > on my
> > laptop with a much slower processor and disc and it comes up much
> > quicker than the desktop. I also have Netbeans 8.2 on the same
> > desktop
> > but without Maven and it still loads much quicker.
> > 
> > Is there a way to completely remove Maven from Netbeans? I can't even
> > find it in the list of plugins.
> > 
> > Thanks,
> > 
> > Bayless
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > <mailto:users-unsubscr...@netbeans.apache.org>
> > For additional commands, e-mail: users-h...@netbeans.apache.org
> > <mailto:users-h...@netbeans.apache.org>
> > 
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
> > 
> > --
> > Eric Bresie
> > ebre...@gmail.com <mailto:ebre...@gmail.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: NB taking up 200% CPU checking for external changes :-(

2021-10-20 Thread Mark A. Flacy
Mr. Kishalmi had much better advice.  Do what he said instead of the below.

-- 
Mark A. Flacy
mfl...@verizon.net

On Wednesday, October 20, 2021 2:28:44 PM CDT Mark A. Flacy wrote:
> Greetings,
> 
> The next step would be to run some tool such as jconsole or jvisualvm on the
> same machine to see what is going on in your netbeans  instance.
> 
> At least you will find out what thread is creating trouble.
> 
> --
> Mark A. Flacy
> mfl...@verizon.net
> 
> On Wednesday, October 20, 2021 1:57:03 PM CDT Thomas Wolf wrote:
> >  Hi Mark,
> > 
> > I think this CPU abuse happens independent of project size or resources. 
> > I
> > already had modified my netbeans.conf to give it plenty of heap (2-4gb),
> > but I’m not even running anything  ‘large’ - when this happens, there are
> > always only two projects open in the IDE - one is a library project with
> > just a couple dozen java files and a J2SE project with less than 100
> > source
> > files.  Downright puny!  A few years back I was working on a  project with
> > 5000 java files and NB never even broke a sweat.  This bug with external
> > changes causing NB a tizzy has been around for awhile.  I think there was
> > a
> > way to turn external checking off, but I can’t seem to find it right now.
> > Plus the disadvantage would be that when I do occasionally externally
> > inject changes (eg copying an image file into the project source tree), NB
> > might not react appropriately. :-(
> > 
> > Anyway, any further suggestions, let me know.  Much appreciated.
> > 
> > Tom
> > 
> > p.s. has anyone noticed that macOS Monterey now no longer has an
> > “Anywhere”
> > option in System Settings->Security & Privacy->General->Allow apps
> > downloaded from ??? Annoying as hell.  It’s already refused to run half a
> > dozen things I downloaded and wanted to run - have to manually give an
> > exception :-(  Does anyone know of a way to turn this off?  I haven’t
> > tried
> > downloading a new version of NB lately, but macOS won’t run that either, I
> > don’t think, without manual exception.
> > 
> > 
> > 
> > On Oct 20, 2021 at 1:18:58 PM, Mark A. Flacy 
> > 
> > wrote:
> > > Greetings,
> > > 
> > > How many projects are in your projects panel?
> > > 
> > > If you haven't modified (God, I hate this)
> > > "/Applications/NetBeans/Apache\
> > > NetBeans\
> > > 12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf"
> > > to allow a larger heap than the paltry default, you may be observing the
> > > JVM performing the garbage collection of death dance which you'll see in
> > > any java application that is operating at the edge of getting an OOM
> > > error.
> > > 
> > > 
> > > 
> > > I have a MacBook Pro for work (32GB RAM) and I have changed the
> > > *netbeans_default_options* in the above file to have the additional flag
> > > of "-J-Xmx16384m" as well as setting *netbeans_jdkhome* to point to
> > > something sane.
> > > 
> > > HTH.
> > > 
> > > 
> > > --
> > > 
> > > Mark A. Flacy
> > > 
> > > mfl...@verizon.net
> > > 
> > > On Wednesday, October 20, 2021 11:54:02 AM CDT Thomas Wolf wrote:
> > > > I have NB 12.4, but I have noticed the same behavior on previous NBs
> > > > as
> > > > 
> > > > well:
> > > > 
> > > > 
> > > > 
> > > > Most of the time, my MacBook Pro is quiet as can be.  But every now
> > > > and
> > > > 
> > > > then (every other day?), I’d be surfing the web or reading the mail
> > > > when
> > > 
> > > my
> > > 
> > > > fans start spinning up - often getting to their max speed *and staying
> > > > 
> > > > there*.  Usually, I’m not doing anything CPU intensive at all and when
> > > > I
> > > > 
> > > > look at the Activity Monitor, it’s always Netbeans taking 100-200% of
> > > > the
> > > > 
> > > > CPU.  And *always*, when open the Netbeans window, there at the bottom
> > > > 
> > > > would be a message indicating that NB is checking (or waiting? can’t
> > > > 
> > > > remember the exact wording) for external changes.  I assume that’s the
> > > > NB
> > > > 
> > > > feature that checks to see if any project-related s

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

2021-10-20 Thread Mark A. Flacy
Greetings,

The next step would be to run some tool such as jconsole or jvisualvm on the 
same machine to see what is going on in your netbeans  instance.

At least you will find out what thread is creating trouble. 

-- 
Mark A. Flacy
mfl...@verizon.net

On Wednesday, October 20, 2021 1:57:03 PM CDT Thomas Wolf wrote:
>  Hi Mark,
> I think this CPU abuse happens independent of project size or resources.  I
> already had modified my netbeans.conf to give it plenty of heap (2-4gb),
> but I’m not even running anything  ‘large’ - when this happens, there are
> always only two projects open in the IDE - one is a library project with
> just a couple dozen java files and a J2SE project with less than 100 source
> files.  Downright puny!  A few years back I was working on a  project with
> 5000 java files and NB never even broke a sweat.  This bug with external
> changes causing NB a tizzy has been around for awhile.  I think there was a
> way to turn external checking off, but I can’t seem to find it right now.
> Plus the disadvantage would be that when I do occasionally externally
> inject changes (eg copying an image file into the project source tree), NB
> might not react appropriately. :-(
> 
> Anyway, any further suggestions, let me know.  Much appreciated.
> 
> Tom
> 
> p.s. has anyone noticed that macOS Monterey now no longer has an “Anywhere”
> option in System Settings->Security & Privacy->General->Allow apps
> downloaded from ??? Annoying as hell.  It’s already refused to run half a
> dozen things I downloaded and wanted to run - have to manually give an
> exception :-(  Does anyone know of a way to turn this off?  I haven’t tried
> downloading a new version of NB lately, but macOS won’t run that either, I
> don’t think, without manual exception.
> 
> 
> 
> On Oct 20, 2021 at 1:18:58 PM, Mark A. Flacy 
> 
> wrote:
> > Greetings,
> > 
> > How many projects are in your projects panel?
> > 
> > If you haven't modified (God, I hate this) "/Applications/NetBeans/Apache\
> > NetBeans\ 12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf"
> > to allow a larger heap than the paltry default, you may be observing the
> > JVM performing the garbage collection of death dance which you'll see in
> > any java application that is operating at the edge of getting an OOM
> > error.
> > 
> > 
> > 
> > I have a MacBook Pro for work (32GB RAM) and I have changed the
> > *netbeans_default_options* in the above file to have the additional flag
> > of "-J-Xmx16384m" as well as setting *netbeans_jdkhome* to point to
> > something sane.
> > 
> > HTH.
> > 
> > 
> > --
> > 
> > Mark A. Flacy
> > 
> > mfl...@verizon.net
> > 
> > On Wednesday, October 20, 2021 11:54:02 AM CDT Thomas Wolf wrote:
> > > I have NB 12.4, but I have noticed the same behavior on previous NBs as
> > > 
> > > well:
> > > 
> > > 
> > > 
> > > Most of the time, my MacBook Pro is quiet as can be.  But every now and
> > > 
> > > then (every other day?), I’d be surfing the web or reading the mail when
> > 
> > my
> > 
> > > fans start spinning up - often getting to their max speed *and staying
> > > 
> > > there*.  Usually, I’m not doing anything CPU intensive at all and when I
> > > 
> > > look at the Activity Monitor, it’s always Netbeans taking 100-200% of
> > > the
> > > 
> > > CPU.  And *always*, when open the Netbeans window, there at the bottom
> > > 
> > > would be a message indicating that NB is checking (or waiting? can’t
> > > 
> > > remember the exact wording) for external changes.  I assume that’s the
> > > NB
> > > 
> > > feature that checks to see if any project-related source was modified
> > > 
> > > outside the IDE?   This has got to be a bug - there’s no way something
> > 
> > like
> > 
> > > that should be a heavy load on a CPU.
> > > 
> > > 
> > > 
> > > Is there something I can do when I next observe this behavior to help
> > 
> > track
> > 
> > > down this bug?  I think I’ve had this happen for at least a year.  If
> > 
> > there
> > 
> > > isn’t - is there a way to globally turn it off?
> > > 
> > > 
> > > 
> > > I’m on macOS 12.0.1 (Monterey) running NB with OpenJDK 17, but as I
> > > said,
> > > 
> > > this has happened on earlier NB and earlier versions of Java.  My
> > 
> > computer
> > 
> > > is standalone - i.e. no corporate network, not networked file systems.
> > > 
> > > Just the laptop and a wireless connection to the Internet (via Starlink
> > > 
> > > and, before that, via Verizon LTE).
> > > 
> > > 
> > > 
> > > Thanks for any suggestions,
> > > 
> > > Tom





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

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



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

2021-10-20 Thread Mark A. Flacy
Greetings, 

How many projects are in your projects panel?

If you haven't modified (God, I hate this) "/Applications/NetBeans/Apache\ 
NetBeans\ 
12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf" to allow a 
larger heap 
than the paltry default, you may be observing the JVM performing the garbage 
collection of 
death dance which you'll see in any java application that is operating at the 
edge of getting 
an OOM error.


I have a MacBook Pro for work (32GB RAM) and I have changed the 
*netbeans_default_options* in the above file to have the additional flag of 
"-J-Xmx16384m" 
as well as setting *netbeans_jdkhome* to point to something sane.

HTH.

-- 
Mark A. Flacy
mfl...@verizon.net

On Wednesday, October 20, 2021 11:54:02 AM CDT Thomas Wolf wrote:
> I have NB 12.4, but I have noticed the same behavior on previous NBs as
> well:
> 
> Most of the time, my MacBook Pro is quiet as can be.  But every now and
> then (every other day?), I’d be surfing the web or reading the mail when my
> fans start spinning up - often getting to their max speed *and staying
> there*.  Usually, I’m not doing anything CPU intensive at all and when I
> look at the Activity Monitor, it’s always Netbeans taking 100-200% of the
> CPU.  And *always*, when open the Netbeans window, there at the bottom
> would be a message indicating that NB is checking (or waiting? can’t
> remember the exact wording) for external changes.  I assume that’s the NB
> feature that checks to see if any project-related source was modified
> outside the IDE?   This has got to be a bug - there’s no way something like
> that should be a heavy load on a CPU.
> 
> Is there something I can do when I next observe this behavior to help track
> down this bug?  I think I’ve had this happen for at least a year.  If there
> isn’t - is there a way to globally turn it off?
> 
> I’m on macOS 12.0.1 (Monterey) running NB with OpenJDK 17, but as I said,
> this has happened on earlier NB and earlier versions of Java.  My computer
> is standalone - i.e. no corporate network, not networked file systems.
> Just the laptop and a wireless connection to the Internet (via Starlink
> and, before that, via Verizon LTE).
> 
> Thanks for any suggestions,
> Tom




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

2021-10-18 Thread Mark A. Flacy
Greetings,

Big Sur, java 11, code works as expected.  java 15 works as expected as well.


-- 
Mark A. Flacy
mfl...@verizon.net

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





-
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: JSON and XML editors - Find/Replace greyed out and Diff help

2021-09-27 Thread Mark A. Flacy
Greetings,

Consider disabling the ability to save a given file buffer;  the Find/Replace 
tools will find and replace things, but if you cannot save the result then 
that file buffer is essentially read-only.

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, September 27, 2021 4:44:17 PM CDT Tim Mullé wrote:
> Hi,
> 
> I’ve managed to get the XML and JSON editors in my Maven netbeans platform
> and they appear to be working properly, except the Find/Replace options.
> 
> Those menu options and keyboard shortcuts are disabled.
> 
> I think I’ve included all the editor files and action jars for the XML and
> JSON editors but am still missing something.
> 
> Does anyone know what libraries I need to turn those features on?
> 
> Also, is there a way to make the editors READ-ONLY but still keep the
> Find/Replace functionality? I know the replace doesn’t make sense but
> essentially I just want to reuse what NetBeans gives us and just use the
> editors a file viewers and get the line numbers, highlighting, and folding
> support, etc.
> 
> Also, I also have the Diff feature working so I can see the Diffs between
> files..thanks to the NetBeans support brought in from the Diff apis.
> 
> But, my Textual tab isn’t being populated..only the Graphical.
> 
> When I look at the Diff feature in the real IDE I see both tabs working..so
> I am missing something.
> 
> Any ideas how to get the Textual Diff tab to populate?
> 
> Thanks..
> - Tim
> 
> 
> -
> 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: Cannot remove library from project

2021-05-24 Thread Mark A. Flacy
No, it just means that I've never created a "sister project" that I would never 
want to use 
upon a different computer than the one upon which it was built.  I assume that 
if I make a 
library, I might want to share it and if I want to share it, I need to publish 
it somewhere (even 
to the same machine until I push it somewhere else).   I didn't always assume 
that, but 
personal usage pushed me to do that.

_My_ use cases aren't _your_ use cases and just because I can't see a reason to 
do *X* 
doesn't mean that no other humans can see a reason to do *X*.

I have 5 computers (well, 4 and one VM) within 6 feet of me as I write this;  
if I've written a 
library that I find useful, I'd like it to be available on other machines in my 
network without 
having those machines recompile that library from scratch.  That's why one of 
those 
computers is running a Nexus server to serve such libraries to any other 
machines that are 
running in my local network.


Just because I do things a certain way does not make that way "best", "optimal" 
or even 
"sane".

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, May 24, 2021 6:28:21 AM CDT Bayless Kirtley wrote:
> Does this mean that maven won't let me set a dependency on a sister
> project right here on the same computer?
> 
> On 5/23/21 6:43 PM, Mark A. Flacy wrote:
> > Right-click on the project's Dependencies folder.  Add the maven
> > coordinates of the library in question and good things should happen.
> > 
> > If the library you want to use isn't published with maven coordinates,
> > then
> > you will have a problem until you do that.  Please note that you can
> > publish stuff locally or to a Nexus server (as an example) of your own.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Cannot remove library from project

2021-05-23 Thread Mark A. Flacy
Right-click on the project's Dependencies folder.  Add the maven coordinates 
of the library in question and good things should happen.

If the library you want to use isn't published with maven coordinates, then 
you will have a problem until you do that.  Please note that you can publish 
stuff locally or to a Nexus server (as an example) of your own.

-- 
Mark A. Flacy
mfl...@verizon.net

On Sunday, May 23, 2021 5:03:42 PM CDT Bayless Kirtley wrote:
> I did that on the one project I need right now. It then let me add it
> but the source still does not correspond to the binary so cannot debug.
> Then I tried again to remove the library and the option was disabled again.
> 
> I tried with a small existing project to create as Maven project then
> copied source files to it. It uses that same library and I cannot seem
> to add it as a dependency. What is the secret for adding a dependency on
> a local library to a new Maven project?
> 
> bayless
> 
> On 5/23/21 4:22 PM, Geertjan Wielenga wrote:
> > Look in the project.properties file in the nbproject folder and delete
> > those references.
> > 
> > Gj
> > 
> > On Sun, 23 May 2021 at 23:18, Bayless Kirtley  > 
> > <mailto:bk...@cox.net>> wrote:
> > Surely NB has not suddenly decided that I can no longer remove
> > libraries from an ANT project. There must be something wrong here
> > that displays but disables that option from any libraries on any
> > projects.
> > 
> > On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
> >> The libraries are defined in a properties file in the nb project
> >> folder. You can find and edit in the files view. You are also
> >> advised to convert the project to a maven project. That way you
> >> can future proof it.
> >> 
> >> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley  >> 
> >> <mailto:bk...@cox.net>>:
> >> I have an old Java 1.8 project that needs a few updates. I
> >> cannot remove
> >> any of its libraries. The option is grayed out and Delete key
> >> does
> >> nothing. Just tried and this seems to be the case with all my
> >> projects.
> >> Cannot delete any libraries and most projects are using Java
> >> 11, if that
> >> makes a difference. This comes up because I made a change in
> >> one of the
> >> libraries which did not appear to work so I tried to debug
> >> and found
> >> that the new code is skipped over in debug as if it were not
> >> there. I
> >> thought I would remove and reinstall the library but cannot.
> >> 
> >> I have tried restarting NB a couple of times with no change.
> >> How can I
> >> remove old libraries?
> >> 
> >> NB 12.0
> >> 
> >> Linux mint 20
> >> 
> >> 
> >> -
> >> 
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> <mailto:users-unsubscr...@netbeans.apache.org>
> >> For additional commands, e-mail:
> >> users-h...@netbeans.apache.org
> >> <mailto:users-h...@netbeans.apache.org>
> >> 
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+list
> >> s
> >> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lis
> >> ts>





-
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: Specify JVM arguments with Gradle

2021-03-22 Thread Mark A. Flacy
Right-click on the project in the Projects window, open the Project 
Properties.  Look for Build -> Build Actions.


-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, March 22, 2021 10:14:18 AM CDT Thomas Kellerer wrote:
> Hello,
> 
> is it possible to define specific JVM arguments (-Dxxx=...) that should be
> used by Gradle when running (or testing) an application?
> 
> I do not want to modify build.gradle as those would be environment specific
> settings, which should not be stored in the Git reposiotry.
> 
> When I do it on the commandline I can use:
> 
> gradlew -Dxxx=foo ...
> 
> but I can't find the corresponding UI elements in the project properties
> from inside NetBeans (12.3)
> 
> What am I missing?
> 
> Thanks
> Thomas
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





-
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 Platform modules with Gradle

2021-03-20 Thread Mark A. Flacy
I do not think so.

I believe the OP is asking about using Gradle to build NetBeans modules and 
applications versus either Ant or Maven.

-- 
Mark A. Flacy
mfl...@verizon.net

On Saturday, March 20, 2021 1:35:36 PM CDT Eric Bresie wrote:
> Are you asking for "Java with Gradle" as is available in current releases
> like the following?
> 
> [image: image.png]
> 
> Or tutorial materials?
> 
> Eric Bresie
> ebre...@gmail.com
> 
> On Tue, Mar 16, 2021 at 10:52 PM Adam Korynta  wrote:
> > Hello,
> > 
> > 
> > 
> > I am happy to see the progress being made with Apache NetBeans and excited
> > to see the NetBeans Platform tutorials getting some love recently. I have
> > used NetBeans Platform ant modules and maven modules to great success in
> > the past. Our client is looking to take a more active role in the
> > development process of applications, but is more familiar with Gradle. I
> > am
> > very new to Gradle myself, but am wondering if there is support for Gradle
> > NetBeans modules? I see an article from a couple years back (
> > https://blogs.oracle.com/geertjan/how-to-build-netbeans-modules-with-gradl
> > e) but am wondering if there has been support and success building full
> > applications this way. I see the gradle-nbm-plugin from radimk here:
> > https://github.com/radimk/gradle-nbm-plugin but wanted to get a little
> > more information before diving in.
> > 
> > 
> > 
> > Thank you,
> > 
> > 
> > 
> > Adam Korynta
> > 
> > *Resource Management Associates - Software Developer*
> > 
> > *1756 Picasso Avenue, Suite G, Davis, CA 95618*
> > 
> > *Phone 530-564-7043 ext. 217*
> > 
> > *Fax 530-231-5323*
> > 
> > *a...@rmanet.com *
> > 
> > *https://www.rmanet.com <https://www.rmanet.com>*
> > 
> > 
> > 
> > <https://www.rmanet.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: A little Gradle problem

2021-03-15 Thread Mark A. Flacy
Greetings,

The plugins you are using will impact what is going on with Gradle.  You 
should tell us about them as well.

I know there is at least one protobuf plugin that NetBeans is not currently 
able to handle. (Well, 12.1 couldn't; I haven't checked against 12.3.)

-- 
Mark A. Flacy
mfl...@verizon.net

On Monday, March 15, 2021 5:23:03 AM CDT Thomas Kellerer wrote:
> Mark A. Flacy schrieb am 15.03.2021 um 10:32:
> > Which version of Gradle are you using?  What does the parent project's
> > build.gradle look like?
> 
> I am using Gradle 6.7
> 
> The sub module only contains a build.gradle with the following dependencies:
> 
> dependencies {
> 
> // Spring
> implementation
> "org.springframework.boot:spring-boot:${springBootVersion}" implementation
> "org.springframework.boot:spring-boot-autoconfigure:${springBootVersion}"
> implementation "commons-io:commons-io:${commonsIoVersion}" implementation
> "org.apache.commons:commons-lang3:${commonsLangVersion}" implementation
> "org.apache.commons:commons-text:1.9"
> implementation "org.freemarker:freemarker:${freemarkerVersion}"
> 
> // Logging
> implementation "ch.qos.logback:logback-core:${logbackVersion}"
> implementation "ch.qos.logback:logback-classic:${logbackVersion}"
> implementation "org.slf4j:slf4j-api:${slf4jVersion}"
> 
> // Jackson
>  
> implementation("com.fasterxml.jackson.core:jackson-annotations:${jacksonVer
> sion}") implementation
> "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}" implementation
> "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
> 
> // Test
> testCompile("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
>
> testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
> testRuntime("org.junit.platform:junit-platform-launcher:${junitPlatformVers
> ion}") testImplementation
> ("org.springframework.boot:spring-boot-starter-test") testImplementation
> ("org.freemarker:freemarker:${freemarkerVersion}")
> 
> }
> 
> 
> The parent's build.gradle does not contain any dependencies and its
> gradle.properties contains this:
> 
> 
> group = .
> version = 0.1.0
> 
> # Plugin versions
> semverPluginVersion=2.3.1
> dockerRemoteApiPluginVersion=6.1.4
> dockerComposePluginVersion=0.14.0
> springBootVersion=2.4.0
> hibernateCoreVersion=5.4.21.Final
> commonsIoVersion=2.8.0
> commonsLangVersion=3.11
> quartzVersion=2.3.2
> 
> dependencyManagementVersion=1.0.10.RELEASE
> wsdl2javaVersion=0.12
> jacksonVersion=2.12.1
> httpClientVersion=4.5.12
> logbackVersion=1.2.3
> slf4jVersion=1.7.30
> freemarkerVersion=2.3.31
> 
> # Java
> sourceCompatibility = 11
> targetCompatibility = 11
> 
> # Test
> junitVersion=5.5.2
> junitPlatformVersion=1.5.2
> 
> 
> 
> It's absolutely no big deal to adjust the sub-module's build.gradle - I am
> just curious why Gradle is happy with this, but NetBeans isn't
> 
> Regards
> Thomas
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





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

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



Re: Java filing problem on Netbeans 12.2: File created but no data in it

2021-03-15 Thread Mark A. Flacy
Greetings,

This is a generic Java problem, not a NetBeans issue.

Try */FileWriter fileWritter = new FileWriter(f1, true); /*instead.

-- 
Mark A. Flacy
mfl...@verizon.net

On Friday, March 12, 2021 7:01:44 PM CDT Zulfi Khan wrote:
> Hi,
> Subject: File created but message not stored
> Thanks Mark,
> Following is my program related to filing
> 
> package com.mycompany.fileWrite;
> import java.io.File;
> import java.io.FileWriter;
> import java.io.BufferedWriter;
> import java.io.IOException;
> 
> /**
>  *
>  * @author zulfi
>  */
> public class Main {
> public static void main( String[] args ) {
> 
>   try {
>  String data = " Tutorials Point is a best website in the world";
>  File f1 = new File("/home/zulfi/abc.txt");
>  if(!f1.exists()) {
> f1.createNewFile();
>  }
> 
>  FileWriter fileWritter = new FileWriter(f1.getName(),true);
>  BufferedWriter bw = new BufferedWriter(fileWritter);
>  bw.write(data);
>  bw.close();
>  System.out.println("Done");
>   } catch(IOException e){
>  e.printStackTrace();
>   }
>}
> 
> }
> 
> I am running the above program on Ubuntu 18.04 using Netbeans 12.2. My
> project name is: "fileWrite". It is a Mavern, Java Application project. It
> is not writing anything in the file abc.txt:
> 
>  zulfi@lc2530hz:~$ cat abc.txt
> zulfi@lc2530hz:~$ pwd
> /home/zulfi
> zulfi@lc2530hz:~$
> 
> I have also attached the project image.
> Zulfi.
> 
> 
> 
> On Friday, March 12, 2021, 6:50:48 PM CST, Zulfi Khan
>  wrote:
> 
> 
> Hi,
> Thanks Mark,
> Following is my program related to filing
> 
> package com.mycompany.fileWrite;
> import java.io.File;
> import java.io.FileWriter;
> import java.io.BufferedWriter;
> import java.io.IOException;
> 
> /**
>  *
>  * @author zulfi
>  */
> public class Main {
> public static void main( String[] args ) {
> 
>   try {
>  String data = " Tutorials Point is a best website in the world";
>  File f1 = new File("/home/zulfi/abc.txt");
>  if(!f1.exists()) {
> f1.createNewFile();
>  }
> 
>  FileWriter fileWritter = new FileWriter(f1.getName(),true);
>  BufferedWriter bw = new BufferedWriter(fileWritter);
>  bw.write(data);
>  bw.close();
>  System.out.println("Done");
>   } catch(IOException e){
>  e.printStackTrace();
>   }
>}
> 
> }
> 
> I am running the above program on Ubuntu 18.04 using Netbeans 12.2. My
> project name is: "fileWrite". It is a Mavern, Java Application project. It
> is not writing anything in the file abc.txt:
> 
>  zulfi@lc2530hz:~$ cat abc.txt
> zulfi@lc2530hz:~$ pwd
> /home/zulfi
> zulfi@lc2530hz:~$
> 
> I have also attached the project image.
> Zulfi.
> 
> 
> On Friday, March 12, 2021, 12:20:58 AM CST, Mark A. Flacy
>  wrote:
> 
>  Greetings,
> 
> You are going to need to provide a lot more information before anyone even
> attempts to help you.
> 
> Why is this a Netbeans problem?  Did you make a project of some kind?  If
> so, what type of project?  What did you do via Netbeans?
> 
> You are essentially saying "I did some things and I expected some other
> things to happen, but those other things didn't happen.  Please help."
> 
> No one on this mailing list is paid by anyone to provide help; you are at
> the mercy of volunteers, who might provide help if there is an indication
> of some level of effort from the person requesting such help.
> 
> Please provide more detail upon what you did using Netbeans and what you

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

2021-03-14 Thread Mark A. Flacy
Greetings,

Is there a base project that contains what you've attempted to this point that 
could be shared amongst us?
  
Are you talking about a NetBeans application to do this?  Or is this some 
other Java application for which you want to use NetBeans to compile and test?

-- 
Mark A. Flacy
mfl...@verizon.net

On Sunday, March 14, 2021 2:32:32 PM CDT 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: Java filing problem on Netbeans 12.2: File created but no data in it

2021-03-11 Thread Mark A. Flacy
Greetings,

You are going to need to provide a lot more information before anyone even 
attempts to help you.

Why is this a Netbeans problem?  Did you make a project of some kind?  If so, 
what type of project?  What did you do via Netbeans?

You are essentially saying "I did some things and I expected some other things 
to happen, but those other things didn't happen.  Please help."

No one on this mailing list is paid by anyone to provide help; you are at the 
mercy of volunteers, who might provide help if there is an indication of some 
level of effort from the person requesting such help.

Please provide more detail upon what you did using Netbeans and what you 
expected Nebeans to do when you did whatever that was.

-- 
Mark A. Flacy
mfl...@verizon.net

On Thursday, March 11, 2021 10:50:13 PM CST Zulfi Khan wrote:
> Hi,I am trying to run the following program:
> ackage com.mycompany.fileWrite;
> import java.io.File;
> import java.io.FileWriter;
> import java.io.BufferedWriter;
> import java.io.IOException;
> 
> /**
>  *
>  * @author zulfi
>  */
> public class Main {
> public static void main( String[] args ) {
> 
>   try {
>  String data = " Tutorials Point is a best website in the world";
>  File f1 = new File("/home/zulfi/abc.txt");
>  if(!f1.exists()) {
> f1.createNewFile();
>  }
> 
>  FileWriter fileWritter = new FileWriter(f1.getName(),true);
>  BufferedWriter bw = new BufferedWriter(fileWritter);
>  bw.write(data);
>  bw.close();
>  System.out.println("Done");
>   } catch(IOException e){
>  e.printStackTrace();
>   }
>}
> 
> }
> 
> 
> 
> But when I am checking the file there is no data in the file.
> Somebody please guide me.
> Zulfi.





-
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: Please help me developers!

2021-03-11 Thread Mark A. Flacy
Greetings,

This is the wrong mailing list, given your request.  I do not know what  
mailing list (if there is one) would be more suitable for your request. 

This mailing list is for the Netbeans IDE and application platform.  It has 
nothing to do with the Apache web server.

-- 
Mark A. Flacy
mfl...@verizon.net

On Thursday, March 11, 2021 10:18:10 PM CST HEMANTH ABHIRAM SOMARAJU wrote:
> Respected web developers,
> I am HEMANTH ABHIRAM SOMARAJU, developer. I had built a search engine and
> also developed advanced search crawler and web developer tools using latest
> web standards. I know HTML, XML, XHTML, CSS, JS, JSON, JQuery, PHP, MySQL.
> I have a small doubt regarding link rel license tag. For example I am using
> Apache server with Apache's license.
> 
>  href="http://www.apache.org/licenses/LICENSE-2.0; />
> 
> *Is above one is considered as correct ?* Actually, I had developed an high
> secure search engine with following features:-
> 
>1. CSRF protection
>2. DDoS protection
>3. XSS protection
>4. Content Security Policy
>5. High advanced crawler bot
> 
> Now I wanted to make my website legally no problem. I have designed Terms &
> Conditions, Privacy policy, Cookie policy, DMCA policy and e.t.c
> Now I am having some 100's of licenses for adding images in my website from
> various CC0 websites. I want to include them in link rel license tag. So
> kindly please let me know is the tag shown in code is correct ? Or requires
> any changes ? If yes please include them in your reply.
> Actually in my search engine's source code's in head tag only 513 lines
> approximately. OMG! Its true! Some of them in head tag are Global site tag
> {Google analytics}, Cloud flare web analytics, Google tag manager,
> Shareaholic, Yandex Metrika counter, Google Firebase, 34 Open Graph tags,
> 26 Dublin Core meta tags, 291 Alternative tags of ISO 639-1 Language Codes,
> etc. Now I would like to add all my 100's of licenses in link rel license
> tag.
> I was new to use link rel license tag. So I would request you to please let
> me know is the given example is correct ?
> Thank you developers,
> Yours sincerely,
> HEMANTH ABHIRAM SOMARAJU,
> Web developer.
> Happy coding 





-
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: What Project should I use if I have existing source?

2021-03-09 Thread Mark A. Flacy
I would then wonder how that existing project was being built.

Depending upon how you wanted to move forward, you could move the source into 
the directory structure that both maven and gradle expect or you could hand-
write the build.xml file that ant would use.

-- 
Mark A. Flacy
mfl...@verizon.net

On Friday, March 5, 2021 9:35:29 AM CST Eric Bresie wrote:
> Silly flavor of that, but what if there is an existing project without Ant
> or any applicable build (maven or gradle) yet?
> 
> Eric Bresie
> ebre...@gmail.com
> 
> 
> On Mon, Mar 1, 2021 at 6:52 PM Mark A. Flacy 
> 
> wrote:
> > Greetings,
> > 
> > For gradle or maven projects, you just open the directory as a project.
> > Netbeans will notice the pom.xml or the build.gradle file and act
> > accordingly.
> > I assume that works with ant as well, but I haven't used ant in years.
> > 
> > --
> > Mark A. Flacy
> > mfl...@verizon.net
> > 
> > On Monday, March 1, 2021 5:28:28 PM CST Thomas Wolf wrote:
> > > Hi,
> > > I guess I haven’t tried to create a  project in a long time.  Today, I
> > 
> > had
> > 
> > > the need to, but an option that has always been available in the past
> > > (NB
> > > 8?) - “Java application with existing source” doesn’t seem to exist in
> > > 12.2.  Is there an equivalent in ant, gradle, or maven projects?  I saw
> > 
> > an
> > 
> > > Java FX project with existing source (but I don’t use FX) as well as a
> > > couple enterprise project options that don’t really correspond to the
> > 
> > plain
> > 
> > > vanilla POJO application that my source represents.
> > > 
> > > Any pointers would be much appreciated. (I’d prefer an ant-based project
> > > type if there is one).
> > > 
> > > Best,
> > > Tom Wolf
> > 
> > -
> > 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 12.2 open file leak (macOS)

2021-03-09 Thread Mark A. Flacy
Oh my, I'm not sure you would be able to know how happy that makes me.

-- 
Mark A. Flacy
mfl...@verizon.net

On Tuesday, March 9, 2021 8:49:35 PM CST Laszlo Kishalmi wrote:
> Fixed in 12.3
> 
> On 3/9/21 5:52 PM, Mark A. Flacy wrote:
> > Greetings,
> > 
> > I've mentioned earlier in one of the Netbeans mailing lists about Netbeans
> > 12.2 freezing. Well, it throws up an annoying series of modal windows each
> > of which states that we have a java.io.FileNotFoundException with a
> > message giving me the name of the file with the additional text of "(too
> > many open files)".
> > 
> > This also vomits out a org.openide.filesystems.FileAlreadyLockedException
> > exception as well.
> > 
> > 
> > When Netbeans freezes up like that, you cannot attach jconsole to that
> > process.
> > 
> > Since Netbeans was acting up recently (as in I couldn't run for 15 minutes
> > without such a freeze), I immediately ran jconsole to monitor what was
> > going on when I launched Netbeans.
> > 
> > According to my jconsole MBeans window, in the
> > java.lang.OperatingSystem.OpenFileDescriptorCount attribute, I had over
> > 12K
> > open file descriptors.  (12529 appears to be the last value I have been
> > able to get.)
> > 
> > That tells me that somewhere in the delta between Netbeans 12.1 (where I
> > NEVER saw this problem) and Netbeans 12.2 (where I am playing Russian
> > roulette with my productivity by using it at work) someone is not closing
> > a file after using it and assuming that the finalizer will close it for
> > them.
> > 
> > That would be a very bad assumption, independent of the OS.
> > 
> > As it so happens, my work machine's Netbeans 12.2 instance just locked up
> > while I was writing this.
> > 
> > Said work machine is running macOS 11.2.2 and Netbeans is running OpenJDK
> > 64- bit Server VM version 15+36-1562.
> > 
> > (Actually, my work machine locked up twice while writing this on my
> > non-work machine [which is not, and never will be, a Mac].)
> 
> -
> 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



Netbeans 12.2 open file leak (macOS)

2021-03-09 Thread Mark A. Flacy
Greetings,

I've mentioned earlier in one of the Netbeans mailing lists about Netbeans 
12.2 freezing. Well, it throws up an annoying series of modal windows each of 
which states that we have a java.io.FileNotFoundException with a message 
giving me the name of the file with the additional text of "(too many open 
files)".

This also vomits out a org.openide.filesystems.FileAlreadyLockedException 
exception as well.


When Netbeans freezes up like that, you cannot attach jconsole to that 
process.

Since Netbeans was acting up recently (as in I couldn't run for 15 minutes 
without such a freeze), I immediately ran jconsole to monitor what was going 
on when I launched Netbeans.

According to my jconsole MBeans window, in the 
java.lang.OperatingSystem.OpenFileDescriptorCount attribute, I had over 12K 
open file descriptors.  (12529 appears to be the last value I have been able 
to get.)

That tells me that somewhere in the delta between Netbeans 12.1 (where I NEVER 
saw this problem) and Netbeans 12.2 (where I am playing Russian roulette with 
my productivity by using it at work) someone is not closing a file after using 
it and assuming that the finalizer will close it for them.

That would be a very bad assumption, independent of the OS.

As it so happens, my work machine's Netbeans 12.2 instance just locked up 
while I was writing this.

Said work machine is running macOS 11.2.2 and Netbeans is running OpenJDK 64-
bit Server VM version 15+36-1562.

(Actually, my work machine locked up twice while writing this on my non-work 
machine [which is not, and never will be, a Mac].)

-- 
Mark A. Flacy
mfl...@verizon.net



-
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: What Project should I use if I have existing source?

2021-03-01 Thread Mark A. Flacy
Greetings,

For gradle or maven projects, you just open the directory as a project.  
Netbeans will notice the pom.xml or the build.gradle file and act accordingly.  
I assume that works with ant as well, but I haven't used ant in years.

-- 
Mark A. Flacy
mfl...@verizon.net

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





-
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: reporting Netbeans problems

2021-01-30 Thread Mark A. Flacy
Greetings,

I strongly suspect that the bug reporter is attempting to contact a pre-Apache 
NetBeans interface that either no longer accepts input or no longer exists.

I've seen the same popup as well.

-- 
Mark A. Flacy
mfl...@verizon.net

On Friday, January 29, 2021 1:34:47 PM CST Greenberg, Gary wrote:
> Practically every day I am getting exceptions in my Netbeans 12
> installation. However, I was never been able to report them to Netbeans.
> Whenever I do try I am getting the following:
> [cid:image002.png@01D6F632.BDEA87B0]
> 
> Testing proxy connection gives me a green light and I do not have problems
> browsing internet. Any clues?
> 
> Gary Greenberg
> Staff Software Engineer
> Data Product Development, BI-A
> E: ggree...@visa.com
> M: 650-269-7902
> 
> [EmailSig-TaglineVersion]





-
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: Only one RaspberryPi project.

2021-01-19 Thread Mark A. Flacy
I'm very sorry, but it is ~3:30am where I live.  I'll come back to this in ~15 
hours or so (I do have to work).  Hopefully someone else will continue this 
discussion before I do.

-- 
Mark A. Flacy
mfl...@verizon.net

On Tuesday, January 19, 2021 2:41:26 AM CST Som Lima wrote:
> In the second project I can create a new raspberrypi platform.
> Even the one created in the previous project is visible.
> 
> The raspberrypi platform is not visible in the drop down list (manage
> platforms) so not able to select it.
> 
> 
> Comparatively When I create a new configuration in the first project ,  the
> raspberrypi platform is listed in the drop down list for selection.  So I
> can select it for each configuration.
> 
> Then I can select  the configuration I want from the drop down list and
> press the green run button next to the configuration drop down list to run
> it.
> 
> I hope this gives clarification to the misfunctionality without error
> message.
> 
> 
> 
> 
> On Tue, 19 Jan 2021, 08:28 Mark A. Flacy, 
> 
> wrote:
> > While the statement  "I am not able to select raspberrypi platform for the
> > second project ByePi." means something to you, it doesn't mean much to me.
> > I'm not *trying* to be mean or insulting, but I don't understand at what
> > point you have had an issue.
> > 
> > Are you able to create an additional remote java se in the java platform
> > manager that you cannot select later?  Or is it that you cannot create an
> > additional remote java se in the java platform manager for the other
> > project?
> > 
> > 
> > 
> > --
> > 
> > Mark A. Flacy
> > 
> > mfl...@verizon.net
> > 
> > On Tuesday, January 19, 2021 2:11:02 AM CST Som Lima wrote:
> > > There is no error message.
> > > 
> > > I am not able to select raspberrypi platform for the second project
> > 
> > ByePi.
> > 
> > > My work around is to create classes in the same project HelloPi.
> > > 
> > > 
> > > 
> > > Then create  a custom configuration which points to the second class
> > > with
> > > 
> > > the psvm so I can run it on the raspberrypi platform.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > This is why I suggested to replicate for a better understanding of the
> > > 
> > > issue.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > On Tue, 19 Jan 2021, 08:02 Mark A. Flacy, 
> > > 
> > > wrote:
> > > > What EXACTLY is the error that you've seen?  Are your host IP
> > > > addresses
> > > > 
> > > > the
> > > > 
> > > > same?
> > > > 
> > > > 
> > > > 
> > > > What did you expect to see that didn't happen?
> > > > 
> > > > 
> > > > 
> > > > --
> > > > 
> > > > Mark A. Flacy
> > > > 
> > > > mfl...@verizon.net
> > > > 
> > > > On Tuesday, January 19, 2021 1:17:07 AM CST Som Lima wrote:
> > > > > If you follow the instructions in this video
> > > > > 
> > > > > you will be able to create one project HelloPi.
> > > > > 
> > > > > 
> > > > > 
> > > > > https://youtu.be/ebHbDlTnV-I
> > > > > 
> > > > > 
> > > > > 
> > > > > However you will not be able to create a second project to develop
> > > > > 
> > > > > Raspberry Pi in the same Netbeans IDE.
> > > > > 
> > > > > 
> > > > > 
> > > > > You can replicate the highlighted issue by following the steps in
> > > > > the
> > > > 
> > > > video
> > > > 
> > > > > to create a second project i.e. named   ByePi to run to completion.
> > > > > 
> > > > > 
> > > > > 
> > > > > I am running a  wireless WIFI headless raspberry pi.
> > > > > 
> > > > > 
> > > > > 
> > > > > 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: Only one RaspberryPi project.

2021-01-19 Thread Mark A. Flacy
While the statement  "I am not able to select raspberrypi platform for the 
second project 
ByePi." means something to you, it doesn't mean much to me.  I'm not _trying_ 
to be mean 
or insulting, but I don't understand at what point you have had an issue.

Are you able to create an additional remote java se in the java platform 
manager that you 
cannot select later?  Or is it that you cannot create an additional remote java 
se in the java 
platform manager for the other project?


-- 
Mark A. Flacy
mfl...@verizon.net

On Tuesday, January 19, 2021 2:11:02 AM CST Som Lima wrote:
> There is no error message.
> I am not able to select raspberrypi platform for the second project ByePi.
> 
> 
> My work around is to create classes in the same project HelloPi.
> 
> Then create  a custom configuration which points to the second class with
> the psvm so I can run it on the raspberrypi platform.
> 
> 
> This is why I suggested to replicate for a better understanding of the
> issue.
> 
> 
> On Tue, 19 Jan 2021, 08:02 Mark A. Flacy, 
> 
> wrote:
> > What EXACTLY is the error that you've seen?  Are your host IP addresses
> > the
> > same?
> > 
> > What did you expect to see that didn't happen?
> > 
> > --
> > Mark A. Flacy
> > mfl...@verizon.net
> > 
> > On Tuesday, January 19, 2021 1:17:07 AM CST Som Lima wrote:
> > > If you follow the instructions in this video
> > > you will be able to create one project HelloPi.
> > > 
> > > https://youtu.be/ebHbDlTnV-I
> > > 
> > > However you will not be able to create a second project to develop
> > > Raspberry Pi in the same Netbeans IDE.
> > > 
> > > You can replicate the highlighted issue by following the steps in the
> > 
> > video
> > 
> > > to create a second project i.e. named   ByePi to run to completion.
> > > 
> > > I am running a  wireless WIFI headless raspberry pi.
> > > 
> > > 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: Only one RaspberryPi project.

2021-01-19 Thread Mark A. Flacy
What EXACTLY is the error that you've seen?  Are your host IP addresses the 
same?

What did you expect to see that didn't happen?

-- 
Mark A. Flacy
mfl...@verizon.net

On Tuesday, January 19, 2021 1:17:07 AM CST Som Lima wrote:
> If you follow the instructions in this video
> you will be able to create one project HelloPi.
> 
> https://youtu.be/ebHbDlTnV-I
> 
> However you will not be able to create a second project to develop
> Raspberry Pi in the same Netbeans IDE.
> 
> You can replicate the highlighted issue by following the steps in the video
> to create a second project i.e. named   ByePi to run to completion.
> 
> I am running a  wireless WIFI headless raspberry pi.
> 
> 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: XML in Netbeans Module

2021-01-17 Thread Mark A. Flacy
My "There's built-in support for that." meant only that there is built-in 
support for XML parsing.  Not DBus support.  :)

-- 
Mark A. Flacy
mfl...@verizon.net

On Sunday, January 17, 2021 1:02:32 AM CST Mark A. Flacy wrote:
> Greetings,
> 
> In my particular use-case, I was merely parsing DBus XML messages as part of
> a heart rate monitor app.  There's built-in support for that.
> 
> The error message that you've gotten earlier (I haven't worked on my
> Netbeans application since release 8.2) indicates to me that you won't get
> those OSGI deployed for free, but that you'd have to explicitly add them as
> dependencies to the final nbm-application pom.
> 
> While looking in my various pom.xml files in that application, I see that I
> had sometimes set the OSGI dependencies to false and other times to true.
> Unfortunately, I no longer remember why I made my specific choices.
> 
> --
> Mark A. Flacy
> mfl...@verizon.net
> 
> On Saturday, January 16, 2021 10:06:56 PM CST Will Hartung wrote:
> > On Sat, Jan 16, 2021 at 3:40 PM Mark A. Flacy 
> > 
> > wrote:
> > > Greetings,
> > > 
> > > Netbeans itself uses tons of XML internally; I've gotten away with just
> > > importing xml-apis:xml-apis.  It probably matters what you are trying to
> > > do,
> > > of course.
> > 
> > Can you be more specific?
> > 
> > I'm using JAXB for Marshalling/Unmarshallng.
> > 
> > For OSGI dependencies, that's in the nbm-maven-plugin's configuration
> > block.
> > 
> > 
> > This worked for me. This is notably for just a unit test, so I'm not sure
> > how much of the Module infrastructure is spooled up for this.
> > 
> > For the moment it seems to be working, hopefully I'll be running the
> > module
> > itself soon to see what happens.
> > 
> > Thanks.
> > 
> > Regards,
> > 
> > Will Hartung
> > 
> > > --
> > > Mark A. Flacy
> > > mfl...@verizon.net
> > > 
> > > On Saturday, January 16, 2021 1:38:23 PM CST Will Hartung wrote:
> > > > I have a simple Maven NB module project, with Java 11, and I need to
> > > > use
> > > > XML.
> > > > 
> > > > I have these dependencies:
> > > > 
> > > > 
> > > > com.sun.activation
> > > > javax.activation
> > > > 1.2.0
> > > > 
> > > > 
> > > > 
> > > > 
> > > > javax.xml.bind
> > > > jaxb-api
> > > > 2.3.0
> > > > 
> > > > 
> > > > 
> > > > 
> > > > org.glassfish.jaxb
> > > > jaxb-runtime
> > > > 2.3.0
> > > > 
> > > > 
> > > > 
> > > > During build, I get:
> > > > 
> > > > ==
> > > > NBM Plugin generates manifest
> > > > 
> > > > Adding on module's Class-Path:
> > > > javax.annotation:jsr250-api:jar:1.0
> > > > org.glassfish.jaxb:jaxb-runtime:jar:2.3.0
> > > > org.glassfish.jaxb:jaxb-core:jar:2.3.0
> > > > org.glassfish.jaxb:txw2:jar:2.3.0
> > > > 
> > > > Adding OSGi bundle dependency - com.sun.activation:javax.activation
> > > > Adding OSGi bundle dependency - javax.xml.bind:jaxb-api
> > > > Project uses classes from transitive OSGi bundle
> > > > com.sun.istack:istack-commons-runtime:jar:3.0.5 which will not be
> > > > accessible at runtime.
> > > > 
> > > > To fix the problem, add this module as direct dependency. For OSGi
> > > > 
> > > > bundles that are supposed to be wrapped in NetBeans modules, use the
> > > > useOSGiDependencies=false parameter
> > > > Project uses classes from transitive OSGi bundle
> > > > org.jvnet.staxex:stax-ex:jar:1.7.8 which will not be accessible at
> > > 
> > > runtime.
> > > 
> > > > To fix the problem, add this module as direct dependency. For OSGi
> > > > 
> > > > bundles that are supposed to be wrapped in NetBeans modules, use the
> > > > useOSGiDependencies=false parameter
> > > > Project uses classes from transitive OSGi bundle
> > > > com.sun.xml.fastinfoset:FastInfoset:jar:1.2.13 which will not be
>

Re: XML in Netbeans Module

2021-01-16 Thread Mark A. Flacy
Greetings,

In my particular use-case, I was merely parsing DBus XML messages as part of a 
heart rate monitor app.  There's built-in support for that.

The error message that you've gotten earlier (I haven't worked on my Netbeans 
application since release 8.2) indicates to me that you won't get those OSGI 
deployed for free, but that you'd have to explicitly add them as dependencies 
to the final nbm-application pom.

While looking in my various pom.xml files in that application, I see that I 
had sometimes set the OSGI dependencies to false and other times to true.  
Unfortunately, I no longer remember why I made my specific choices.  

-- 
Mark A. Flacy
mfl...@verizon.net

On Saturday, January 16, 2021 10:06:56 PM CST Will Hartung wrote:
> On Sat, Jan 16, 2021 at 3:40 PM Mark A. Flacy 
> 
> wrote:
> > Greetings,
> > 
> > Netbeans itself uses tons of XML internally; I've gotten away with just
> > importing xml-apis:xml-apis.  It probably matters what you are trying to
> > do,
> > of course.
> 
> Can you be more specific?
> 
> I'm using JAXB for Marshalling/Unmarshallng.
> 
> For OSGI dependencies, that's in the nbm-maven-plugin's configuration block.
> 
> 
> This worked for me. This is notably for just a unit test, so I'm not sure
> how much of the Module infrastructure is spooled up for this.
> 
> For the moment it seems to be working, hopefully I'll be running the module
> itself soon to see what happens.
> 
> Thanks.
> 
> Regards,
> 
> Will Hartung
> 
> > --
> > Mark A. Flacy
> > mfl...@verizon.net
> > 
> > On Saturday, January 16, 2021 1:38:23 PM CST Will Hartung wrote:
> > > I have a simple Maven NB module project, with Java 11, and I need to use
> > > XML.
> > > 
> > > I have these dependencies:
> > > 
> > > 
> > > com.sun.activation
> > > javax.activation
> > > 1.2.0
> > > 
> > > 
> > > 
> > > 
> > > javax.xml.bind
> > > jaxb-api
> > > 2.3.0
> > > 
> > > 
> > > 
> > > 
> > > org.glassfish.jaxb
> > > jaxb-runtime
> > > 2.3.0
> > > 
> > > 
> > > 
> > > During build, I get:
> > > 
> > > ==
> > > NBM Plugin generates manifest
> > > 
> > > Adding on module's Class-Path:
> > > javax.annotation:jsr250-api:jar:1.0
> > > org.glassfish.jaxb:jaxb-runtime:jar:2.3.0
> > > org.glassfish.jaxb:jaxb-core:jar:2.3.0
> > > org.glassfish.jaxb:txw2:jar:2.3.0
> > > 
> > > Adding OSGi bundle dependency - com.sun.activation:javax.activation
> > > Adding OSGi bundle dependency - javax.xml.bind:jaxb-api
> > > Project uses classes from transitive OSGi bundle
> > > com.sun.istack:istack-commons-runtime:jar:3.0.5 which will not be
> > > accessible at runtime.
> > > 
> > > To fix the problem, add this module as direct dependency. For OSGi
> > > 
> > > bundles that are supposed to be wrapped in NetBeans modules, use the
> > > useOSGiDependencies=false parameter
> > > Project uses classes from transitive OSGi bundle
> > > org.jvnet.staxex:stax-ex:jar:1.7.8 which will not be accessible at
> > 
> > runtime.
> > 
> > > To fix the problem, add this module as direct dependency. For OSGi
> > > 
> > > bundles that are supposed to be wrapped in NetBeans modules, use the
> > > useOSGiDependencies=false parameter
> > > Project uses classes from transitive OSGi bundle
> > > com.sun.xml.fastinfoset:FastInfoset:jar:1.2.13 which will not be
> > 
> > accessible
> > 
> > > at runtime.
> > > 
> > > To fix the problem, add this module as direct dependency. For OSGi
> > > 
> > > bundles that are supposed to be wrapped in NetBeans modules, use the
> > > useOSGiDependencies=false parameter
> > > ==
> > > 
> > > Should I wrap the XML stuff into a module? How do I make one module
> > > dependent on another module with Maven? Or do I have to make a module
> > 
> > suite?
> > 
> > > For now this is a simple module, and I have no problem bundling the XML
> > > stuff for this simple test.
> > > 
> > > The message says: "use the useOSGiDependencies=false parameter" but I
> > 
> > have
> > 
> > > no idea where this parameter should be specified.
> > > 
> > > Regards,
> > > 
> > > Will Hartung
> > 
> > -
> > 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: XML in Netbeans Module

2021-01-16 Thread Mark A. Flacy
Greetings,

Netbeans itself uses tons of XML internally; I've gotten away with just 
importing xml-apis:xml-apis.  It probably matters what you are trying to do, 
of course.

For OSGI dependencies, that's in the nbm-maven-plugin's configuration block.

-- 
Mark A. Flacy
mfl...@verizon.net

On Saturday, January 16, 2021 1:38:23 PM CST Will Hartung wrote:
> I have a simple Maven NB module project, with Java 11, and I need to use
> XML.
> 
> I have these dependencies:
> 
> com.sun.activation
> javax.activation
> 1.2.0
> 
> 
> javax.xml.bind
> jaxb-api
> 2.3.0
> 
> 
> org.glassfish.jaxb
> jaxb-runtime
> 2.3.0
> 
> 
> During build, I get:
> 
> ==
> NBM Plugin generates manifest
> Adding on module's Class-Path:
> javax.annotation:jsr250-api:jar:1.0
> org.glassfish.jaxb:jaxb-runtime:jar:2.3.0
> org.glassfish.jaxb:jaxb-core:jar:2.3.0
> org.glassfish.jaxb:txw2:jar:2.3.0
> Adding OSGi bundle dependency - com.sun.activation:javax.activation
> Adding OSGi bundle dependency - javax.xml.bind:jaxb-api
> Project uses classes from transitive OSGi bundle
> com.sun.istack:istack-commons-runtime:jar:3.0.5 which will not be
> accessible at runtime.
> To fix the problem, add this module as direct dependency. For OSGi
> bundles that are supposed to be wrapped in NetBeans modules, use the
> useOSGiDependencies=false parameter
> Project uses classes from transitive OSGi bundle
> org.jvnet.staxex:stax-ex:jar:1.7.8 which will not be accessible at runtime.
> To fix the problem, add this module as direct dependency. For OSGi
> bundles that are supposed to be wrapped in NetBeans modules, use the
> useOSGiDependencies=false parameter
> Project uses classes from transitive OSGi bundle
> com.sun.xml.fastinfoset:FastInfoset:jar:1.2.13 which will not be accessible
> at runtime.
> To fix the problem, add this module as direct dependency. For OSGi
> bundles that are supposed to be wrapped in NetBeans modules, use the
> useOSGiDependencies=false parameter
> ==
> 
> Should I wrap the XML stuff into a module? How do I make one module
> dependent on another module with Maven? Or do I have to make a module suite?
> 
> For now this is a simple module, and I have no problem bundling the XML
> stuff for this simple test.
> 
> The message says: "use the useOSGiDependencies=false parameter" but I have
> no idea where this parameter should be specified.
> 
> Regards,
> 
> Will Hartung





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

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



Re: possibly naive question

2021-01-14 Thread Mark A. Flacy
Greetings,

There is an important delta between "remote" and "external".

There is rather large delta between "locally and by me" and "locally and not 
by me" as well.

-- 
Mark A. Flacy
mfl...@verizon.net

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





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

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



Re: possibly naive question

2021-01-14 Thread Mark A. Flacy
Greetings,

I must ask if there are other IDEs which do have such APIs enabled by default.  
I wouldn't want something like that to be available (by default) on *any* IDE 
that I use.

-- 
Mark A. Flacy
mfl...@verizon.net

On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
> Hi,
> This might be a dumb question: does Netbeans have an external API (e.g.
> REST) that would allow a remote program to direct Netbeans to open a file
> at a given line number?  I have a program that does some analysis on
> application source code and then needs to let the user edit some specific
> source files  using whatever their favorite IDE.  If possible, I’d like to
> avoid writing my app as a plugin for each IDE.
> 
> I’m not sure if this is actually the right mailing list to ask this
> question.  Feel free to point me to another if it’s not.
> 
> Thanks,
> Tom





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

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



Re: The 12.2 release for MacOS is worse than the 12.1 release.

2020-12-03 Thread Mark A. Flacy
Greetings,

We've all played internet guy, so don't worry about it.

Macbook Pro (15-inch, 2018).  32GB RAM.

OpenJDK 15.0.1 and OpenJDK 11.0.2 both show the same issue.

1 gradle project that contains 3 gradle subprojects.  Since this is a work 
project, I can't provide a copy of it.  I'll say that Netbeans 11.3 and 12.1 
have no issues with having this project open.  In fact, those versions can 
allow me to have 10 or 15 projects in the projects window with no issues.

I've configured Netbeans for a max heap of 8GB.

Netbeans freezes;  Activity monitor doesn't show excessive CPU use. 

I've attempted to attach jconsole to the running process with no information 
provided.

I re-launched Netbeans 12.2 at work; while running junit tests, Netbeans 
decided to freeze up and has now popped up a window containing "Too many open 
files".  

There's also a warning message in the output panel "No valid Java Platform 
found for key: 'JDK_11'".  That popped up just before the freeze, after around 
5 to 10 minutes of Netbeans uptime.

I'll have to force quit Netbeans 12.2 just so I can get back to work.

An exception finally showed up, but the exception reporter cannot figure out 
how to connect to the internet.  And that specific notification is now gone 
from the Notifications panel, so I can't even report it here.  

There is something horribly broken in this release, IMO.  

-- 
Mark A. Flacy
mfl...@verizon.net

On Thursday, December 3, 2020 4:58:51 AM CST Luff,Chris wrote:
> I don’t like being internet guy, but come on, how is this helpful?
> 
> You could try giving us some idea of your machine specs, JDK, how many
> projects and size you have open or maven indexed repos? Are any errors in
> the notifications?
 
> I am using 12.2 on the very same macOS version and I have experienced none
> of what you describe?!
 
> 
> On 3 Dec 2020, at 03:13, Mark A. Flacy
> mailto:mfl...@verizon.net.INVALID>> wrote:
 
> Greetings,
> 
> I've been attempting to use the projected 12.2 version in my work projects
> under MacOS Catalina (10.15.7).
> 
> In my experience, it is a pile of dung (GUI freezes.  Background scanning
> doesn't happen but when it does, you have to force quit the Netbeans
> process).
 
> I haven't tried it on my Linux boxes yet, but my MacOS experience is
> pushing
 me to use IntelliJ (which my company pays for) on my work machine.
>  I HATE the Intellij interface.
> 
> I'll stay with 12.1 until there are test projects that aren't trivial for
> the
 Netbeans team to test against.
> 
> --
> Mark A. Flacy
> mfl...@verizon.net<mailto:mfl...@verizon.net>
> 
> 
> 
> -
> 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.apac
> he.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=04%7C01%
> 7CChris.Luff%40cerner.com%7Cb9afa5b845404c94ce9508d8973981d7%7Cfbc493a80d244
> 454a815f4ca58e8c09d%7C0%7C0%7C637425620545091955%7CUnknown%7CTWFpbGZsb3d8eyJ
> WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000s
> data=HO7V8drsR2TVaPVFg33BXhjuA7kuDmk4CI0lJS7DM0I%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



The 12.2 release for MacOS is worse than the 12.1 release.

2020-12-02 Thread Mark A. Flacy
Greetings,

I've been attempting to use the projected 12.2 version in my work projects 
under MacOS Catalina (10.15.7).

In my experience, it is a pile of dung (GUI freezes.  Background scanning 
doesn't happen but when it does, you have to force quit the Netbeans process).

I haven't tried it on my Linux boxes yet, but my MacOS experience is pushing 
me to use IntelliJ (which my company pays for) on my work machine.  I HATE the 
Intellij interface.

I'll stay with 12.1 until there are test projects that aren't trivial for the 
Netbeans team to test against.

-- 
Mark A. Flacy
mfl...@verizon.net



-
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



What happened to "Enable Annotation Processing in Editor" in Apache Netbeans 12.1?

2020-11-20 Thread Mark A. Flacy
Greetings,

Not so many moons ago, you could configure Netbeans to use Project Lombok.

Despite https://netbeans.apache.org/kb/docs/java/annotations-lombok.html[1], 
there 
is no way to allow annotation processing in the editor.

I would really like to be proven wrong. I have a gradle project at work that 
uses 
Lombok and I am forced to use IntelliJ (which I hate) instead of Netbeans.

-- 
Mark A. Flacy
mfl...@verizon.net


[1] https://netbeans.apache.org/kb/docs/java/annotations-lombok.html