Re: deploy on save not working ?

2024-05-31 Thread Eric Bresie
Bringing this back to the list in case others may have some additional
thoughts…

Anything showing up in the logs?

JRebel is slightly different.  As I understand it, it takes an existing
running application at the byte code level and tries to swap out byte code
which may have changed in the source.  So it’s kind of a fine grain updates.

>From the case you are talking about it basically replaces the whole
application in a given server instance.

Regarding alternatives not sure but this may provide some possibilities
https://www.reddit.com/r/java/s/OH4U0HR6me

Eric Bresie
ebre...@gmail.com


On Thu, May 30, 2024 at 8:22 AM Roberto Bottoni 
wrote:

> ok, I'll take a look..
> by the way... I found a tool called "JRebel" that should do what I
> want... but it's not free...
> do you know similar solutions?.. (if it doesn't work with autoDeploy)
>
> thank you.
> Roberto
>
>
>
> Il 30-05-2024 15:18 Eric Bresie ha scritto:
> > Is the tomcat deployment/home folder setup on the Tomcat server setup?
> >  Can you go on the filesystem and look in the deployment folder to
> > confirm the new war artifact is being deployed?
> >
> > Can you check the logs and make sure that there aren’t any issues
> > showing up during deployment?  Maybe a needed dependency isn’t
> > available?
> >
> > Not sure if this helps but few suggestions mentioned here:
> >
> >
> https://stackoverflow.com/questions/9131764/how-to-setup-tomcat-server-in-netbeans
> >
> > Eric Bresie
> > ebre...@gmail.com
> >
> > On Thu, May 30, 2024 at 8:04 AM Roberto Bottoni
> >  wrote:
> >
> >> yes it had already been set :
> >>
> >>  >> unpackWARs="true" autoDeploy="true">
> >>
> >> 
> >> 
> >>
> >> 
> >>  >> className="org.apache.catalina.valves.AccessLogValve"
> >> directory="logs"
> >> prefix="localhost_access_log" suffix=".txt"
> >> pattern="%h %l %u %t %r %s %b" />
> >>
> >> 
> >>
> >> Il 30-05-2024 14:37 Eric Bresie ha scritto:
> >>> Has the auto deploy setting on the server been set?  See
> >>> https://tomcat.apache.org/tomcat-10.0-doc/deployer-howto.html
> >>>
> >>> Eric Bresie
> >>> ebre...@gmail.com
> >>>
> >>> On Thu, May 30, 2024 at 7:31 AM Roberto Bottoni
> >>>  wrote:
> >>>
> >>>> the server is Tomcat 10.1.20.
> >>>>
> >>>> If I have to restart the server, the "deploy on save" feature is
> >>>> useless.
> >>>>
> >>>> R.
> >>>>
> >>>> Il 30-05-2024 14:21 Eric Bresie ha scritto:
> >>>>> Which server is in  use?
> >>>>>
> >>>>> Some servers may not redeploy automatically and may require
> >>>>> restarting.
> >>>>>
> >>>>> Did the browser session get refreshed?
> >>>>>
> >>>>> Eric Bresie
> >>>>> ebre...@gmail.com
> >>>>>
> >>>>> On Thu, May 30, 2024 at 5:53 AM Roberto Bottoni
> >>>>>  wrote:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I'm using NB 21 with JDK 21 in a Maven project (JSF).
> >>>>>>
> >>>>>> I have selected "Deploy on Save" in the project settings.
> >>>>>>
> >>>>>> When I run the application and save a file (for example a
> >>>> JavaBean),
> >>>>>> the
> >>>>>> modifications are not reflected in the app, that is, the
> >> JavaBean
> >>>> is
> >>>>>> not
> >>>>>> updated according to the changes I have made.
> >>>>>>
> >>>>>> thanks.
> >>>>>> Roberto.
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>
> >>
> > -
> >>>>>> 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
> >>>>> --
> >>>>> Questo messaggio è stato analizzato con Libraesva ESG ed è
> >>>>> risultato non infetto.
> >>>>> This message has been checked by Libraesva ESG and is believed
> >> to
> >>>> be
> >>>>> clean.
> >>> --
> >>> Questo messaggio è stato analizzato con Libraesva ESG ed è
> >>> risultato non infetto.
> >>> This message has been checked by Libraesva ESG and is believed to
> >> be
> >>> clean.
> >  --
> >  Questo messaggio è stato analizzato con Libraesva ESG ed è
> > risultato non infetto.
> > This message has been checked by Libraesva ESG and is believed to be
> > clean.
>


Re: deploy on save not working ?

2024-05-30 Thread Eric Bresie
Which server is in  use?

Some servers may not redeploy automatically and may require restarting.

Did the browser session get refreshed?

Eric Bresie
ebre...@gmail.com


On Thu, May 30, 2024 at 5:53 AM Roberto Bottoni 
wrote:

> Hi,
>
> I'm using NB 21 with JDK 21 in a Maven project (JSF).
>
> I have selected "Deploy on Save" in the project settings.
>
> When I run the application and save a file (for example a JavaBean), the
> modifications are not reflected in the app, that is, the JavaBean is not
> updated according to the changes I have made.
>
> thanks.
> Roberto.
>
> -
> 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: Upgrade Gradle version.

2024-01-24 Thread Eric Bresie
Maybe some of the Gradle documentation may help.  See
https://docs.gradle.org/current/userguide/upgrading_version_7.html

“General error during conversion: Unsupported class file major version 65”
(which means Java 21 - see
https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers)
usually means a given artifact (jar) is compiled to a newer/unsupported
version.  So there is likely a mismatch someplace.

That said if you are using Gradle wrapper then it may be trying to pull
down a dist (older) version expected in the wrapper side which is a
different incompatible Gradle/Jaca version.

Eric Bresie
ebre...@gmail.com


On Wed, Jan 24, 2024 at 6:40 PM Owen Thomas 
wrote:

>
>
> On Thu, 25 Jan 2024 at 10:33, Owen Thomas 
> wrote:
>
>> Hello.
>>
>> I needed to reinstall netbeans, so I installed the latest version. I was
>> using Gradle 7.2 on a previous project but the current environment is
>> complaining to me that I need Gradle 8.4 to run with Java 21.
>>
>> I am happy to move to version 8.4 of Gradle, especially since there
>> appears to be a mismatch between Grable 7.2 and the Java 17 I was using
>> previously. However, there isn't much information on how to upgrade Gradle
>> to work with the current Java version from the Resolve Project Problems
>> dialogue box that appears.
>>
>> So, my question is: how do I upgrade my existing project from Gradle 7.2
>> to 8.4?
>>
>> Help appreciated. Thanks.
>>
>
> So, I've tried to follow instructions to the degree that doing so made
> sense to me.
>
> I installed version 21 of the JVM on my machine, and, from the
> multi-project root  directory of my gradle build I tried to use the gradle
> wrapper...
>
> This is the output I received:
>
> -- Start of output.
>
> owen@owen-Q16-7A405-BM-55:~/Development/CliqueSpace/Current/Code/trunk/clique-space$
> ./gradlew wrapper --gradle-version=8.5 --distribution-type=bin
> Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use
> --status for details
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Settings file
> '/home/owen/Development/CliqueSpace/Current/Code/trunk/clique-space/settings.gradle'
>
> * What went wrong:
> Could not compile settings file
> '/home/owen/Development/CliqueSpace/Current/Code/trunk/clique-space/settings.gradle'.
> > startup failed:
>   General error during conversion: Unsupported class file major version 65
>
>   java.lang.IllegalArgumentException: Unsupported class file major version
> 65
> at groovyjarjarasm.asm.ClassReader.(ClassReader.java:196)
> at groovyjarjarasm.asm.ClassReader.(ClassReader.java:177)
> at groovyjarjarasm.asm.ClassReader.(ClassReader.java:163)
> at groovyjarjarasm.asm.ClassReader.(ClassReader.java:284)
> at
> org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
> at
> org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
> at
> org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)
> at
> org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:169)
> at
> org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:125)
> at
> org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClassNullable(AsmReferenceResolver.java:57)
> at
> org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClass(AsmReferenceResolver.java:44)
> at
> org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveNonArrayType(AsmReferenceResolver.java:79)
> at
> org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveType(AsmReferenceResolver.java:70)
> at
> org.codehaus.groovy.ast.decompiled.MemberSignatureParser.createMethodNode(MemberSignatureParser.java:57)
> at
> org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lambda$createMethodNode$1(DecompiledClassNode.java:230)
> at
> org.codehaus.groovy.ast.decompiled.DecompiledClassNode.createMethodNode(DecompiledClassNode.java:236)
> at
> org.codehaus.groovy.ast.decompiled.DecompiledClassNode.lazyInitMembers(DecompiledClassNode.java:203)
> at
> org.codehaus.groovy.ast.decompiled.DecompiledClassNode.getDeclaredMethods(DecompiledClassNode.java:122)
> at
> org.codehaus.groovy.ast.ClassNode.tryFindPossibleMethod(ClassNode.java:1283)
> at
> org.codehaus.groovy.control.StaticImportVisitor.transformMethodCallExpression(StaticImportVisitor.java:251)
> at

Re: Apache NetBeans 20 released - Java Versions

2023-12-21 Thread Eric Bresie
If this is at NB startup…Not sure if this has changed in newer NB versions
but in  the Netbean folders etc/netbeans.conf the default netbeans_jdkhome in
use property points to default jdk version that NB runs on.  (1). It’s also
possible to specify the location from command line when starting NB.

Believe this is the version NB is running on (which should at minimum be
compatible with version that NB was built with).  Not to be confused with
the Project Java property in use or the available installed Java Platforms.

As I recall, Java 8 was the last non-openjdk release by Oracle after which
the release process and cadence change with emphasis on openjdk (open
source based).

Oracle still offers security updates (especially if there is a support
contract) but many of the older versions are reaching End Of Life (EOL).
Java 8 I believe is the last version with Java with update monitoring; I
believe this was removed or not actively supported in the openjdk version.

Reference
(1)
https://stackoverflow.com/questions/6950960/how-can-i-set-the-jdk-netbeans-runs-on

Eric Bresie
ebre...@gmail.com


On Thu, Dec 21, 2023 at 6:17 AM Michael Bien  wrote:

> On 21.12.23 13:01, Judi Rastall wrote:
>
>
> One small niggle remains: when I start NB20, it complains it cannot find
> JDK8 and can it use the default. I click 'yes' and all is well. I have
> found how to point NB to JDK21 at project level but I cannot find a way to
> switch this at global level. Is there an environment variable I need to
> know about here?
>
> projects can use JDKs other than the JDK NetBeans itself is running on. So
> what happened there most likely was that NetBeans told you that the JDK the
> project was configured to use, wasn't there anymore after you uninstalled
> it and it is going to use the default JDK as fallback. The "default JDK" is
> the JDK NetBeans is running on.
>
> You can select the JDK in the project properties window (right click on
> project -> properties).
>
> Registering new JDKs would be via tools -> java platforms as previously
> mentioned.
>
>
> but this sounds to me like you don't have to do anything, NB probably
> simply set it to the default which would be JDK 21 you just installed.
>
> -mbien
>
>
>
>


Re: [servlet]

2023-01-21 Thread Eric Bresie
Regarding "compile error that complains about that RequestDispatcher is an
undefined symbol.  "

When editing, are red issue icons in the Netbeans gutter on the left on
some of the imports?  This can show missing dependencies in your pom file.

May need to add the javax-servlet-api dependency.

Eric Bresie
ebre...@gmail.com


On Fri, Jan 20, 2023 at 5:33 PM Peter Scharf 
wrote:

> Now the next step in this tutorial passes the values of variables in the
> java web form to a jsp file instead of embedding them in println commands.
> Here is the code that the tutorial (
> https://www.youtube.com/watch?v=eP9oz6ZKUXM at Creat JavaServer Page
> (JSP), about 23 minutes into it) gives:
>
> protected void doPost(HttpServletRequest request, HttpServletResponse
> response)
>throws ServletException, IOException {
>   processRequest(request, response);
>   float miles = Float.parseFloat(request.getParameter("miles"));
>   float kilometers = miles * 1.61f;
>   request.setAttribute("miles", miles);
>   request.setAttribute("kilometers", kilometers);
>   String resultPage = "result.jsp";
>
>   RequestDispatcher dispatcher =
> request.getRequestDispatcher(resultPage);
>   dispacther.forward(request, response);
>}
>
> I get a compile error that complains about that RequestDispatcher is an
> undefined symbol.  After much hunting on websites for answers, I revised
> the code as in the project in the git:
> https://github.com/the-sanskrit-library/public.git, namely:
>
>protected void doPost(HttpServletRequest request, HttpServletResponse
> response)
>throws ServletException, IOException {
>   float miles = Float.parseFloat(request.getParameter("miles"));
>   float kilometers = miles * 1.61f;
>   request.setAttribute("miles", miles);
>   request.setAttribute("kilometers", kilometers);
>   String resultPage = "result.jsp";
>   request.getRequestDispatcher(resultPage).forward(request, response);
>}
>
> Which compiles.  However, the response I get give the string rather than
> their values:
>
> Unit Conversion Result
>
> *$(miles) miles = $(kilometers) kilometers*
> Any suggestions?
> Yours,
> Peter
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 20, 2023, at 12:31 PM, Carl Mosca  wrote:
>
> You're welcome Peter and glad to hear it.  You can remove/replace the root
> app if/as needed.
>
> Regards,
> Carl
>
> On Fri, Jan 20, 2023 at 1:28 PM Peter Scharf 
> wrote:
>
>> Dear Carl,
>> Thanks for your help.  I installed Tomcat version 9.  Now the project
>> runs correctly.
>> Changing the context path to “/” however, interfered with the “It works”
>> root app of Tomcat, so I changed it back.  I get the correct result of the
>> conversion servlet at the path
>> http://localhost:8080/mavenproject3/convert.
>> Yours,
>> Peter
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 18, 2023, at 8:16 PM, Carl Mosca  wrote:
>>
>> Hi Peter,
>>
>> First off it looks like the example notes suggest using Tomcat 9 or
>> earlier so I used 9.0.71.
>>
>> I changed the context path (in the context.xml file): .
>>
>> It's worth looking at creating a .gitignore file so that class and other
>> binaries are not in git as they are not needed.
>>
>> Regards,
>> Carl
>>
>> On Wed, Jan 18, 2023 at 6:16 PM Peter Scharf 
>> wrote:
>>
>>> The catalina log has lots of info entries.  Here’s one WARNING:
>>>
>>> 18-Jan-2023 12:10:12.964 WARNING [main]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
>>> with value [/mavenproject3] in deployment descriptor
>>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
>>> has been ignored
>>>
>>> The catalina.out file has the same suspicious entry:
>>>
>>> 18-Jan-2023 12:10:12.964 WARNING [main]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
>>> with value [/mavenproject3] in deployment descriptor
>>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
>>> has been ignored
>>>
>>> The localhost_acc

Re: [servlet]

2023-01-20 Thread Eric Bresie
By the way, I believe these warnings are due to conflicting configuration
methods.  Can configure them in the descriptor or with  annotations which I
believe may take preference.  Maybe there were some conflicting
configurations in use and/or limiting the wrong place to correct.

Glad it works now.

Eric B

On Wed, Jan 18, 2023 at 5:16 PM Peter Scharf 
wrote:

> The catalina log has lots of info entries.  Here’s one WARNING:
>
> 18-Jan-2023 12:10:12.964 WARNING [main]
> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
> with value [/mavenproject3] in deployment descriptor
> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
> has been ignored
>
> The catalina.out file has the same suspicious entry:
>
> 18-Jan-2023 12:10:12.964 WARNING [main]
> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
> with value [/mavenproject3] in deployment descriptor
> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
> has been ignored
>
> The localhost_access_log.2023-01-18.txt file has:
>
> 0:0:0:0:0:0:0:1 - - [18/Jan/2023:12:10:18 -0600] "GET /convert HTTP/1.1"
> 404 759
> 0:0:0:0:0:0:0:1 - - [18/Jan/2023:12:10:18 -0600] "GET /favicon.ico
> HTTP/1.1" 200 21630
> 0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:50:07 -0600] "GET /mavenproject3/
> HTTP/1.1" 200 453
> 0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:50:14 -0600] "POST
> /mavenproject3/convert HTTP/1.1" 404 777
> 0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:51:11 -0600] "POST
> /mavenproject3/convert HTTP/1.1" 404 777
>
> Regarding Java EE versus Jakarta EE, a quick search shows that none of my
> project files contain ‘jakarta’ while the following all contain ‘java’
>
> UnitConverterServlet.class
> UnitConverterServlet.class
> UnitConverterServlet.java
> inputFiles.lst
> javaee-endorsed-api-7.0.jar
> pom.xml
>
>
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 18, 2023, at 12:19 PM, Eric Bresie  wrote:
>
> Does anything show up in tomcat log?
>
> I seem to recall there is some migration going on to move namespace from
> Java EE to jakarta EE name space.  Not sure if maybe that is coming into
> play here.  This might help if it is impacted
>
> https://github.com/apache/tomcat-jakartaee-migration
>
>
>
> On Wed, Jan 18, 2023 at 12:11 PM Peter Scharf 
> wrote:
>
>> Thanks, Eric.  I had tried that.  I get the message:
>>
>> HTTP Status 404 – Not Found
>> --
>>
>> *Type* Status Report
>>
>> *Message* The requested resource [/convert] is not available
>>
>> *Description* The origin server did not find a current representation
>> for the target resource or is not willing to disclose that one exists.
>> --
>> Apache Tomcat/10.0.23
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 18, 2023, at 12:06 PM, Eric Bresie  wrote:
>>
>>
>> Servlet says the urlpattern is “/convert”
>>
>> Try
>> http://localhost:8080/convert
>>
>>
>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf 
>> wrote:
>>
>>> Yes, the URL is correct:
>>> https://github.com/the-sanskrit-library/public.git
>>> The git directory hierarchy deceived me: I had the code outside the git
>>> directory.  I have now moved it into the git directory.
>>> Forgive me; I’m not very familiar with git and am using the desktop
>>> version.
>>> Yours,
>>> Peter
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
>>>
>>> Hi Peter,
>>>
>>> Can you confirm that url please.  I am not seeing Java code there; only
>>> a README and attribute file.
>>>
>>> Regards,
>>> Carl
>>>
>>>
>>> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf <
>>> sch...@sanskritlibrary.org> wrote:
>>>
>>>> Thank you for suggesting to put the project on Github.  I have now
>>>> created a public repository at the followin

Re: question about netbeans questions and support

2023-01-18 Thread Eric Bresie
Is there something specific needed?

Eric B



On Wed, Jan 18, 2023 at 10:58 AM Neil C Smith  wrote:

> Hi Chris,
>
> I really should request addition to that page!
>
> I offer support and development services for the IDE and platform via
> Codelerity.  It's mentioned, amongst other places, on the community
> installers page - https://www.codelerity.com/netbeans/
>
> I mostly work with other companies though, so might not be the right
> fit.  Feel free to get in touch there, but I would also hope we'd be
> able to provide enough support through the community here.
>
> Best wishes,
>
> Neil
>
> On Sun, 15 Jan 2023 at 13:14, Christopher C. Lanz
>  wrote:
> >
> > Hello, as a retired Computer Science professor doing A.I. research, it
> happens that I have MUCH more money than time.
> >
> > I wonder if there is already a mechanism for users to pay to get help
> after it happens that the community is unable to help with a question.
> (There is only one name on the reference provided by Apache.)
> >
> > If not, I really really need to hire somebody who has more time than
> money.
> >
> > Thanks to the community for all the help I have received, and for all
> they do in general. I just need to make it more efficient on my end.
> >
> > Chris Lanz, Assoc. Professor Emeritus
> >
> > Department of Computer Science
> >
> > 340 Dunn Hall, SUNY Potsdam
> >
> > lan...@potsdam.edu
> >
> > 315 268 1547
> >
> >
> >
> >
>
> -
> 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
>
> --
Eric Bresie
ebre...@gmail.com


Re: [servlet]

2023-01-18 Thread Eric Bresie
Does anything show up in tomcat log?

I seem to recall there is some migration going on to move namespace from
Java EE to jakarta EE name space.  Not sure if maybe that is coming into
play here.  This might help if it is impacted

https://github.com/apache/tomcat-jakartaee-migration



On Wed, Jan 18, 2023 at 12:11 PM Peter Scharf 
wrote:

> Thanks, Eric.  I had tried that.  I get the message:
>
> HTTP Status 404 – Not Found
> --
>
> *Type* Status Report
>
> *Message* The requested resource [/convert] is not available
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> --
> Apache Tomcat/10.0.23
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> ******
>
> On Jan 18, 2023, at 12:06 PM, Eric Bresie  wrote:
>
>
> Servlet says the urlpattern is “/convert”
>
> Try
> http://localhost:8080/convert
>
>
> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf 
> wrote:
>
>> Yes, the URL is correct:
>> https://github.com/the-sanskrit-library/public.git
>> The git directory hierarchy deceived me: I had the code outside the git
>> directory.  I have now moved it into the git directory.
>> Forgive me; I’m not very familiar with git and am using the desktop
>> version.
>> Yours,
>> Peter
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
>>
>> Hi Peter,
>>
>> Can you confirm that url please.  I am not seeing Java code there; only a
>> README and attribute file.
>>
>> Regards,
>> Carl
>>
>>
>> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf 
>> wrote:
>>
>>> Thank you for suggesting to put the project on Github.  I have now
>>> created a public repository at the following url:
>>>
>>> https://github.com/the-sanskrit-library/public.git
>>>
>>> The project is in the NetBeans directory.
>>> Yours,
>>> Peter
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca  wrote:
>>>
>>> Hello Peter,
>>>
>>> Is the project that you created somewhere (such as Github) such that
>>> folks could take a look at it?
>>>
>>> Regards,
>>> Carl
>>>
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf <
>>> sch...@sanskritlibrary.org> wrote:
>>>
>>>> I just installed NetBeans 16 on a MacBook Pro with an M chip:
>>>>
>>>> *Product Version:* Apache NetBeans IDE 16
>>>> *Java:* 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
>>>> *Runtime:* OpenJDK Runtime Environment 19.0.1
>>>> *System:* Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)
>>>>
>>>> I am trying to create a minimal servlet and war file to use with Tomcat
>>>>
>>>> apache-tomcat-10.0.23
>>>>
>>>> I worked through half of the demo How to create a webapp tutorial at:
>>>> https://www.youtube.com/watch?v=eP9oz6ZKUXM
>>>> which, however, uses NetBeans 12 and other older software than I have
>>>> installed.
>>>> I was able to do the first item successfully with minor adaptations:
>>>> 1. Create a Jave Web project with Maven
>>>> Got build error:
>>>>
>>>> https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
>>>> Went to: https://maven.apache.org/plugins/
>>>> Answer: manually configuring one of the recent war plug-ins in POM.xml
>>>> Changed 2.3 to 3.3.2
>>>> Then got the form.
>>>> I successfully created the Unit Conversion form which opens in Safari
>>>> (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/
>>>>
>>>> But trying the second—third items:
>>>> 2. Create Java Servlet & JavaServer Page (JSP)
>>>> 3. Run Java Web App on Tomcat inside NetBeans
>>>>
>>>> I got stuck.
>&

Re: [servlet]

2023-01-18 Thread Eric Bresie
.apache.catalina.startup.VersionLoggerListener.log Command line
>>> argument: -Dcatalina.base=/Library/Tomcat
>>> 16-Jan-2023 11:15:13.010 INFO [main]
>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>> argument: -Dcatalina.home=/Library/Tomcat
>>>
>>> but the infos in the debugger do tell me that it is using the real
>>> directories:
>>> CATALINA_BASE: /usr/local/apache-tomcat-10.0.23
>>> CATALINA_HOME: /usr/local/apache-tomcat-10.0.23
>>>
>>> I get the following debugger WARNING:
>>> WARNING [http-nio-8080-exec-10]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
>>> with value [/mavenproject3] in deployment descriptor
>>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
>>> has been ignored
>>>
>>> Trying to follow suggestions at:
>>> https://stackoverflow.com/questions/11731377/servlet-returns-http-status-404-the-requested-resource-servlet-is-not-availa
>>> I’m lost.  I can’t even figure out which versions of Servlet I’m using,
>>> and the instructions to find out at.:
>>> https://stackoverflow.com/questions/3913485/how-do-i-know-what-version-of-servlet-api-jar-i-have
>>>
>>> don’t provide enough context for me to know where to put the commands
>>> suggested.
>>>
>>> ===
>>> Can anyone help me either (a) work through this tutorial with current
>>> versions of software, or (b) give me an example of how to create a servlet
>>> or portable war file in NetBeans to use with Tomcat by copying it to its
>>> webapps directory using current versions of NetBeans and other software?
>>>
>>> Thank you in advance.
>>> Yours,
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>>
>>
>> --
>> Carl J. Mosca
>>
>>
>>
>
> --
> Carl J. Mosca
>
>
> --
Eric Bresie
ebre...@gmail.com


Re: Re: NB16 - java.lang.RuntimeException: Uncompilable code

2023-01-18 Thread Eric Bresie
What version of JUnit is being used? Not sure if JUnit 5 is fully compatible. 
Can try JUnit 4 and see if this resolves the problem with test at least.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 17, 2023 at 3:12:57 PM CST, Gheorghe TUDOSE  (mailto:tudo@gmail.com)> wrote:
> Hi,
>
> I have the same issue; I can't run unit tests, nor can I run a command line 
> application testing my code.
> As per this SO post (https://stackoverflow.com/q/4386076), deactivating the 
> "Compile on Save" option makes the problem go away kinda - the command line 
> application runs but the tests don't (there's a "No tests executed." message 
> in the test output console).
>
> HTH
> George T.
>
> În vin., 16 dec. 2022 la 00:17 (x-apple-data-detectors://6), Sam Lalani 
> mailto:samlal...@yahoo.com.invalid)> a scris:
> > It is an Ant based project.
> >
> > -Original Message-
> > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > Sent: Thursday, December 15, 2022 2:22 PM
> > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> >
> > No, not a requirement. But there are some problems with Gradle (7.x) and NB 
> > 16
> >
> > So is it an Ant based project or is using Maven?
> >
> > Sam Lalani schrieb am 15.12.2022 um 18:01:
> > > No, I am not using Gradle. Is that a requirement for NB16?
> > >
> > > -Original Message-
> > > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > > Sent: Thursday, December 15, 2022 8:45 AM
> > > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> > >
> > > Are you using Gradle?
> > >
> > >
> > > Sam Lalani schrieb am 15.12.2022 um 15:21:
> > >> I am running NB16 in Windows 10. I have a Java program that is
> > >> giving this
> > >> error:
> > >>
> > >> Exception in thread "Thread-2" java.lang.RuntimeException:
> > >> Uncompilable code
> > >>
> > >> However, the same code in NB15 has no problems.
> > >>
> > >> This issue shows up only when I "Clean and Build" in NB16 "AND" run
> > >> it in NB16.
> > >>
> > >> If I "Clean and Build" in NB15 and run it in NB15 then no problem.
> > >> If I "Clean and Build" in NB15 and run it in NB16 then no problem.
> > >> If I "Clean and Build" in NB16 and run the program using the command
> > >> prompt then no problem.
> > >> If I "Clean and Build" in NB16 and run it in NB16 then it shows the 
> > >> error.
> > >>
> > >> The program is fairly large, and I don't think I can provide the
> > >> source code due to company policies.
> > >>
> > >> Here is some info about my system from the NB16 About page:
> > >>
> > >> Product Version: Apache NetBeans IDE 16
> > >> Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
> > >> Runtime: OpenJDK Runtime Environment 17+35-2724
> > >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> > >> User
> > >> directory: C:\Users\samla\AppData\Roaming\NetBeans\16
> > >> Cache directory: C:\Users\samla\AppData\Local\NetBeans\Cache\16
> > >>
> > >> What else can I provide that would make it easier to find the problem
> > >> in NB16?
> >
> > -
> > 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
> >
> >
> >
> > --
> > This email has been checked for viruses by Avast antivirus software.
> > www.avast.com (http://www.avast.com)
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >


Re: Re: NB16 - java.lang.RuntimeException: Uncompilable code

2023-01-18 Thread Eric Bresie
Are there any dependencies projects or libraries in use? Maybe they are built 
with a newer/older Java compiler which is not compatible (I.e. dependency 
compiled with newer version not in use with the older version being used).

Can you check the Java Platform to see what’s installed? Can also check 
Help…About to see some of the versions in use.

I believe NB16 does have a dependency on Java 11 in some contexts

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 17, 2023 at 3:12:57 PM CST, Gheorghe TUDOSE  (mailto:tudo@gmail.com)> wrote:
> Hi,
>
> I have the same issue; I can't run unit tests, nor can I run a command line 
> application testing my code.
> As per this SO post (https://stackoverflow.com/q/4386076), deactivating the 
> "Compile on Save" option makes the problem go away kinda - the command line 
> application runs but the tests don't (there's a "No tests executed." message 
> in the test output console).
>
> HTH
> George T.
>
> În vin., 16 dec. 2022 la 00:17 (x-apple-data-detectors://6), Sam Lalani 
> mailto:samlal...@yahoo.com.invalid)> a scris:
> > It is an Ant based project.
> >
> > -Original Message-
> > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > Sent: Thursday, December 15, 2022 2:22 PM
> > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> >
> > No, not a requirement. But there are some problems with Gradle (7.x) and NB 
> > 16
> >
> > So is it an Ant based project or is using Maven?
> >
> > Sam Lalani schrieb am 15.12.2022 um 18:01:
> > > No, I am not using Gradle. Is that a requirement for NB16?
> > >
> > > -Original Message-
> > > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > > Sent: Thursday, December 15, 2022 8:45 AM
> > > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> > >
> > > Are you using Gradle?
> > >
> > >
> > > Sam Lalani schrieb am 15.12.2022 um 15:21:
> > >> I am running NB16 in Windows 10. I have a Java program that is
> > >> giving this
> > >> error:
> > >>
> > >> Exception in thread "Thread-2" java.lang.RuntimeException:
> > >> Uncompilable code
> > >>
> > >> However, the same code in NB15 has no problems.
> > >>
> > >> This issue shows up only when I "Clean and Build" in NB16 "AND" run
> > >> it in NB16.
> > >>
> > >> If I "Clean and Build" in NB15 and run it in NB15 then no problem.
> > >> If I "Clean and Build" in NB15 and run it in NB16 then no problem.
> > >> If I "Clean and Build" in NB16 and run the program using the command
> > >> prompt then no problem.
> > >> If I "Clean and Build" in NB16 and run it in NB16 then it shows the 
> > >> error.
> > >>
> > >> The program is fairly large, and I don't think I can provide the
> > >> source code due to company policies.
> > >>
> > >> Here is some info about my system from the NB16 About page:
> > >>
> > >> Product Version: Apache NetBeans IDE 16
> > >> Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
> > >> Runtime: OpenJDK Runtime Environment 17+35-2724
> > >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> > >> User
> > >> directory: C:\Users\samla\AppData\Roaming\NetBeans\16
> > >> Cache directory: C:\Users\samla\AppData\Local\NetBeans\Cache\16
> > >>
> > >> What else can I provide that would make it easier to find the problem
> > >> in NB16?
> >
> > -
> > 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
> >
> >
> >
> > --
> > This email has been checked for viruses by Avast antivirus software.
> > www.avast.com (http://www.avast.com)
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >


Re: Re: Embedded Language Question

2023-01-09 Thread Eric Bresie
Not sure if this helps but here is wiki page in adding new languages that may 
help.

https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=173084490#content/view/173084490

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 9, 2023 at 1:01:13 AM CST, Michael Bien  (mailto:mbie...@gmail.com)> wrote:
> this might be of interest for some here:
> https://github.com/apache/netbeans/pull/4885
>
> dependent on the usecase this might be a quick && elegant way to embed
> other languages.
>
> -mbien
>
> On 08.01.23 21:59 (x-apple-data-detectors://5), Oliver Rettig wrote:
> > Hi,
> >
> > I am also interested in such functionality to put code written in our DSLs
> > into java source code. In the meantime we put the code in extra files with
> > specific filesuffix and use the netbeans api for syntax highlighting etc.
> >
> > best regards
> > Oliver
> >
> > > Hi,
> > > I have got a question regarding the embedded language support of Netbeans.
> > >
> > >
> > > If I write my own grammer/dsl with JavaCC and my language contains a
> > > specific tag that marks the beginning and ending of an embedded language,
> > > lets say Java, does Netbeans automatically take Lexer, Parsers,
> > > CodeCompletion etc. from the embedded language?
> > >
> > >
> > > What I found out is that there are two possibilities. The first uses the 
> > > xml
> > > file for defining the start/end tag. The second way is the programmatical
> > > approach, I think using the Lexer class. Does anyone of you know a short
> > > example for both strategies? Are there any tutorials available? I would
> > > specially be interested in the xml approach Thanks.
> > >
> > >
> > > Gesendet vonOutlook für iOS
> > > -
> > > 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
> >
> >
> >
> >
> > -
> > 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
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> (mailto:users-unsubscr...@netbeans.apache.org)
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> (mailto:users-h...@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


Re: Can't create test for class

2023-01-08 Thread Eric Bresie
On Sat, Jan 7, 2023 at 9:07 PM Will Hartung  wrote:

> I have  maven javafx project. Java 17, NB 15. It's also a modular
> application with a module-info.
>

Might want to consider updating to NB 16...I believe some of the
functionality around some of this has improved a little bit.


> I try to create a test for a class, and all I get is an empty class. It
> has the JUnit imports, but no test methods. Just an empty class with an
> empty constructor. None of the methods.\
>

Did you use  File..."New Unit Test"?  In this case then each test has to be
manually added as desired.

Using the Netbeans...Tools..Create/Update Tests on the project for the
class creating placeholder tests to provide a wealth of test coverage. This
method tends to generate a lot of test coverage (most with "fails"
initially to force review and updates of each test to make sure it's
written for the true need of the unit test case.)

Also, I can't seem to add any of my classes to the generated class. Auto
> complete doesn't see any of the classes, and when I compile the test, it
> also complains it can not find the classes.
>

Have you tried any of the "hints" / "fixes" on the left gutter?  This often
times when hovered over will help with some basic fixes.

Maven projects tend to have additional "dependencies" listed in the Project
explorer.  Dependencies can be added in this context or can be manually
added in the pom.xml files

Be mindful it's important to have a good build of the dependency classes;
if there is some kind of problem compiling one of them (i.e. say a missing
dependency), then usage of that generated class may not work until such
time as it's been successfully built and available for use elsewhere.


> Yet, I created a simple JavaFX project, added a test to that, and it
> worked fine.
>
> I took my pom.xml from my project, and replaced the one from the simple
> project with it, and everything worked fine.
>
> So, I don't know what else I could check to see why the testing does not
> work for my project, but works for another with an identical pom file
> (barring the project name).
>

Is the new project also a Maven project or was it originally an "Ant"
project?  Netbeans treats these slightly differently and the project
explorer shows different things (i.e. in "ant projects" right clicking
allows configuring "Properties...Libraries''; with "maven projects" project
shows "Dependencies [including a "Test Dependencies]" to be leverage (right
clicking on the "Dependencies" here allows "Add Dependencies" which
reflects it here and will modify the pom.xml file at the same time).

Also, when trying to build, see if there are any clues in the Output pane
that may help provide some additional guidance.

Eric Bresie
ebre...@gmail.com


Re: Add server - file permission

2022-12-28 Thread Eric Bresie
As mentioned it’s a permissions problem.  The servers may need execution
and/or write permission to the folder which if you don’t have them it may
not work.

There’s always the documentation (1) (2) that may help

(1) https://tomcat.apache.org/tomcat-8.5-doc/setup.html
(2) https://tomcat.apache.org/tomcat-8.5-doc/RUNNING.txt



On Tue, Dec 27, 2022 at 12:54 PM Laszlo Kishalmi 
wrote:

> Well, if you do not have right to that directory, then just install Tomcat
> in your HOME directory. That would work fine.
> On 12/7/22 04:04, Amn Ojee Uw wrote:
>
> In my Debian 11, adding a server to Netbeans 15 requires that I add *the
> directory* '/opt/tomcat/bin', as the place where server is located I
> think 
> However, the file requires Authentication, is that the reason NB15 cannot
> accept the directory as the server directory location?
> Anyone know how to add Tomcat and GlassFish to NB15?
>
> Thanks in advance
>
> --
Eric Bresie
ebre...@gmail.com


Re: creating faces-config.xml

2022-10-02 Thread Eric Bresie
I suspect that is the JSF 1 flavor which may not have been updated with the
JSF 2 Flavor (2) and beyond (1) and may not fully be needed in more modern
usage (3)


References
(1) https://jakarta.ee/specifications/faces/
 (2) https://en.m.wikipedia.org/wiki/Jakarta_Server_Faces
(3)
https://stackoverflow.com/questions/7583038/what-is-the-use-of-faces-config-xml-in-jsf-2

Get Outlook for iOS <https://aka.ms/o0ukef>
--
*From:* Glenn Holmer 
*Sent:* Sunday, October 2, 2022 12:35:54 PM
*To:* users@netbeans.apache.org 
*Subject:* creating faces-config.xml

I created a new faces-config.xml from the NetBeans context menu for my
web app, but it contained this:

http://java.sun.com/dtd/web-facesconfig_1_1.dtd;>

Is this something that's just gotten overlooked over the years?

--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."


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

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

-- 
Eric Bresie
ebre...@gmail.com


Re: netbeans.info

2022-10-01 Thread Eric Bresie
Not sure but content looks like older stuff (if I was to guess 2006ish period) 
for community purposes. It mentions how

https://netbeans.info/sitemap.html

It looks Netbeans 6 details
https://netbeans.info/community/news.html

Seems to have had its domain updated earlier this year so assume someone is 
still managing it in some way.

https://www.whois.com/whois/netbeans.info

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On October 1, 2022 at 3:25:49 PM CDT, Glenn Holmer 
> mailto:ce...@protonmail.com.invalid)> wrote:
> What the heck is this?
>
> https://netbeans.info/
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> (mailto:users-unsubscr...@netbeans.apache.org)
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> (mailto:users-h...@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


Re: Re: NB 15 no linux installer anymore?

2022-09-21 Thread Eric Bresie
Is there any kind of issue for what’s wrong with the Linux installer?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On September 17, 2022 at 8:21:41 AM CDT, Neil C Smith  (mailto:neilcsm...@apache.org)> wrote:
> On Thu, 15 Sept 2022 at 17:34, Bradley Willcott  (mailto:optusprepa...@gmail.com)> wrote:
> > I have a 'Netbeans' directory in my user home directory. In it, I unpack
> > each new version into a version named directory,
> > (v12.6, v13, v14, 15, etc) and use a softlink named 'current' to point
> > to which ever version I wish to use. This is usually the latest.
> > My desktop has a '.desktop' file for Netbeans that points to the
> > 'current' version, and so requires no maintenance.
>
> I used a very similar setup myself for a long time. However,
> configuring the .desktop file is a bit of a pain for new users,
> particularly having a decent icon, no duplicates in dock, etc. In
> fact, problems with the .desktop file is one of numerous issues in the
> old .sh installer.
>
> > I have avoided using any of the Flatpak/Snap options as they are too
> > restrictive by nature. I prefer either the system installed
> > apps (via dnf) or to manually install them this way.
>
> But, would you install an rpm with dnf if it was provided?
>
> Incidentally, there is also an AppImage available, which doesn't have
> the restrictions of Flatpak and Snap, although desktop integration is
> a little hit and miss with them I find.
>
> Best wishes,
>
> Neil
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> (mailto:users-unsubscr...@netbeans.apache.org)
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> (mailto:users-h...@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


Re: Possibility of Netbeans supporting more languages

2022-09-20 Thread Eric Bresie
For example, regarding Python support…it’s in very early development but there 
is an in-work LSP based Python plugin available here.

https://github.com/ebresie/python4nb

And can always checkout other languages like those listed here

https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=148640090#content/view/148640090

Get Outlook for iOS

From: Geertjan Wielenga 
Sent: Tuesday, September 20, 2022 6:39:57 AM
To: Amn Ojee Uw 
Cc: László Kishalmi ; N ; 
Netbeans Apache Mailing List 
Subject: Re: Possibility of Netbeans supporting more languages

Take a look around at the apache.org website to see what it 
is about (i.e., all volunteer programmers, just like you; you want something, 
you build it).

Gj

On Tue, 20 Sep 2022 at 13:38, Amn Ojee Uw 
mailto:amnoje...@gmail.com>> wrote:
Well, isn't that the job of the Apache Netbeans.
The features requests is what users do.
If I have a request and Netbeans wants to include any of us in that teem, one 
could help. I love the suggestion of the OP, and respect the suggestion being 
offered. However, accepting that suggestion would require too much effort for a 
single developer; not only time wise, but also mental and physical, just to 
mention some. This kind of endeavours are better suited for a stablish company 
like Apache.
I'm offering my help, in case one of the developers need coffee or something 
from the kitchen :), 7 to 10 hour a week.
I truly hope Apache is not just reading this emails,  but also giving them the 
cerebral value they deserve.


On Tue., Sep. 20, 2022, 3:37 a.m. László Kishalmi, 
mailto:laszlo.kisha...@gmail.com>> wrote:
Well, pick a language and start writing the support for that. It's that simple.

On Tue, Sep 20, 2022, 00:22 N mailto:navin@gmail.com>> 
wrote:
Hello,

I was an ardent user of Netbeans from 2009 to around 2016, while using Java 
(and for a short while when using C++ and Python). I've even written about 
it,
 and linked to James Gosling's support for Netbeans.
The reason for mentioning this, is because current popular IDE's lack the 
usability that Netbeans has. There is a LOT of features that are very 
thoughtfully crafted, and has left me wishing it was there in other IDE's too. 
Problems with other IDE's:

  *   Intellij Idea: Too heavy on resources. Can't run it on my 2GB RAM, 
Celeron laptop.
  *   VS Code: The various view panels are inflexible in position and simple 
tasks that should have been easily runnable, are complex in accessibility and 
usage. Julia's plugin for VS Code makes it extremely slow to run Julia programs.
  *   Spyder: Poor support for refactoring.
  *   Sublime text: Unbelievably un-intuitive IDE. Need to Google search for 
how to do anything in it.
  *   Atom: Is already being sunsetted.
  *   Eclipse and LiClipse: Is kind of ok, but not as good as Netbeans.

It's not just me. When using Java, many of my juniors were also 
enthusiastically vocal in their preference for Netbeans. You've built a great 
IDE. If Netbeans could be streamlined to be lightweight, bug-free and if 
support for languages like Python, Julia, R and C++ is added/improved, and if 
Netbeans could be marketed more, it'd be a great help to the software community.

--
Regards,
Navin




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

2022-08-07 Thread Eric Bresie
FYI GitHub has a nice repository of gitignore files

https://github.com/github/gitignore/ 
(https://github.com/github/gitignore/tree/main)

Including for gradle 
https://github.com/github/gitignore/blob/main/Gradle.gitignore

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On August 6, 2022 at 11:29:50 PM CDT, Laszlo Kishalmi 
> mailto:laszlo.kisha...@gmail.com)> wrote:
>
> Well, really Gradle Wrapper is optional. It seems that the majority of the 
> users like that, so we do have Maven Wrapper as well now.
>
>
> On 8/6/22 19:25, Andreas Reichel wrote:
> > Thank you for the response.
> >
> > Looks like I don't need it because I never use Gradle Wrapper and always 
> > stick with the latest Gradle Version only.
> > (I actually wished there was an option to avoid Gradle Wrapper completely, 
> > there was never a Make or ANT wrapper for good. Downloading random stuff 
> > from the network outside of the OS' package manager still gives me shivers.)
> >
> > Cheers
> > Andreas
> >
> >
> > On Sat, 2022-08-06 at 18:52 -0700, Laszlo Kishalmi wrote:
> > >
> > > gradle/ folder (not the .gradle) usually the place to put additional 
> > > build logic, and if nothing else that's where Gradle places it's wrapper 
> > > gardle/wrapper/
> > >
> > >
> > >
> > > Make sure you add the gardle/wrapper/gradle-wrapper.jar along with the 
> > > grade/wrapper/gradle-wrapper.properties file. (Unless some policy 
> > > explicitly state otherwise) Although that is a binary file, that is java 
> > > the entry point of gradlew and gradlew.bat files. That would download the 
> > > correct Gradle if it is not installed on the system.
> > >
> > >
> > >
> > >
> > >
> > > On 8/5/22 17:54, Andreas Reichel wrote:
> > >
> > > >
> > > >
> > > > On Fri, 2022-08-05 at 17:52 -0700, Laszlo Kishalmi wrote:
> > > >
> > > > > while gradle/ folders
> > > > > shall be committed
> > > >
> > > >
> > > > Laszlo,
> > > >
> > > > thank you for advise, please care to elaborate. Why should it be there 
> > > > when it can be rebuild on demand? What is the advantage of tracking it 
> > > > and the disadvantage of dismissing it?
> > > > Sorry to bother you, I just would like to learn.
> > > >
> > > > Cheers
> > > > Andreas
> > >
> > >
> >
> >


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

2022-08-03 Thread Eric Bresie
Think there have been some changes in Gradle around compile and implementation 
(1). May depend on what version of Gradle is in use as well.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

(1) https://tomgregory.com/gradle-implementation-vs-compile-dependencies/

> On August 2, 2022 at 1:46:54 AM CDT, Owen Thomas  (mailto:owen.paul.tho...@gmail.com)> wrote:
> And restarting NetBeans (after rebooting my laptop) seems to have cleared the 
> PeerDevice project of its rash. Now to include the remainder of the 
> projects...
>
> On Tue, 2 Aug 2022 at 16:23, Owen Thomas  (mailto:owen.paul.tho...@gmail.com)> wrote:
> > Hey Laszlo.
> >
> > Sorry for not doing as you have asked, but while you were probably 
> > composing your message, my Gradle project built!
> >
> > I don't know if that means that I'm good - (it usually doesn't) I need to 
> > add a lot more subprojects to the root project - but all I did was to 
> > change CliqueSpace/PeerDevice/build.gradle from:
> >
> > description = 'PeerDevice'
> >
> > dependencies {
> > compile project(':Concept')
> > }
> >
> > to:
> > description = 'PeerDevice'
> >
> > dependencies {
> > implementation project(':Concept')
> > }
> >
> > NetBeans is still telling me that the source code within the PeerDevice 
> > project is not compiling. Perhaps there is a caching problem. (?)
> >
> > I hope I'm on to something. If perhaps I'm not, then please let me know. 
> > This might also give you more information about the problem I'm having and 
> > equip you or others with more pointers.
> >
> > Owen.
> >
> > On Tue, 2 Aug 2022 at 15:50, Laszlo Kishalmi  > (mailto:laszlo.kisha...@gmail.com)> wrote:
> > >
> > > Well, I've done and see a few dozen of Gradle builds, though this sounds 
> > > alien to me. If you could share your project structure (main folders and 
> > > their build.gradle files, maybe we can help sort this thing out.
> > >
> > >
> > > On 8/1/22 22:39, Owen Thomas wrote:
> > > > While I've been doing other things, I have come to the conclusion that 
> > > > I need something, possibly in my build.gradle file of the Concept 
> > > > project, that refers to the Groovy method "compile". Perhaps I will 
> > > > need to start here.
> > > > On Tue, 2 Aug 2022 at 14:02, Jason Abreu  > > > (mailto:jace.ab...@gmail.com)> wrote:
> > > > > When I converted about 30 projects from Any to Gradle, including 
> > > > > multiple multi-project builds, I noticed a few peculiar things.
> > > > >
> > > > > Firstly, NetBeans gets a background task hung up every now and then. 
> > > > > The only solution for this was to exit NetBeans then find the hung up 
> > > > > task and kill it. Once NetBeans restarted, the project scanning 
> > > > > worked as expected once more.
> > > > >
> > > > > Secondly, I have noticed that the Gradle dependency cache can get 
> > > > > stale and not refresh from repositories. For this I would execute the 
> > > > > Gradle build task with the "--refresh-dependencies" (or something 
> > > > > like that) option to force Gradle to pull a fresh copy of the 
> > > > > dependencies from the repositories.
> > > > >
> > > > > Hope this helps! I still consider myself new-ish to Gradle. I do find 
> > > > > most of the support I need there in the NetBeans IDE for it, though. 
> > > > > However, my complaints about NetBeans relate to their lack of Jakarta 
> > > > > EE 9 support, so far - but that's not anything to do with Gradle.
> > > > >
> > > > > --Jason
> > > > > On Mon, Aug 1, 2022, 22:59 Owen Thomas  > > > > (mailto:owen.paul.tho...@gmail.com)> wrote:
> > > > > > Hello again. I am perplexed at the following problem.
> > > > > >
> > > > > > I have a multi-project build in a directory named "CliqueSpace". 
> > > > > > It's build.gradle file has the following:
> > > > > >
> > > > > > subprojects {
> > > > > > apply plugin: 'java'
> > > > > >
> > > > > > repositories {
> > > > > > mavenCentral()
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > The settings.gradle file or the same dire

Test Coverage and Test Creation in Netbeans

2022-06-10 Thread Eric Bresie
As I start working on my Netbeans plug-in I began to realize there is probably 
a significant lack of test coverage in the project.

Are there any good plugins maybe or maven plugins to help with test coverage?

And for areas where there isn’t much coverage, how is the best way in Netbeans 
to generate one (place holder really to - like in class can you introduce 
code/refactor selecting methods to add such placeholders?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)



unpack2000 (Re: Beans Binding ())

2022-06-05 Thread Eric Bresie
This got me thinking about the need/current state of unpack200/pack200 (1)…

When creating nbm some (mainly older say Netbeans 8.x timeframe nbm)
leveraged pack200 in attempts to save space.

In more recent JDK versions in/pack200 capabilities were remove (2) as of
JDK 14.

I workaround was identified and a way to locate existing unpack was
implemented (3) which required selecting the location of a pre-jdk14
version of unpack200 executables.

There was other discussions/issue about this (4) prior to (3), during which
finding alternatives was suggested like a forked version of the
pack/unpack200 or leveraging Apache common compression.

However each of these needed some work.  I believe at the time:
- There where no dependency artifacts available for using the fork and
- The Apache compress while it did add functionality based on Apache
harmony JDK, it was not compatible with newer unpack200 handling which
would require further updates

So in summary is  it worth reviving this effort to allow support.  If there
is user interest I can move this over to the dev mailing list if preferred.

(1) https://en.m.wikipedia.org/wiki/Pack200
(2) https://openjdk.java.net/jeps/367
(3) https://github.com/apache/netbeans/pull/2317
(4)
https://issues.apache.org/jira/browse/NETBEANS-2842

On Sun, Jun 5, 2022 at 9:09 AM Ernie Rael  wrote:

>
> I also wrote a script that repackages an nbm so that unpack200 isn't
> required.
>
-- 
Eric Bresie
ebre...@gmail.com


Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Eric Bresie
Curious, when running Netbeans when selecting Tools…Java Platforms and setting 
a default should that set the JDK home in the config file at the same time?

Get Outlook for iOS

From: Juan Algaba 
Sent: Tuesday, May 24, 2022 11:37:27 AM
To: Michael Bien 
Cc: Stroud Custer ; Netbeans User Mailing List 

Subject: Re: Netbeans with Snap packaged OpenJDK

Do note, that in order to edit netbeans.conf you won't be able to edit
the one inside the snap, you need to make a local copy in your user
folder using a specific folder structure that mirrors the snap, and
then edit that:
https://stackoverflow.com/questions/58825429/how-to-configure-netbeans-when-installed-as-snap-package#answer-61498091
(not sure if the SO answer is up to date with the current netbeans
snap folder structure, I´ll check when I get home)

On Tue, May 24, 2022 at 1:40 AM Michael Bien  wrote:
>
> the snap packages are no official packages they are provided by the community.
>
> but in general:
> netbeans/etc/netbeans.conf has the property "netbeans_jdkhome" which you can 
> use to tell NetBeans which JDK it should run on. I don't know much about snap 
> so this might work differently there since the point is to keep software 
> somewhat encapsulated.
>
> another thing which can go wrong:
> some distributions use different layouts for JDKs and might not have 
> everything included. The safest way to run NetBeans is to use a JDK 
> downloaded from your favorite java dealer (oracle, temurin, zulu... etc). 
> Thats how NetBeans is tested before release.
>
> having the "java" command working is not sufficient to run NetBeans, the IDE 
> has to know where the full JDK is.
>
> regards,
> michael
>
> On 24.05.22 03:13, Stroud Custer wrote:
>
> I just installed Netbeans and OpenJDK onto by Kubuntu 22.04 LTS.  For some 
> reason the required aliases to map openjdk.java to java, etc.  were not 
> created when OpenJDK was installed.  I created the aliases found in the file 
> /var/snap/openjdk/common/openjdk.env. Typing "java", "javac", "jar" into a 
> command line now produces the expected results.  However when in attempt to 
> invoke Netbeans, it complains that it can't find java  and that the 
> --jdk-home option should be used.  I've tried several variations of this 
> /snap/bin, etc. but I still get the "can't find java" message.
>
> Has anybody else encountered this problem, or know of any easy installation 
> that will get me jdk that netbeans recognizes?
>
>
>
>


--
- Juan Algaba

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

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



Re: Re: Netbeans 8.2 download link

2022-03-13 Thread Eric Bresie
Have you tried NB 13 yet? I’ve not tried it specifically, but recent Apache 
Netbeans releases, there has been some work to provide basic C/C++ (lite) 
functionality and to integration previous (CND) upport into the mainline IDE 
itself.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On March 3, 2022 at 5:43:40 PM CST, Jonathan Bergh  (mailto:bergh.jonat...@gmail.com)> wrote:
> hi Brad,
>
> Thanks a lot - yes unfortunately I'm on Windows (for work purposes, not 
> preference) and after quite a bit of searching was unable to find anything 
> precompiled available. If only we could all run *nix.
>
> Cheers
> Jon
>
>
> On Fri, Mar 4, 2022 at 4:51 AM Bradley Willcott  (mailto:optusprepa...@gmail.com)> wrote:
> > Hi Jonathon.
> > I am running Fedora Linux (34). I installed 'ccls' using the 'dnf' package 
> > installer, collecting it from the '@fedora' repository.
> > For MSWin I suppose you will have to do some searching, unless some else on 
> > this list can help there.
> >
> > Regards,
> > Brad.
> >
> > On 3/3/22 17:51, Jonathan Bergh wrote:
> > > Hi Brad,
> > >
> > > Thanks a lot - appreciate that advice.
> > >
> > > I actually tried that route previously, but started having strange issues 
> > > with my gradle based projects not long after that (previously working 
> > > projects would not load, even after clearing the cache etc). I am not 
> > > sure whether that was related to the gradle stuff itself or funny things 
> > > happening from updates from older plugin centers (really not sure, i have 
> > > no insight / experience into how it all works), but I ended up doing a 
> > > clean install to get everything running again.
> > >
> > > regarding the ccls approach - do you still need to compile your own 
> > > language server, or are their prebuilt binaries available now?
> > >
> > > best regards
> > > jonathan
> > >
> > >
> > > On Thu, Mar 3, 2022 at 9:30 PM Bradley Willcott  > > (mailto:optusprepa...@gmail.com)> wrote:
> > > > Hi Jonathon.
> > > > You may not know that NB12+ can be used for both C and C++ development.
> > > >
> > > > Go to "Tools/Plugins"
> > > > Select "Settings", then Activate "Netbeans 8.2 Plugin Portal"
> > > > Select "Updates" and press [Check for Updates]
> > > > Select "Available Plugins" and press [Check for Newest]
> > > >
> > > > Then scroll down and look for "C/C++" - select and install this plugin.
> > > > You might also want to select and install "CPPLite Kit" as well.
> > > > This last one will require "ccls" to be installed on your system.
> > > >
> > > > Hope this helps.
> > > > Brad.
> > > >
> > > > On 2/3/22 10:50, Jonathan Bergh wrote:
> > > > > hi all,
> > > > >
> > > > > just wondering if anyone has / knows the (a) link for the old Oracle
> > > > > Netbeans 8.2 download. I know there is any floating around, but the
> > > > > one on the Apache Netbeans pre-Apache page currently redirects to a
> > > > > dead end.
> > > > >
> > > > > Needed because of the C++ capabilities.
> > > > >
> > > > > Thanks in advance
> > > > > Regards
> > > > > Jon
> > > >
> >


File Locator API

2022-03-13 Thread Eric Bresie
Is there a standardized API available in the Nb platform / IDE code base for 
use in finding specific files/tools of given type?
Or does FileObject.getFileObject (1) provide this presently (and efficiently)?

Reference
(1) 
http://bits.netbeans.org/dev/javadoc/org-openide-filesystems/org/openide/filesystems/FileObject.html#getFileObject-java.lang.String-boolean-
 .

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)



Re: Apache NetBeans Language Server Extension for VS Code

2022-03-12 Thread Eric Bresie
Short answer. No

Longer answer: Netbeans extension for VS Code provides Netbeans Java IDE 
functionality via LSP interfaces.

LSP is a way of providing a standardized support for new languages across 
editors. So this uses Netbeans LSP implementation for use in Visual Studio Code

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On March 10, 2022 at 11:55:45 AM CST, Bradley Willcott 
> mailto:optusprepa...@gmail.com)> wrote:
> Hi guys.
> I just came across this extension:
>
> "This is a technology preview of Apache NetBeans (http://netbeans.org/) based 
> extension for VS Code. Use it to get all the goodies of NetBeans via the VS 
> Code user interface! Runs on JDK8[*] and all newer versions.
>
> Apache NetBeans Language Server brings full featured Java development 
> (edit-compile-debug & test cycle) for Maven and Gradle projects to VSCode. As 
> well as other features."
>
>
>
> The above quoted text was copied from the web page: Language Server - Apache 
> Software Foundation 
> (https://marketplace.visualstudio.com/items?itemName=ASF.apache-netbeans-java=false#overview)
>
>
> Is this the direction for Netbeans? Is it to become a mere VS Code extension?
>
>
> Brad.
>
>
>
>
>
>



Bundle / Message Attributes - Annotations vs File Base

2022-03-12 Thread Eric Bresie
While working on Netbean Plugin project, I noticed in multiple examples of
code, that some code Netbean code leverage "file based" bundle files and
elsewhere leverages "Annotation" based code which results (from what I see)
in some "auto generated" files being created.

WIth that in mind, can anyone identify any tutorials, documentation, best
practices, etc.  on the preferred way of this?

Assume usage is to basically have "properties" (based on a bundle
attribute) for use throughout the code.  So how should these be defined (in
what context), how should these be loaded/retrieved (i.e. load from file,
initialized [static or otherwise]), and how should they be references (i.e.
"get bundle attribute x"  for use in code)?

Eric Bresie
ebre...@gmail.com


Re: NB & Eclipse about jar files

2022-03-05 Thread Eric Bresie
What are you trying to accomplish? Run (within the IDE or external to the
IDE), decompile or peak into, or add as a dependency?

There is always the basics:
https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html

Jars package compiled java code for use in valid installed java runtime
platforms (Windows, Linux, MacOS).

When running jars, the normal expectations are to
(1) Java Runtime Environment (JRE) at a minimum although a Java Development
Kit (JDK) is also possible.  Do you have a compatible JRE or JDK
installed?  Assume you do, if able to run Netbeans
(2) Classpath is defined to help locate the jar.  This can be done by
setting a Classpath environment variable (either global, user, or via
"batch" or "shell script") or passed on command line with an applicable
parameter (i.e. -cp).  Without this, it may not be able to "find the jar"
to work with.  Classpath settings may also be different depending on where
and when your running things.
(3) In Windows it may be configured to right click and run as Java type
usage.  Something similar on Linux maybe possible.  Otherwise,  that usage
of basic shell/command prompt based execution is normally in a java -jar
 with maybe a -cp and maybe calling out the "main class" to be
used to execute

If you are talking about something else in Netbeans like
(1) Expanding the compressed zip to see inside,  Should be able to do so
within the Project view and drill down where applicable.
(2) Run it from the IDE, the IDE normally runs things based on code
associated with a "main java source" and applicable source based.  In some
cases (i.e. like maven project) it is possible to use the "build tool" to
tell it to run.
(3) Dependencies within the IDE: This depends on the type of project (i.e.
ant, maven, Eclipse project, Netbeans Project, etc.) which each have there
own way of handling dependencies.

Hope some of this helps.

Eric Bresie
ebre...@gmail.com


On Fri, Mar 4, 2022 at 10:16 AM Amn Ojee Uw  wrote:

> I have recently have done a major shift as a developer, I switch from MS
> to Debian 11 and as they say "New year, new life". So, I've also changed my
> developing platform to NetBeans 12.x from Eclipse. I have realized that the
> jar files produced by Eclipse are not desirable by  NB 12.x.
> Is this the norm? Should I always assume that  Eclipse produced jar files
> will not run on NetBeans?
>
> As a personal note, let me say that this issue must not exist; "Write
> once, run anywhere"?
>
> Perhaps, someone here could point out a document on the net that addresses
> this issue.
>
>
> Thanks in advance.
>


Re: Using the LSP server

2022-02-04 Thread Eric Bresie
May want to check out the following:

https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support

Also can reach out to the d...@netbeans.apache.org for more help.

Eric Bresie
ebre...@gmail.com


On Tue, Oct 26, 2021 at 7:08 AM Joo  wrote:

> Hello!
>
> Netbeans has a LSP server extension for VS Code. Is it possible to use the
> Netbeans LSP server from other text editors that have a LSP client? For
> example, the Eclipse LSP server for java can be easily used from emacs and
> vim editors. I guess that this is also possible for Netbeans, but I've no
> idea how to start its LSP server.
>
> Best regards,
> Joo
>
>


Re: Installing C/C++ 8.2 in NB 12.6

2022-02-04 Thread Eric Bresie
In more recent JDKs, the pack200 has been removed from the JDK itself as of
JDK 14 I believe (see https://openjdk.java.net/jeps/367).  As such, it may
be necessary to locate another earlier version (maybe JDK 11 or 8 the
previous Long Term releases) of the JDK where the unpack200 is still
present.  Once selected, I believe it should be possible to unpack and
install things.

Eric Bresie
ebre...@gmail.com




On Mon, Jan 24, 2022 at 3:58 AM Jonathan Bergh 
wrote:

> hi,
>
> I was wondering whether anyone had any tips on how to solve the following
> - I saw on the mailing list that someone (cant remember who) was using the
> old NB 8.2 C/C++ plugin with one of the new Apache NB releases.
>
> I would like to do the same.
>
> I have configured the 8.2 plugin repo and clicked install on the C/C++
> module, which downloads, and partially installs, but then fails when trying
> to "validate" the modules. There is an option to locate Unpack200 manually,
> otherwise clicking OK appears to hang the install.
>
> Does anyone have any tips on how to get this plugin installed?
>
> Thanks a lot in advance
> ᐧ
>


Re: Upgrading Dependencies when new Netbean Releases

2022-02-04 Thread Eric Bresie
Apparently for maven projects, there is a "settings.xml" file (in my case
found in my user home's .m2 folder) which defines the netbeans-ide platform
profile and where it is located.

Eric Bresie
ebre...@gmail.com


On Sun, Jan 16, 2022 at 10:06 AM Eric Bresie  wrote:

> Looking in the console during attempted run I do see..
>
> --- nbm-maven-plugin:4.6:run-ide (default-cli) @ python ---
> Configuring mojo
> org.apache.netbeans.utilities:nbm-maven-plugin:4.6:run-ide from plugin
> realm ClassRealm[plugin>org.apache.netbeans.utilities:nbm-maven-plugin:4.6,
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@4e0e2f2a]
> Configuring mojo
> 'org.apache.netbeans.utilities:nbm-maven-plugin:4.6:run-ide' with basic
> configurator -->
>   (f) clusterBuildDir =
> C:\git\netbeans-python\python\target\netbeans_clusters
>   (f) netbeansInstallation = C:\Program Files\NetBeans-12.5\netbeans
>   (f) netbeansUserdir = C:\git\netbeans-python\python\target\userdir
> -- end configuration --
>
> Where does the "netbeansInstallation" get set?
>
> Is there a new "nb-maven-plugin" beyond 4.6 associated with the 12.6 build?
>
> Eric Bresie
> ebre...@gmail.com
>
>
> On Sun, Jan 16, 2022 at 10:02 AM Eric Bresie  wrote:
>
>> I only updated the netbeans specific dependencies which previously
>> referenced "125" and no other dependencies.  Is it possible some other
>> dependencies not references with 125 are needing updates as well and if so,
>> is there an easy way to determine what else may need to be updated?
>>
>> I'm running on Windows 10 and JDK 15 ( not sure why I haven't updated the
>> JDK in use recently but maybe I should and/or downgrade to an older one
>> [JDK 11 or 8 maybe]).
>>
>> In addition to the "Netbean showing the 12.5 version", I also get
>> messages like the following:
>>
>> Warning - could not install some modules:
>> My Editor - The module Progress API was requested in version >= 1.62 but
>> only 1.61 was found.
>> My Editor - The module UI Utilities API was requested in version >= 7.82
>> but only 7.81 was found.
>> My  Editor - The module External Execution API was requested in version
>> >= 1.63 but only 1.62 was found.
>> My Editor - The module MultiView Windows was requested in version >= 1.58
>> but only 1.57 was found.
>> My Editor - The module Options Dialog and SPI was requested in version >=
>> 1.59 but only 1.58 was found.
>> My Editor - The module File Templates was requested in version >= 1.22
>> but only 1.21 was found.
>> My Editor - The module Dialogs API was requested in version >= 7.56 but
>> only 7.55 was found.
>> My Editor - The module Common Annotations was requested in version >=
>> 1.42 but only 1.41 was found.
>> My Editor - The module File System API was requested in version >= 9.26
>> but only 9.25 was found.
>> My Editor - The module Lookup API was requested in version >= 8.48 but
>> only 8.47 was found.
>> My  Editor - The module Utilities API was requested in version >= 9.22
>> but only 9.21 was found.
>> My Editor - The module TextMate Lexer was requested in version >=
>> 1.14.0.1 but only 1.13.0.1 was found.
>> My Editor - The module Filesystems NetBeans Client was requested in
>> version >= 9.24 but only 9.23 was found.
>> My Editor - The module Module System API was requested in version >= 7.62
>> but only 7.61 was found.
>> My Editor - The module Text API was requested in version >= 6.82 but only
>> 6.81 was found.
>> My Editor - The module Editor Indentation was requested in version >=
>> 1.57 but only 1.56 was found.
>> My Editor - The module Datasystems API was requested in version >= 7.84
>> but only 7.83 was found.
>> My Editor - The module Nodes API was requested in version >= 7.59 but
>> only 7.58 was found.
>> My Editor - The module LSP Client was requested in version >= 1.13.0.1.1
>> but only 1.12.0.1.1 was found.
>> My Editor - The module Lexer was requested in version >= 1.77.0.1 but
>> only 1.76.0.1 was found.
>> My Editor - The module LSP APIs was requested in version >= 1.6 but only
>> 1.5 was found.
>> My Editor - The module Project API was requested in version >= 1.82 but
>> only 1.81 was found.
>> My Editor - The module External Execution Base API was requested in
>> version >= 1.20 but only 1.19 was found.
>>
>> I've tried downloading dependencies, cleaning and rebuilding but still no
>> luck.
>>
>> Is there a specific property somewhere that specifies the netbean
>

Re: Updating an Old Plugin and Having Issues

2022-01-29 Thread Eric Bresie
Assume this may have to do with the module's public/private/friend API
(i.e. if not accessible may appear missing).  May want to check out some of
the references below.

(1) https://netbeans.apache.org/wiki/API_Design.asciidoc
(2)
https://cwiki.apache.org/confluence/display/NETBEANS/Public+vs+Friend+API
(3) https://www.mail-archive.com/dev@netbeans.apache.org/msg09274.html

Eric Bresie
ebre...@gmail.com


On Thu, Jan 27, 2022 at 10:19 PM Peter Blemel  wrote:

> Sean,
>
> I'm back to working on my old platform applications ... I have a form
> using AbsoluteLayout.  When I try to edit it, it throws the following.  The
> work around is to pick another layout other than Absolute, but I'm curious
> whether you've had any more luck with that module?
>
> Thanks,
> Peter
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused by:
> 
> From: Peter Blemel 
> Sent: Wednesday, January 19, 2022 1:27 AM
> To: d...@netbeans.apache.org ; NetBeans Mailing
> List 
> Subject: Re: Updating an Old Plugin and Having Issues
>
> I'm making a little progress on this.  When compiling a different,
> unrelated module, I was getting the following error:
>
> The module C:\Program
> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
> no public packages and so cannot be compiled against
>
> I assume that in your case, the lack of any public packages is why you
> can't find the FormEditorSupport class. In my case, I found an offending
> module of mine that was depending on the "Form Editor" module for no reason
> that I can remember. My application doesn't edit Forms and I don't recall
> ever having any such dependency.  I removed the dependency, and am no
> longer getting any errors related to the org.netbeans.modules.form module.
>
> Does your application edit forms?  I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>
> Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As
> for my application, it now launches in 12.6 .  My application startup,
> custom project type, and custom file types all seem to be working, which is
> encouraging.  My menus are not arranged the way that they were previously,
> which probably has something to do with the layers.
>
> Unfortunately, when I open one of my files the TopComponent briefly shows
> and then disappears.  I set breakpoints in both componentShowing() and
> componentClosed().  The debugger stops in both, so some kind of error must
> be silently causing my TC to close.  Unfortunately, there's nothing in the
> logs.
>
> I guess I need to go work through the latest MultiView tutorial and see if
> something has changed that I need to be aware of.
>
> I hope you're also making progress.
>
> Cheers,
> Peter
>
> 
> From: Peter Blemel 
> Sent: Tuesday, January 18, 2022 10:59 AM
> To: d...@netbeans.apache.org ; NetBeans Mailing
> List 
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Just to be clear, I am working in Netbeans 12.6 on both computers.
> Absolute Layout works at home, but at my office it throws
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.add

Re: adding tomcat server location as enviornment variable

2022-01-22 Thread Eric Bresie
Do you mean system/user environment variables like this
https://www.decodejava.com/how-to-set-environment-variables-for-tomcat.htm
 or this
https://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/
?

On Thu, Jan 20, 2022 at 1:37 PM Mar R  wrote:

> Hello, I'm on windows, can't find, or if is even possible, how to add a
> tomcat server location (cataline home and/or catalina base) using env
> variable, so when I update tomcat i just have to update env var and
> netbeans will just get the new version
>
-- 
Eric Bresie
ebre...@gmail.com


[Compatibility Page] Re: Re: Offline Install of Netbeans on JDK 8 (with nb-javac)

2022-01-22 Thread Eric Bresie
Is there a reference page someplace to show Netbeans compatibilities? Something 
like:

Netbeans version, Minimum JDK
Netbeans 13, JDK 11
Netbeans 12.6, JDK 8

Could also have other dependency columns as well if wanted to expand further on 
some dependencies (i.e. maven, ant, git, etc.)

Or would the Release page for given release be an alternative?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 14, 2022 at 6:34:06 PM CST, Brad K.  (mailto:zel...@gmail.com)> wrote:
> Ah, well then... looks like we're in for some fun with our security
> folks. ;)
>
> On 1/7/2022 3:05 AM, Neil C Smith wrote:
> > On Fri, 7 Jan 2022 at 01:17, Brad K.  > (mailto:zel...@gmail.com)> wrote:
> > > Our security folks generally require approval of major release versions;
> > > i.e., 12.x, 13.x, etc. They don't look at content changes in general.
> >
> > Please re-read what I said, or you're going to be banging heads with
> > your security folks every 3 months. There will be no 13.x.
> >
> > Releases in 2021 : 12.3 12.4 12.5 12.6
> > Releases in 2022 : 13 14 15 16 (tel:13%2014%2015%2016)
> >
> > Netbeans doesn't have major and minor releases. The fact that the
> > numbering scheme incorrectly gave people that impression is one reason
> > it's changing.
> >
> > Best wishes,
> >
> > Neil
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> (mailto:users-unsubscr...@netbeans.apache.org)
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> (mailto:users-h...@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


Re: Re: Offline Install of Netbeans on JDK 8 (with nb-javac)

2022-01-22 Thread Eric Bresie
With this thread in mind….

So is there good documentation on the netbean launcher parameter/arguments? In 
other words, I recall one parameter to passing JDK.home defining the JDK 
location but are there others that may help here?

Is there maybe a new feature needed to add some of these configuration 
parameters to help in offline setup/configuration if the don’t exists?

Maybe some sort parameters like:
- “activatemodules” (which could be one or many),
- “install a module”,
- “setup directory” (where “to be installed” directories can be defined), etc.

Or would configurations of some of these manually in the etc/netbean.properties 
file help?

By the way did the nb-javac get pulled down? See 
https://github.com/oracle/nb-javac

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 21, 2022 at 10:11:34 PM CST, Geertjan Wielenga 
>  (mailto:geertjan.wiele...@googlemail.com.invalid)> wrote:
> No, that is what you’re going to be doing.
>
> Thanks,
>
> Gj
>
> On Sat, 22 Jan 2022 at 03:15, Brad K.  (mailto:zel...@gmail.com)> wrote:
> > Gj --
> >
> > I'd be happy to.
> >
> > Could you please verify that the procedure I'm performing (see a
> > previous post in this thread) should work?
> >
> > Thanks!
> >
> > Brad
> >
> > On 1/21/2022 1:56 AM, Geertjan Wielenga wrote:
> > > Brad,
> > >
> > > Please find the recent thread by Neil "[NOTICE] Apache NetBeans 13
> > > release candidate 1 available for testing".
> > >
> > > Download the rc-1 and see if that solves your problem.
> > >
> > > We need feedback on this, please, not after the release is done, but
> > > now, before the release, so that we can fix what needs fixing.
> > >
> > > Gj
> > >
> > > On Sun, Jan 16, 2022 at 9:23 PM Michael Bien  > > (mailto:mbie...@gmail.com)
> > > <mailto:mbie...@gmail.com>> wrote:
> > >
> > > filing an issue would be pointless since as Geerjan already mentioned,
> > > the next version will have nb-javac installed by default - so you could
> > > close that issue right away.
> > >
> > > Several options, like for example: upgrading the JDK itself (which
> > > would
> > > be the easiest) were already provided.
> > >
> > > best regards,
> > >
> > > michael
> > >
> > >
> > > On 16.01.22 20:18, Brad K. wrote:
> > > > So, anyone have any idea what I'm doing wrong? (See my previous post
> > > > -- can't figure out how to reply to my own post and have it actually
> > > > show up on the list.)
> > > >
> > > > If I'm not doing anything wrong, should I open a bug/issue?
> > > >
> > > > Thanks,
> > > >
> > > > BK
> > > >
> > > > On 12/31/2021 1:43 PM, Geertjan Wielenga wrote:
> > > >> You’ll have to provide complete instructions, step by step, for
> > > >> someone to reproduce the situation.
> > > >>
> > > >> Gj
> > > >>
> > > >> On Fri, 31 Dec 2021 at 20:41, Brad K.  > > >> (mailto:zel...@gmail.com)
> > > <mailto:zel...@gmail.com>
> > > >> <mailto:zel...@gmail.com <mailto:zel...@gmail.com>>> wrote:
> > > >>
> > > >> I have no choice in the Java version; as I said, I'm working
> > > for the
> > > >> gov't and they have to decide to move forward; I have no say
> > > in the
> > > >> matter.
> > > >>
> > > >> As for nb-javac, I'm struggling here.
> > > >>
> > > >> Could you point me to the correct link/location for the correct
> > > >> "nb-javac" to download?
> > > >>
> > > >> I can't get Netbeans to quit asking me to install nb-javac on my
> > > >> network
> > > >> disconnected Windows installation even after installing the
> > > plugin.
> > > >>
> > > >> Thanks,
> > > >>
> > > >> BK
> > > >>
> > > >> On 12/25/2021 3:17 PM, Geertjan Wielenga wrote:
> > > >> > Download nb-javac at home where you have Internet, put it
> > > on a
> > > >> usb
> > > >> > stick, take the usb stick to work, upload nb-javac into your
> > > >> > environment, then install it via the Plugin Manager.
> > > >> >
> > > >> > Or use a later version of the JDK where 

Re: Upgrading Dependencies when new Netbean Releases

2022-01-16 Thread Eric Bresie
Looking in the console during attempted run I do see..

--- nbm-maven-plugin:4.6:run-ide (default-cli) @ python ---
Configuring mojo org.apache.netbeans.utilities:nbm-maven-plugin:4.6:run-ide
from plugin realm
ClassRealm[plugin>org.apache.netbeans.utilities:nbm-maven-plugin:4.6,
parent: jdk.internal.loader.ClassLoaders$AppClassLoader@4e0e2f2a]
Configuring mojo
'org.apache.netbeans.utilities:nbm-maven-plugin:4.6:run-ide' with basic
configurator -->
  (f) clusterBuildDir =
C:\git\netbeans-python\python\target\netbeans_clusters
  (f) netbeansInstallation = C:\Program Files\NetBeans-12.5\netbeans
  (f) netbeansUserdir = C:\git\netbeans-python\python\target\userdir
-- end configuration --

Where does the "netbeansInstallation" get set?

Is there a new "nb-maven-plugin" beyond 4.6 associated with the 12.6 build?

Eric Bresie
ebre...@gmail.com


On Sun, Jan 16, 2022 at 10:02 AM Eric Bresie  wrote:

> I only updated the netbeans specific dependencies which previously
> referenced "125" and no other dependencies.  Is it possible some other
> dependencies not references with 125 are needing updates as well and if so,
> is there an easy way to determine what else may need to be updated?
>
> I'm running on Windows 10 and JDK 15 ( not sure why I haven't updated the
> JDK in use recently but maybe I should and/or downgrade to an older one
> [JDK 11 or 8 maybe]).
>
> In addition to the "Netbean showing the 12.5 version", I also get messages
> like the following:
>
> Warning - could not install some modules:
> My Editor - The module Progress API was requested in version >= 1.62 but
> only 1.61 was found.
> My Editor - The module UI Utilities API was requested in version >= 7.82
> but only 7.81 was found.
> My  Editor - The module External Execution API was requested in version >=
> 1.63 but only 1.62 was found.
> My Editor - The module MultiView Windows was requested in version >= 1.58
> but only 1.57 was found.
> My Editor - The module Options Dialog and SPI was requested in version >=
> 1.59 but only 1.58 was found.
> My Editor - The module File Templates was requested in version >= 1.22 but
> only 1.21 was found.
> My Editor - The module Dialogs API was requested in version >= 7.56 but
> only 7.55 was found.
> My Editor - The module Common Annotations was requested in version >= 1.42
> but only 1.41 was found.
> My Editor - The module File System API was requested in version >= 9.26
> but only 9.25 was found.
> My Editor - The module Lookup API was requested in version >= 8.48 but
> only 8.47 was found.
> My  Editor - The module Utilities API was requested in version >= 9.22 but
> only 9.21 was found.
> My Editor - The module TextMate Lexer was requested in version >= 1.14.0.1
> but only 1.13.0.1 was found.
> My Editor - The module Filesystems NetBeans Client was requested in
> version >= 9.24 but only 9.23 was found.
> My Editor - The module Module System API was requested in version >= 7.62
> but only 7.61 was found.
> My Editor - The module Text API was requested in version >= 6.82 but only
> 6.81 was found.
> My Editor - The module Editor Indentation was requested in version >= 1.57
> but only 1.56 was found.
> My Editor - The module Datasystems API was requested in version >= 7.84
> but only 7.83 was found.
> My Editor - The module Nodes API was requested in version >= 7.59 but only
> 7.58 was found.
> My Editor - The module LSP Client was requested in version >= 1.13.0.1.1
> but only 1.12.0.1.1 was found.
> My Editor - The module Lexer was requested in version >= 1.77.0.1 but only
> 1.76.0.1 was found.
> My Editor - The module LSP APIs was requested in version >= 1.6 but only
> 1.5 was found.
> My Editor - The module Project API was requested in version >= 1.82 but
> only 1.81 was found.
> My Editor - The module External Execution Base API was requested in
> version >= 1.20 but only 1.19 was found.
>
> I've tried downloading dependencies, cleaning and rebuilding but still no
> luck.
>
> Is there a specific property somewhere that specifies the netbean platform
> to be used?
>
> I see the "Set Configuration" with "default config", "netbeans-ide", and
> "release" but using these don't seem to help either.
>
> Eric Bresie
> ebre...@gmail.com
>
>
> On Sun, Jan 16, 2022 at 9:46 AM Eric Bresie  wrote:
>
>> I have been working on a Maven Netbeans module project in Netbeans which
>> has many Netbean specific dependencies.  I started this with Netbeans 12.5
>> based dependencies and all seemed to work well.
>>
>> When Netbeans 12.6 came out I figured I would upgrade the dependencies to
>> be compatibl

Re: Upgrading Dependencies when new Netbean Releases

2022-01-16 Thread Eric Bresie
I only updated the netbeans specific dependencies which previously
referenced "125" and no other dependencies.  Is it possible some other
dependencies not references with 125 are needing updates as well and if so,
is there an easy way to determine what else may need to be updated?

I'm running on Windows 10 and JDK 15 ( not sure why I haven't updated the
JDK in use recently but maybe I should and/or downgrade to an older one
[JDK 11 or 8 maybe]).

In addition to the "Netbean showing the 12.5 version", I also get messages
like the following:

Warning - could not install some modules:
My Editor - The module Progress API was requested in version >= 1.62 but
only 1.61 was found.
My Editor - The module UI Utilities API was requested in version >= 7.82
but only 7.81 was found.
My  Editor - The module External Execution API was requested in version >=
1.63 but only 1.62 was found.
My Editor - The module MultiView Windows was requested in version >= 1.58
but only 1.57 was found.
My Editor - The module Options Dialog and SPI was requested in version >=
1.59 but only 1.58 was found.
My Editor - The module File Templates was requested in version >= 1.22 but
only 1.21 was found.
My Editor - The module Dialogs API was requested in version >= 7.56 but
only 7.55 was found.
My Editor - The module Common Annotations was requested in version >= 1.42
but only 1.41 was found.
My Editor - The module File System API was requested in version >= 9.26 but
only 9.25 was found.
My Editor - The module Lookup API was requested in version >= 8.48 but only
8.47 was found.
My  Editor - The module Utilities API was requested in version >= 9.22 but
only 9.21 was found.
My Editor - The module TextMate Lexer was requested in version >= 1.14.0.1
but only 1.13.0.1 was found.
My Editor - The module Filesystems NetBeans Client was requested in version
>= 9.24 but only 9.23 was found.
My Editor - The module Module System API was requested in version >= 7.62
but only 7.61 was found.
My Editor - The module Text API was requested in version >= 6.82 but only
6.81 was found.
My Editor - The module Editor Indentation was requested in version >= 1.57
but only 1.56 was found.
My Editor - The module Datasystems API was requested in version >= 7.84 but
only 7.83 was found.
My Editor - The module Nodes API was requested in version >= 7.59 but only
7.58 was found.
My Editor - The module LSP Client was requested in version >= 1.13.0.1.1
but only 1.12.0.1.1 was found.
My Editor - The module Lexer was requested in version >= 1.77.0.1 but only
1.76.0.1 was found.
My Editor - The module LSP APIs was requested in version >= 1.6 but only
1.5 was found.
My Editor - The module Project API was requested in version >= 1.82 but
only 1.81 was found.
My Editor - The module External Execution Base API was requested in version
>= 1.20 but only 1.19 was found.

I've tried downloading dependencies, cleaning and rebuilding but still no
luck.

Is there a specific property somewhere that specifies the netbean platform
to be used?

I see the "Set Configuration" with "default config", "netbeans-ide", and
"release" but using these don't seem to help either.

Eric Bresie
ebre...@gmail.com


On Sun, Jan 16, 2022 at 9:46 AM Eric Bresie  wrote:

> I have been working on a Maven Netbeans module project in Netbeans which
> has many Netbean specific dependencies.  I started this with Netbeans 12.5
> based dependencies and all seemed to work well.
>
> When Netbeans 12.6 came out I figured I would upgrade the dependencies to
> be compatible with 12.6 versions so I modified all the dependencies to be
> like RELEASE126.
>
> This seemed to work someone but there were issues none the less.  For
> example:
>
> When attempting "Run" on the project in Netbeans, it continued to use the
> "Netbean 12.5 platform" during running and complained about some older
> modules being present instead of newer modules.  Assume it's still using
> Netbeans 12.5 for the platform for some reason and may not be picking up
> newer dependencies, has stale jars, or platform setup issues.
>
> In the Tools...Netbeans Platform, only 12.6 platforms are defined with no
> 12.5 present.
>
> In the project folder, I removed the "target" cache/user folders which
> caused them to be repopulated at next build but still no luck.
>
> Any idea?
>
> Eric Bresie
> ebre...@gmail.com
>
>


Upgrading Dependencies when new Netbean Releases

2022-01-16 Thread Eric Bresie
I have been working on a Maven Netbeans module project in Netbeans which
has many Netbean specific dependencies.  I started this with Netbeans 12.5
based dependencies and all seemed to work well.

When Netbeans 12.6 came out I figured I would upgrade the dependencies to
be compatible with 12.6 versions so I modified all the dependencies to be
like RELEASE126.

This seemed to work someone but there were issues none the less.  For
example:

When attempting "Run" on the project in Netbeans, it continued to use the
"Netbean 12.5 platform" during running and complained about some older
modules being present instead of newer modules.  Assume it's still using
Netbeans 12.5 for the platform for some reason and may not be picking up
newer dependencies, has stale jars, or platform setup issues.

In the Tools...Netbeans Platform, only 12.6 platforms are defined with no
12.5 present.

In the project folder, I removed the "target" cache/user folders which
caused them to be repopulated at next build but still no luck.

Any idea?

Eric Bresie
ebre...@gmail.com


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

2022-01-14 Thread Eric Bresie
findbug was forked (replaced) by spotbug (see https://spotbugs.github.io/ ). 
Could this be used to replace the existing findbug dependency/code?

Alternatively, the sonar lint plugin(s) on the plugin portal may provide an 
alternative for code analysis features.
Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

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

Re: JSF CDI code assist

2021-12-09 Thread Eric Bresie
Your not using the version with the new Jakarta namespace instead of the javaee 
namespace are you?

Get Outlook for iOS

From: Will Hartung 
Sent: Thursday, December 9, 2021 3:47:38 PM
To: NetBeans Mailing List 
Subject: Re: JSF CDI code assist



On Mon, Dec 6, 2021 at 12:00 PM Jason Abreu 
mailto:jace.ab...@gmail.com>> wrote:
I have also created a sample web project using Ant and observe the same
behavior.  With the new Jakarta EE, the code assist in JSP EL ("${...}")
and JSF EL ("#{...}") does not show any of my CDI beans, only a "No
suggestions" message.  This occurs with both Ant and Gradle projects.
The code completion DOES work when using an older Java EE API project.

So if you open a legacy project, the behavior works? But with a new project, it 
does not?

Have you tried "cloning" the working project to see if it works today? Can you 
replicate your "SampleBean" example based on the older project? How do the new 
project and the old projects differ?

And, honestly, it is a deal breaker. Otherwise you may as well be using a 
"dumb" editor. Auto complete is part and parcel to the modern IDE experience.




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

2021-12-03 Thread Eric Bresie
Not sure if this is the case or matter anymore but

There was a satriage in the path with a satriage project being created. So 
could this

/Users/twolf/spectare/git/satriage/src/satriage

be seen as a package within a package with the same name?

Would a project with a different name work?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

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

Re: Maven + Gradle

2021-11-18 Thread Eric Bresie
Does suggestion here work for you?

https://issues.apache.org/jira/browse/NETBEANS-2320

Eric


On Thu, Nov 18, 2021 at 3:32 PM Dragan Bjedov 
wrote:

> Hello,
>
> I have a project which contains build.gradle and pom.xml. Netbeans by
> default detects this project as Gradle one. Is there a possibility to tell
> NetBeans how to open a project?
> In my case as Maven project.
>
> Thanks in advance
>
>
> --
>
> MSc Dragan Bjedov
>
> --
Eric Bresie
ebre...@gmail.com


Re: How to remove Maven from Netbeans 12.0

2021-11-18 Thread Eric Bresie
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  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
> 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
>
> --
Eric Bresie
ebre...@gmail.com


Netbeans Browser Option Not Picked Update

2021-11-11 Thread Eric Bresie
Trying to determine if something on my end or maybe a bug needing to be
reported..

While using Netbeans, in the console windows a hyperlink showed which I
clicked on, which opened a different browser than expected.  In the
Tools..Options..General, a specific browser (Edge) was selected but it
seemed to use the "System Default" instead (Internet Explorer).  When
selecting "Edit" it shows "Edge" also selected and the "System Default" set
to IE.  Does something else need to be set to actually use the selected
different browser?

Eric Bresie
ebre...@gmail.com


Re: Re: How do I activate Groovy plugin?

2021-10-24 Thread Eric Bresie
Not sure if this is related but I tried a new Groovy script and it asked to 
have nb-java module installed. Is it installed as well?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On October 23, 2021 at 7:28:53 AM CDT, Blake McBride  (mailto:blake1...@gmail.com)> wrote:
> Has the activation of the Groovy plugin and the ability to debug Groovy been 
> tested for the upcoming 12.6 release?
>
> On Fri, Oct 22, 2021 at 4:30 PM Blake McBride  (mailto:blake1...@gmail.com)> wrote:
> > Just FYI, the app I'm testing this is at 
> > https://github.com/blakemcbride/Kiss
> > On Fri, Oct 22, 2021 at 4:17 PM Anthony DeCarlo  > (mailto:tdeca...@ssi-corp.com)> wrote:
> > > For whatever it's worth...I have never used groovy, but in NB 12.4, I 
> > > just tried this.
> > > If I go to Tools -> Options -> Miscellaneous and click
> > > on the groovy tab, I get a progress bar that says 'Activating Groovy'
> > > and then after a few seconds it shows instructions on
> > > how to download and install groovy.
> > >
> > > Tony
> > >
> > > On 10/22/2021 17:04, Geertjan Wielenga wrote:
> > > > Tried creating a Groovy file without having installed any plugins, 
> > > > seems to be looking for a plugin that it can't find, in 12.5, something 
> > > > seems broken with that plugin, others have reported similar issues with 
> > > > Groovy in 12.5. Maybe try 12.4 while we figure it out?
> > > >
> > > > Gj
> > > > On Fri, Oct 22, 2021 at 11:02 PM Geertjan Wielenga 
> > > >  > > > (mailto:geertjan.wiele...@googlemail.com)> wrote:
> > > > > Not sure. Check whether you have syntax coloring before/after having 
> > > > > the plugin installed.
> > > > >
> > > > > Gj
> > > > > On Fri, Oct 22, 2021 at 11:01 PM Blake McBride  > > > > (mailto:blake1...@gmail.com)> wrote:
> > > > > > On a possibly unrelated note, should I be able to activate the 
> > > > > > Groovy plugin? If so, how?
> > > > > >
> > > > > > What does the Groovy plugin do?
> > > > > >
> > > > > > Thanks!
> > > > > >
> > > > > > Blake
> > > > > >
> > > > > >
> > > > > > On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga 
> > > > > >  > > > > > (mailto:geertjan.wiele...@googlemail.com)> wrote:
> > > > > > > Then you're going to need to describe what you did in a previous 
> > > > > > > release (i.e., not guess, but actually debug Groovy in the 
> > > > > > > previous release) and do the same as you did then in the current 
> > > > > > > release and, on that failing, provide your sequence of steps here 
> > > > > > > so that others can reproduce and help.
> > > > > > >
> > > > > > > Gj
> > > > > > > On Fri, Oct 22, 2021 at 10:34 PM Blake McBride 
> > > > > > > mailto:blake1...@gmail.com)> wrote:
> > > > > > > > I hope you're wrong. A previous release of NetBeans did allow 
> > > > > > > > me to debug Groovy.
> > > > > > > > On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga 
> > > > > > > >  > > > > > > > (mailto:geertjan.wiele...@googlemail.com)> wrote:
> > > > > > > > > Not sure Groovy debugging is supported. If you see some 
> > > > > > > > > syntax coloring and editor features when you open your Groovy 
> > > > > > > > > file, then that's the Groovy support that there is.
> > > > > > > > >
> > > > > > > > > Gj
> > > > > > > > > On Fri, Oct 22, 2021 at 10:24 PM Blake McBride 
> > > > > > > > > mailto:blake1...@gmail.com)> wrote:
> > > > > > > > > > Greetings,
> > > > > > > > > >
> > > > > > > > > > I am using NetBeans 12.5 on a Linux box.
> > > > > > > > > >
> > > > > > > > > > If I go to Tools / Plugins / Installed
> > > > > > > > > > I see the Groovy feature there but it is not activated. I 
> > > > > > > > > > tried everything I could think of but the "Activate" button 
> > > > > > > > > > never gets enabled. I even tried running NetBeans as root.
> > > > > > > > > >
> > > > > > > > > > My program uses Groovy but I can't seem to debug Groovy 
> > > > > > > > > > files. I presume that is because the Groovy plugin is not 
> > > > > > > > > > activated. How can I activate it?
> > > > > > > > > >
> > > > > > > > > > Thank you!
> > > > > > > > > >
> > > > > > > > > > Blake McBride
> > > > > > > > > >
> > >


Re: How do I activate Groovy plugin?

2021-10-23 Thread Eric Bresie
Wasn’t there some debug (Java?) problems recently that may be getting fix
soon (see email thread “ Debugging Broken in NetBeans master - PLEASE DO
NOT MERGE FURTHER CHANGES”). Could this impact Groovy as well?



On Sat, Oct 23, 2021 at 7:29 AM Blake McBride  wrote:

> Has the activation of the Groovy plugin and the ability to debug Groovy
> been tested for the upcoming 12.6 release?
>
> On Fri, Oct 22, 2021 at 4:30 PM Blake McBride  wrote:
>
>> Just FYI, the app I'm testing this is at
>> https://github.com/blakemcbride/Kiss
>>
>> On Fri, Oct 22, 2021 at 4:17 PM Anthony DeCarlo 
>> wrote:
>>
>>> For whatever it's worth...I have never used groovy, but in NB 12.4, I
>>> just tried this.
>>> If I go to Tools -> Options -> Miscellaneous and click
>>> on the groovy tab, I get a progress bar that says 'Activating Groovy'
>>> and then after a few seconds it shows instructions on
>>> how to download and install groovy.
>>>
>>> Tony
>>>
>>> On 10/22/2021 17:04, Geertjan Wielenga wrote:
>>>
>>> Tried creating a Groovy file without having installed any plugins, seems
>>> to be looking for a plugin that it can't find, in 12.5, something seems
>>> broken with that plugin, others have reported similar issues with Groovy in
>>> 12.5. Maybe try 12.4 while we figure it out?
>>>
>>> Gj
>>>
>>> On Fri, Oct 22, 2021 at 11:02 PM Geertjan Wielenga <
>>> geertjan.wiele...@googlemail.com> wrote:
>>>
>>>> Not sure. Check whether you have syntax coloring before/after having
>>>> the plugin installed.
>>>>
>>>> Gj
>>>>
>>>> On Fri, Oct 22, 2021 at 11:01 PM Blake McBride 
>>>> wrote:
>>>>
>>>>> On a possibly unrelated note, should I be able to activate the Groovy
>>>>> plugin?  If so, how?
>>>>>
>>>>> What does the Groovy plugin do?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Blake
>>>>>
>>>>>
>>>>> On Fri, Oct 22, 2021 at 3:38 PM Geertjan Wielenga <
>>>>> geertjan.wiele...@googlemail.com> wrote:
>>>>>
>>>>>> Then you're going to need to describe what you did in a previous
>>>>>> release (i.e., not guess, but actually debug Groovy in the previous
>>>>>> release) and do the same as you did then in the current release and, on
>>>>>> that failing, provide your sequence of steps here so that others can
>>>>>> reproduce and help.
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Fri, Oct 22, 2021 at 10:34 PM Blake McBride 
>>>>>> wrote:
>>>>>>
>>>>>>> I hope you're wrong.  A previous release of NetBeans did allow me to
>>>>>>> debug Groovy.
>>>>>>>
>>>>>>> On Fri, Oct 22, 2021 at 3:32 PM Geertjan Wielenga <
>>>>>>> geertjan.wiele...@googlemail.com> wrote:
>>>>>>>
>>>>>>>> Not sure Groovy debugging is supported. If you see some syntax
>>>>>>>> coloring and editor features when you open your Groovy file, then 
>>>>>>>> that's
>>>>>>>> the Groovy support that there is.
>>>>>>>>
>>>>>>>> Gj
>>>>>>>>
>>>>>>>> On Fri, Oct 22, 2021 at 10:24 PM Blake McBride 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Greetings,
>>>>>>>>>
>>>>>>>>> I am using NetBeans 12.5 on a Linux box.
>>>>>>>>>
>>>>>>>>> If I go to Tools / Plugins / Installed
>>>>>>>>> I see the Groovy feature there but it is not activated.  I tried
>>>>>>>>> everything I could think of but the "Activate" button never gets 
>>>>>>>>> enabled.
>>>>>>>>> I even tried running NetBeans as root.
>>>>>>>>>
>>>>>>>>> My program uses Groovy but I can't seem to debug Groovy files.  I
>>>>>>>>> presume that is because the Groovy plugin is not activated.  How can I
>>>>>>>>> activate it?
>>>>>>>>>
>>>>>>>>> Thank you!
>>>>>>>>>
>>>>>>>>> Blake McBride
>>>>>>>>>
>>>>>>>>>
>>> --
Eric Bresie
ebre...@gmail.com


Re: github ssh access on Windows

2021-10-16 Thread Eric Bresie
Does this help any?

https://netbeans.apache.org/kb/docs/ide/git.html

Eric Bresie
ebre...@gmail.com


On Thu, Oct 14, 2021 at 7:41 AM William Shackleford 
wrote:

>
>
> Currently I can use netbeans on linux to access my github repositories
> through the ssh link with public/private key files  but on Windows it only
> works through netbeans if I use the https link. It seems to just ignore
> clicking the ok button until I hit cancel when I get the attached error
> message about an invalid key.
> The windows git bash separate command line client with ssh works on the
> same windows computer using the same key file.
>
>
>
>
>
> -
> 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: Where to see and report Java bugs most effectively?

2021-10-16 Thread Eric Bresie
This is my understanding of things...there are multiple systems involved,
one being more committer oriented while the other is more user oriented.  I
believe the user oriented one tends to be evaluated and if accepted moves
into the other (JSB) oriented.

For additional information, see some of the below

https://bugreport.java.com/bugreport/ (external submissions)
https://bugs.openjdk.java.net/secure/Dashboard.jspa
https://wiki.openjdk.java.net/display/general/JBS+Overview
https://stackoverflow.com/questions/29379425/where-to-report-issues-of-openjdk-when-youre-not-a-openjdk-developer
http://cr.openjdk.java.net/~rlewis/BugTracking/OpenJDKBugtTracking.html
(from Sun days perspective)

Hope this helps.
Eric Bresie
ebre...@gmail.com


On Fri, Oct 15, 2021 at 3:47 PM Thomas Wolf  wrote:

> Sorry for this is off-topic subject, but I’m wondering where the most
> effective place is to see and report Java bugs?   I see two different
> possibilities:
> https://bugs.openjdk.java.net/
> and
> https://bugs.java.com/bugdatabase/
>
> I’m running into what appears to be a macOS-specific one and am having
> trouble searching either effectively to see if it’s a known issue.  My
> issue?  Pretty straight-forward:  when the user clicks on a button, I
> change the cursor to a WAIT cursor, do a long-lasting operation, then set
> it back to the DEFAULT cursor.  The first time, all works as expected, but
> subsequent clicks on the button don’t change the cursor.  At least on a Mac
> (Monterey) running JDK 17.35.  On Ubuntu 20 and Windows 10, it works every
> time.
>
> I suppose it could be a Monterey issue - since it’s in late stage beta -
> but I don’t have Big Sur to check, so I wanted to at least check the
> appropriate bug databases.
>
> Thanks,
> Tom
>
> p.s. I also downloaded and tried the Oracle version of 17.35 - same
> problem.
>
>


Re: java.util.zip.CRC32C Not Found

2021-10-09 Thread Eric Bresie
Did the project properties identify the specific java version in use?

Did the Tools…Java Platform…Add Platform account for the Java 11 version?

Is the JDK.home properties in the netbeans/etc/netbeans.properties get set
to applicable version?

Are java home and related environment variables set?

On Sat, Oct 9, 2021 at 9:39 AM Marvin P. Warble Jr. <
mwar...@corvusengineering.com> wrote:

> And just to add another data point, I installed JDK 11 and NB 12.5 on my
> Mac and am able to reproduce the problem by just creating a webapp project
> there also.
>
>
>
>
>
> *From:* Eric Bresie [mailto:ebre...@gmail.com]
> *Sent:* Saturday, October 9, 2021 9:21 AM
> *To:* Pieter van den Hombergh 
> *Cc:* Marvin P. Warble Jr. ;
> NetBeans Mailing List 
> *Subject:* Re: java.util.zip.CRC32C Not Found
>
>
>
> Is this maybe a regression or similar to this issue?
>
> https://issues.apache.org/jira/browse/NETBEANS-577
>
>
>
> Has java home, classpath, and/or module class be established yet either at
> system level or in the project level?
>
>
>
> Eric
>
>
>
> On Sat, Oct 9, 2021 at 5:33 AM Pieter van den Hombergh <
> pieter.van.den.hombe...@gmail.com> wrote:
>
> What is the Java version that you run netbeans with?
>
> Op do 7 okt. 2021 18:15 schreef Marvin P. Warble Jr. <
> mwar...@corvusengineering.com.invalid>:
>
> Even though the source level of  is set to: 11,
> java.util.zip.CRC32C cannot be found on the system module path:
>
> Changing source level to 1.8
>
>
>
> This error continuously shows up in my IDE log and I’m wondering if it
> might be the source of some other problems I’m having.
>
>
>
> Does anyone know if there is a way to resolve this problem?
>
>
>
> I’m currently using NB 12.5 on Windows 10 with the following Java platform:
>
>
>
> Eclipse Foundation => jdk-11.0.12.7-hotspot
>
> --
>
> Eric Bresie
> ebre...@gmail.com
>
-- 
Eric Bresie
ebre...@gmail.com


Re: Pssst! [Kotlin Support]

2021-10-09 Thread Eric Bresie
Unrelated but at some point, there was discussion of integrating Kotlin
support (I believe donated by JetBrain developer)…did anything further
happen with that?

Or is Kotlin another candidate for “new LSP language implementation”?

Eric

On Fri, Oct 8, 2021 at 11:03 PM Owen Thomas 
wrote:

> Okay... I make a provisional withdrawal and reserve the right to reassert.
>
> On Fri, 8 Oct 2021 at 18:59, Owen Thomas 
> wrote:
>
>> Java and Kotlin interoperability is a fabrication. Stick with Java or
>> stick with Kotlin. Don't try it; it will only lead one to rip one's face
>> off.
>>
> --
Eric Bresie
ebre...@gmail.com


Re: java.util.zip.CRC32C Not Found

2021-10-09 Thread Eric Bresie
Is this maybe a regression or similar to this issue?
https://issues.apache.org/jira/browse/NETBEANS-577

Has java home, classpath, and/or module class be established yet either at
system level or in the project level?

Eric

On Sat, Oct 9, 2021 at 5:33 AM Pieter van den Hombergh <
pieter.van.den.hombe...@gmail.com> wrote:

> What is the Java version that you run netbeans with?
> Op do 7 okt. 2021 18:15 schreef Marvin P. Warble Jr.
> :
>
>> Even though the source level of  is set to: 11,
>> java.util.zip.CRC32C cannot be found on the system module path:
>>
>> Changing source level to 1.8
>>
>>
>>
>> This error continuously shows up in my IDE log and I’m wondering if it
>> might be the source of some other problems I’m having.
>>
>>
>>
>> Does anyone know if there is a way to resolve this problem?
>>
>>
>>
>> I’m currently using NB 12.5 on Windows 10 with the following Java
>> platform:
>>
>>
>>
>> Eclipse Foundation => jdk-11.0.12.7-hotspot
>>
> --
Eric Bresie
ebre...@gmail.com


Re: JavaScript Framework's

2021-07-05 Thread Eric Bresie
Since these are javascript based, beyond the basics of javascript, what are you 
proposing to be added?

Can always raise an issue ( 
https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-5734?filter=allopenissues
 ) to ask for functionality to be added if there is not already a ticket for it.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On June 26, 2021 at 10:13:32 PM CDT, Brain Rebooting 
> mailto:siumastroma...@gmail.com)> wrote:
> Dear all,
>
> With due respect, I can't understand why netbeans doesn't support a single 
> latest JavaScript framework. I mean, angular/react/vue are extremely popular 
> now a days and are must. Though netbeans claims itself a full ide for 
> JavaScript. But it supports not a single javascript framework. As a netbeans 
> fan boy since last 3 years, I find it inferior.
>
> If there is no one to build those tools for netbeans, then at least can't we 
> open a donation account and gather money hire someone with expertise on those 
> tech to build tools to support those frameworks in netbeans?
>
> I realizes that, why people are leaving netbeans due to existential reasons. 
> If I need to use any text editor to work with those frameworks, then still I 
> already writing code outside of netbeans.
>
> We use ide for what? By definition, so that we can write/test/debug/deploy 
> everything from one place.
>
> Its not my request as you already know. Even eclipse dont support these 
> framework's for free. I saw they recently start angular/react option but 
> thats also paid. Our last hope is remains only netbeans.
>
>
> Samiul Alom Sium
> Bangladesh
>
>



Re: Working with ETable (TableView) and Quickfilter

2021-07-03 Thread Eric Bresie
And/or setModel help?by persist do you mean save to to a file, to db, or apply 
to the tabl?

Does the setQuickFilter options ( 
http://bits.netbeans.org/dev/javadoc/org-netbeans-swing-outline/org/netbeans/swing/etable/ETable.html#setQuickFilter-int-java.lang.Object-)

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)
> On July 2, 2021 at 2:29:36 PM CDT, Tim Mullé  (mailto:tmu...@gmail.com)> wrote:
> Hi,
>
> I’m looking at maybe using the built in Explorer TableView (ETable) instead 
> of our customized JTable component we currently have in our Swing Application.
>
> I’m am evaluating the TableView component and seeing if it is worth using 
> that component in the new NetBeans Platform application I’m going to migrate 
> our
> current application to.
>
> I have a few questions:
>
> 1. How can I persist any quick filter objects that are set on the ETable? I 
> am using "Object quickFilterObject = tv.getTable().getQuickFilterObject();” 
> but that
> Just returns an Object and not like “EqualsQuickFilter” which is in the 
> TableView. There are no ways for me to also get the type or value of the 
> filter. I’m guessing
> That I’ll have to provide my own interface popup and store off our filters we 
> want?
>
> The reason I ask is in our current application we reapply any filters on the 
> table on application startup once the data is populated in the table.
>


Re: Re: Java 16 Javadocs?

2021-06-25 Thread Eric Bresie
Would something like this be usable?
https://cr.openjdk.java.net/~iris/se/16/latestSpec/api/index.html

There seems to be other versions available as well here 
https://cr.openjdk.java.net/~iris/se/

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On June 24, 2021 at 8:08:56 AM CDT, Emilian Bold  (mailto:emilian.b...@gmail.com)> wrote:
> I was thinking of something online.
>
> --emi
> joi, 24 iun. 2021, 01:16 (x-apple-data-detectors://4) Andreas Reichel 
> mailto:andr...@manticore-projects.com)> a 
> scris:
> > Greetings.
> >
> >
> > On Wed, 2021-06-23 at 17:32 +0300, Emilian Bold wrote:
> > > It's amazing there's no 3rd party place for Javadocs considering there's 
> > > now so many OpenJDK distros.
> >
> >
> > I do not think that this is correct:
> >
> > are@ryzen (mailto:are@ryzen) ~ [SIGINT]> yay openjdk-doc
> > 1 extra/openjdk-doc 16.0.1.u9-1 (11.0 MiB 260.9 MiB)
> > OpenJDK Java 16 documentation
> > ==> Packages to install (eg: 1 2 3, 1-3 or ^4)
> >
> >
> > are@ryzen (mailto:are@ryzen) ~> yay -Ql openjdk-doc
> > openjdk-doc /usr/
> > openjdk-doc /usr/share/
> > openjdk-doc /usr/share/doc/
> > openjdk-doc /usr/share/doc/java-openjdk/
> > openjdk-doc /usr/share/doc/java-openjdk/api/
> > openjdk-doc /usr/share/doc/java-openjdk/api/allclasses-index.html
> > openjdk-doc /usr/share/doc/java-openjdk/api/allpackages-index.html
> > openjdk-doc /usr/share/doc/java-openjdk/api/constant-values.html
> > openjdk-doc /usr/share/doc/java-openjdk/api/deprecated-list.html
> > openjdk-doc /usr/share/doc/java-openjdk/api/element-list
> > openjdk-doc /usr/share/doc/java-openjdk/api/help-doc.html
> > openjdk-doc /usr/share/doc/java-openjdk/api/index-files/
> > openjdk-doc /usr/share/doc/java-openjdk/api/index-files/index-1.html
> >
> >
> > Best regards
> > Amdreas
> >
>
>
>



Re: 2021 Netbeans Events?

2021-06-20 Thread Eric Bresie
Having never had the opportunity to be involved in any of the events
previously, I'm not really an expert on that per say.  AsFor that matter,
I'm not sure of how things were handled previously nor am I sure I'm
experienced enough to facilitate the whole event given my lack of
experience.


   1. In the past, did this happen around the time of Java One / Code One
   time frame?  If so maybe (not sure if that's virtual this year or now)
   around that time frame?
   2. Given Netbeans is Apache Netbeans, are there any Apache events coming
   up that might be good to be part of?  And assume there might need to be
   coordination with Apache organization for specifics here as well.
   3. Assume (unless someone / everyone feels comfortable enough for it to
   be in person) that it would need to be some form of virtual event (does
   Apache have a "Apache Virtual/Video/Web Conferencing" Tool in it's
   portfolio??)..
   4. Not sure how "topics" or "submissions for speakers" was done in the
   past (assume voluntary).

Eric Bresie
ebre...@gmail.com


On Sun, Jun 20, 2021 at 11:24 AM Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

>
> Up to you. When/where do you propose them to happen?
>
> Gj
>
> On Sun, 20 Jun 2021 at 18:22, Eric Bresie  wrote:
>
>> Following the new committer emails, I noticed the "Netbean Events" page
>> in the same community area (
>> http://netbeans.apache.org/community/events.html ) and was curious if
>> there are any plans for events for 2021?
>>
>> Eric Bresie
>> ebre...@gmail.com
>>
>


2021 Netbeans Events?

2021-06-20 Thread Eric Bresie
Following the new committer emails, I noticed the "Netbean Events" page in
the same community area ( http://netbeans.apache.org/community/events.html
) and was curious if there are any plans for events for 2021?

Eric Bresie
ebre...@gmail.com


Re: Re: ^H not working for Replace function on MacOS

2021-06-20 Thread Eric Bresie
What version of Java and MacOS are in use? Have you done any recent MacOS 
updates? Java updates?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On June 8, 2021 at 3:01:06 PM CDT, Will Hartung  (mailto:willhart...@gmail.com)> wrote:
>
>
> On Tue, Jun 8, 2021 at 11:21 AM Geertjan Wielenga 
> mailto:geertjan.wiele...@googlemail.com)> 
> wrote:
> >
> > Can we start by seeing if it works for you after changing the keymapping, 
> > and then investigate further from there?
>
> Yes, that works.
>
> Curiously when I go to the shortcut field, I hold down CTRL and H and it 
> appears as CTRL+BACKSPACE (which overrides "remove surrounding code", which I 
> can't find on a menu anywhere).
>
> It does not show up as CTRL+H.
>
> Mind, I wrote a simple Swing app and added a KeyListener to a control, and it 
> seems to be showing CTRL and H, not BACKSPACE. So I don't think it's a Mac 
> Java thing, plus it works with a raw 12.4.
>
> So, odd all around.
>
> Thanks!
>
> Regard,
>
> Will Hartung
>


Re: Cloud Connector within Netbeans ?

2021-06-16 Thread Eric Bresie
Keep in mind, a lot has happened since Netbeans 8.2...it has been donated
(mostly) to the Apache foundation, the "plugin" center has migrated to a
new center, many plugins have not been migrated or updated to the newer
releases of Apache Netbeans (just recently released 12.4), and some of the
materials from the original netbeans.org site have (or have not) been fully
migrated or redirected as well.

Eric Bresie
ebre...@gmail.com


On Tue, Jun 15, 2021 at 6:50 PM Paulo Toledo
 wrote:

> Hi
> I think it should be very similar to the guidelines presented in these
> articles.
>
> https://netbeans.apache.org//kb/docs/web/oracle-cloud.html
>
>
> https://blog.idrsolutions.com/2015/12/how-to-use-the-azure-cloud-on-the-netbeans-ide/
>
> Other colleagues on the list will be able to contribute to the solution of
> your doubts.
> Regards
>
> Paulo
> Em 15/06/2021 14:52, Batta, Shiva Nandu - DHS (TeamSoft) escreveu:
>
> Hi,
>
> �
>
> I am reviewing software Netbeans to get approved in our organization. I
> have a question and wondering, if there is a cloud connector with in the
> Netbeans? Any help would be appreciated.
>
> �
>
> I am also looking for information on the following:
>
> �
>
> �
>
> Could you please detail how the product will change ports protocols and
> services?
>
> 1.�������� Where will data be sent?
>
> 2.�������� What services will be started?
>
> 3.�������� What ports will be used?
>
> �
>
> *Thanks*
>
> *�*
>
> *Shiva Nandu Batta*
>
> *�*
>
> *Software Engineer 2 -� Team Soft*
>
> *Supporting the State of Wisconsin, Department of Health services (DHS)*
>
> *Desktop Management & Support Section*
>
> *Bureau of Information Technology Services (BITS)*
>
> *Division of Enterprise Services (DES)*
>
> �
>
> shivanandu.ba...@dhs.wisconsin.gov
>
> Desk: 608-261-9337
>
> Cell: 608-867-4449
>
> �
>
>


Re: Netbans Language server protocol support

2021-06-11 Thread Eric Bresie
Not an expert, but there are a few languages that leverage LSP in the
mainline netbeans code base.  Many of which leverage "text-mate" grammars
and/or LSP server functionality integrated within.

There was some discussion on dev mailing list (1) a little while back.
Maybe some of the details there might help or search for LSP threads (2)

Eric Bresie
ebre...@gmail.com

(1)
https://lists.apache.org/thread.html/r004212da38a55a7779b58ed03e851e6f017b150abe43d7a868bea236%40%3Cdev.netbeans.apache.org%3E
(2) https://lists.apache.org/list.html?*@netbeans.apache.org:lte=1y:LSP

On Fri, Jun 11, 2021 at 9:55 AM Paulo Toledo
 wrote:

> Hi,
> I think the files would be these according to the attached image.
>
> Regards
>
> Paulo
>
>
>


Re: Re: hashCode: same every run?

2021-05-08 Thread Eric Bresie


Maybe can check each hashCode to see how they calculate it

https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/Object.java

https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/String.java

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On May 6, 2021 at 12:49:30 PM CDT, Eduard  (mailto:i...@dejongfrz.nl)> wrote:
> You are computing the hash on a compile time constant value, so that value is 
> itself a compile tiem constant, and can be deived from the memory location 
> where that constant gets allocated when the JVM starts up. This works for 
> strings as they are all internalized at compile time, that is stored in a 
> common table that holds a unique copy of each String, that way the storage 
> location corresponds with the content of the String, and so does the hash 
> value.
>
> If you look at the code for String.java, you will see it actually computes 
> the hash value based on the characters it contains. This only is used on 
> strings you create while your code is running.
>
> --
> Eduard
>
> Shaun Flynn wrote on 06/05/2021 17:22 (x-apple-data-detectors://4):
> > I ran into this, thinking it would be the same per execution, but it does 
> > not work like that.
> >
> > If you create a for loop doing something like...
> >
> > String test = "Hello World!";
> > for(i = 0; i < 100; i++) {
> > System.out.println(test.hashCode());
> > }
> >
> > You will get 100 identical values.
> >
> > Run it again, you will get 100 values identical values again, but the value 
> > has changed.
> >
> > Ie first run prints "46521890 (tel:46521890)" 100 times
> > Second run prints "-56905325700" 100 times
> >
> > And each subsequent run with produce a different hashCode repeated 100 
> > times.
> >
> > I believe (feel free to correct me) that the algorithm or formula for 
> > producing ths hashCode has the memory address as an input, thus it will 
> > different per execution because the JVM allocates the memory, which has the 
> > effect of appearing random.
> >
> > It confused me at first, but this is the intended functionality: if you are 
> > intending to store hashes for lookup or other purposes, use one of the 
> > already defined hash functions eg 
> > https://www.geeksforgeeks.org/sha-256-hash-in-java/
> >
> > Hope this helps.
> >
> > Shaun
> > On Thu, 6 May 2021, 13:46 Charles Johnson,  > (mailto:cehjohn...@gmail.com)> wrote:
> > > On 06/05/2021 12:37 (x-apple-data-detectors://9), Christopher C. Lanz 
> > > wrote:
> > > > It would be helpful if I could rely on hashCode always to return the 
> > > > same integer for the same object.
> > >
> > > What are you doing such that needs to be the case?
> > >
> > >
> > >
> > > CJ
> > >
> > >
> > >
> >
> >
>
>


Re: Re: NetBeans 8 app flickering/uncontrolled window movement on Alienware Dell - anyone seen this ?

2021-05-08 Thread Eric Bresie
Wanted to confirm...is this Swing or JFX? If jfx that was deprecated along the 
line.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On May 7, 2021 at 11:35:17 AM CDT, bruehlicke  (mailto:bruehli...@gmail.com)> wrote:
> I was able to capture the behavior on video ... attached. Currently it only 
> happens on a m15r2 Alienware.
>
>
>
> On Fri, May 7, 2021 at 9:41 AM Admin @ Goodun  (mailto:ad...@goodunlimited.co.uk)> wrote:
> > On Fri, 2021-05-07 at 07:26 -0500, bruehlicke wrote:
> > > Bummer, still happens with jdk 11. It is the entire outer window
> > > which jumps and leaves droppings/copies of itself when fx moving
> > > mouse accross I start wondering if there is a problem with the
> > > laptop. On the other hand it only happens with the NetBeans RPC app.
> > > Regardless if using Nvidea card or Intels integrated.
> >
> > I'm getting something that seems to me similar, but with the new
> > Android Studio release (4.2.0) under Linux (Fedora 33).
> >
> > What I'm seeing is that the entire outer (IDE) window flashes with all
> > mouseover actions. More than that, popup boxes of many (but not all)
> > types take up the entire outer window even though they only have the
> > normal, very small, content.
> >
> > I'm using OpenJDK 11. I tried changing my JAVA_HOME setting to
> > explicitly reference the JDK rather than the generic link, but both
> > suffer from the same thing.
> >
> > D'you think it's related? If it is, does it help? :-(
> >
> > Mark
> >
> > > Will try jdk17 if possible  mysterious
> > >
> > > On Thu, May 6, 2021, 14:01 bruehlicke  > > (mailto:bruehli...@gmail.com)> wrote:
> > > > Laszlo,, you are a hero ! I downloaded the OpenJDK 11 and just
> > > > copied the entire folder into my NetBeans 8.2 RCP app (build on
> > > > jdk8) and renamed the jkd11 folder to "jre" - Voila ! I just
> > > > love Java, it surprises me even again and again even after
> > > > coding for 2 decades with it. Of course, lots of testing needs to
> > > > be done but so far it looks like a work-around. We will have the
> > > > app running all day tomorrow on jdk11 to see if it "creeps back to
> > > > the flicker madness".
> > > >
> > > > Of course the biggest thanks is to all the people involved making
> > > > jdk11 (and later versions) and keeping it compatible and allowing
> > > > normal mortals like me to stay "clueless" - as Jaroslav so nicely
> > > > puts it - about all the underlying plumbing which was changed.
> > > >
> > > > Thanks !
> > > > Bernd
> > > >
> > > > On Thu, May 6, 2021 at 10:35 AM bruehlicke  > > > (mailto:bruehli...@gmail.com)>
> > > > wrote:
> > > > > Ahh, ok good point ! I will try running NetBeans with jdk 11
> > > > > (OpenJdk) on the Alienware and see how it goes. Thank you for
> > > > > your interest and suggestion.
> > > > >
> > > > > Bests
> > > > > Bernd
> > > > >
> > > > > On Thu, May 6, 2021 at 10:24 AM Laszlo Kishalmi <
> > > > > laszlo.kisha...@gmail.com (mailto:laszlo.kisha...@gmail.com)> wrote:
> > > > > > I'd put my bet on the JDK AWT VRAM handling, so when I
> > > > > > suggested upgrade JDK, I meant upgrading it to a more recent
> > > > > > version than 1.8. I'd Try JDK 11 first, if that's still do not
> > > > > > work I'd test more recent ones...
> > > > > > On 5/6/21 8:02 AM, Geertjan Wielenga wrote:
> > > > > >
> > > > > > > Maybe Swing-specific, so try reproduce with another Swing app
> > > > > > > or create a new small Swing app yourself to reproduce the
> > > > > > > problem.
> > > > > > >
> > > > > > > Gj
> > > > > > >
> > > > > > > On Thu, 6 May 2021 at 16:55, bruehlicke
> > > > > > > mailto:bruehli...@gmail.com)> wrote:
> > > > > > >
> > > > > > > > Thanx. Tried 1.8u202 (latest I can use without commercial
> > > > > > > > license) and it happened as well after a while. Hmm ...
> > > > > > > > currently only on Alienware laptop. ... wicket. Anyhow
> > > > > > > > here running NetBeans on a Gaming laptop having trouble ?
> > > > > 

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

2021-04-20 Thread Eric Bresie
I’m not sure why everyone hates ant so much. I know it’s not perfect but what 
build tool really is.

If the preference is not to use ant in the future...when is Netbeans going to 
formally change from ant to maven? I know some work has been done in the 
branches which assume may have involved some tools to do some of the 
conversions so could whatever was use be used to automate the batch conversion?

For reference on converting (1) (2) (3) (4)

(1) 
https://blog.idrsolutions.com/2016/01/convert-ant-based-netbeans-project-to-a-maven-project/

(2) 
https://blog.sonatype.com/2009/04/how-to-convert-from-ant-to-maven-in-5-minutes/?hs_amp=true

(3) 
https://stackoverflow.com/questions/4029501/how-to-convert-ant-project-to-maven-project

(4) 
https://stackoverflow.com/questions/4029501/how-to-convert-ant-project-to-maven-project
Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On April 20, 2021 at 7:24:39 PM CDT, Emilio Gallardo Cantella 
> mailto:rareit...@gmail.com)> wrote:
>
> To be honest, I think removing new projects in Ant might be too drastic a 
> change altogether. From my perspective, a good lot of people that might still 
> be using old Netbeans and the straightforward Ant support might not even know 
> Ant IS an actual thing in the IDE, more so that their projects just work. I 
> spent a few years doing Java and C/C++ projects on Netbeans for uni, and 
> never had to nor was encouraged to touch the build system (Ant, make, cmake). 
> You could argue that it might be a deficiency of the curriculum, but in terms 
> of function it is not a requirement for learning a language or practicing it.
>
>
>
> Maven and Gradle are nice, but they require additional steps to work right 
> now, and are not as straightforward, which most users and specially novices 
> would find friendlier. The actual closest to get-up-and-go is Gradle, not 
> Maven at all, from both a completely clean install or build of Netbeans - and 
> I have tested it multiple times.
>
>
> What I would suggest is grabbing the whole set Ant-based functions, projects 
> and modules and disable them by default, but introduce a way for users, and a 
> prompt for example, to allow them to activate that set of projects from 
> within the New Project Dialog. As an example, instead of the "Java with Ant" 
> category, maybe there could be a "Legacy" folder icon that when selected 
> displays in the "Projects" subwindow a prompt to activate Java with Ant, 
> along with a small blurb about that having been the old standard for 
> projects. Moreover, to make it more friendly, the blurb could say something 
> like "if you cannot open/Netbeans does not recognize your old Projects, 
> activate this and see if it works"
>
>
> I know this might be a bit beyond the topic of this thread, but this seems 
> something a bit too drastic to do piecemeal such as disabling new projects 
> for Ant at all
>
>
> Thanks,
>
>
> Emilio G.C.
>
>
>
> On 4/20/2021 17:28, Sean Carrick wrote:
> >
> > GJ,
> >
> >
> > My apologies! It seems I kicked off more than I expected with my comments. 
> > Feel free to slap me if you ever see me...
> >
> >
> > -SC
> >
> >
> > On 4/20/21 2:33 PM, Geertjan Wielenga wrote:
> > > No one is suggesting removing support for Ant altogether.
> > >
> > > The suggestion is to remove the possibility of creating new Ant projects.
> > >
> > > Gj
> > >
> > > On Tue, 20 Apr 2021 at 21:32 (x-apple-data-detectors://6), Thomas Wolf 
> > > mailto:tjw...@gmail.com)> wrote:
> > > > +1 for not removing ant support for me as well. I’m admittedly an 
> > > > old-timer. My first exposure to a ‘modern’ build tool was on my last 
> > > > job - the company used gradle. With a background in make and ant, I 
> > > > found its syntax hard to grok. NB devs clearly like Maven - its syntax 
> > > > seems straight-forward enough, but the tool seems relatively slow and 
> > > > if you have an existing ant-based project whose directory structure 
> > > > doesn’t match maven’s desired one, moving to maven may not be as 
> > > > straight forward as some suggest. And, how is the uptake of Ivy? Isn’t 
> > > > that (in combination with ant) considered a modern build tool? If NB 
> > > > removes support for ant altogether, it would not be able to handle 
> > > > ivy-based projects, no?
> > > >
> > > > tom
> > > >
> > > >
> > > > On Apr 20, 2021 at 3:10:04 PM, Marco Rossi  > > > (mailto:ma...@markreds.it)> wrote:
> &

Re: Re: master password

2021-03-23 Thread Eric Bresie
Sounded like somethings were reinstalled ..but did some of it not get 
reinstalled fully or is missing?

FINE [org.netbeans.modules.keyring.gnome.GnomeProvider] 
java.lang.UnsatisfiedLinkError: Unable to load library 'gnome-keyring': 
libgnome-keyring.so: cannot open shared object file: No such file or directory 
libgnome-keyring.so: cannot open shared object file: No such file or directory 
Native library (linux-x86-64/libgnome-keyring.so) not found in resource path 
(/mnt/common/netbeans-12.3/netbeans/platform/lib/boot.jar:/mnt/common/netbeans-12.3/netbeans/platform/lib/org-openide-modules.jar:/mnt/common/netbeans-12.3/netbeans/platform/lib/org-openide-util.jar:/mnt/common/netbeans-12.3/netbeans/platform/lib/org-openide-util-lookup.jar:/mnt/common/netbeans-12.3/netbeans/platform/lib/org-openide-util-ui.jar)

FINE [org.netbeans.modules.keyring.win32.Win32Protect]: not running on Windows 
FINE [org.netbeans.modules.keyring.utils.Utils]: chmod go-r 
/home/cenbe/.netbeans/12.3/config/Preferences/org/netbeans/modules/keyring.properties
 WARNING [org.netbeans.modules.keyring.fallback.MasterPasswordEncryption]: 
Falling back to master password encryption; add 
-J-Dorg.netbeans.modules.keyring.level=0 to netbeans.conf to see why native 
keyrings could not be loaded FINE [org.netbeans.modules.keyring.utils.Utils]: 
no such file to chmod: 
/home/cenbe/.netbeans/12.3/config/Preferences/org/netbeans/modules/keyring/general.properties

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On March 22, 2021 at 2:18:03 PM CDT, Glenn Holmer  (mailto:ce...@kolabnow.com.invalid)> wrote:
> On 3/22/21 12:45 PM, Neil C Smith wrote:
> > On Mon, 22 Mar 2021 at 17:05, Boris Heithecker  > (mailto:boris.heithec...@gmx.net)> wrote:
> > > Unfortunately, no one (including myself) has yet found time to
> > > implement a simple switch, or system property to switch off either
> > > implementation on Linux.
> >
> > There is -J-Dnetbeans.keyring.no.native=true ? Still at least shows
> > the non-native one though? UI to disable entirely would be on my own
> > papercuts list.
>
> Added that to netbeans.conf, restarted, did a git fetch, and got the
> master password dialog :) Checked the log file and saw this:
>
> WARNING
> [org.netbeans.modules.keyring.fallback.MasterPasswordEncryption]:
> Falling back to master password encryption; add
> -J-Dorg.netbeans.modules.keyring.level=0 to netbeans.conf to see why
> native keyrings could not be loaded
>
> Added that, got the dialog again, and saw this in the log:
>
> https://www.lyonlabs.org/temp/master-password-log.txt
>
> So it looks like there's something to the idea that he's looking for
> some KDE stuff and can't find it (see my other message: no kwallet
> installed, running a fresh install of Debian Buster w/MATE).
>
> I remember that this used to get a lot of complaints years ago, but it's
> been quite a while since I last saw that dialog.
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
> cenbe.vcf7 bytes (#attachment-1)
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> (mailto:users-unsubscr...@netbeans.apache.org)
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> (mailto:users-h...@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Re: How do I get local terminal to work for cross platform development Windows - Debian Buster

2021-03-12 Thread Eric Bresie
Did you try using ssh to connect to the RPi?

Not sure if it’s quite the same but...

https://netbeans.apache.org//kb/docs/cnd/remotedev-tutorial.html

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On March 8, 2021 at 6:37:08 AM CST, frui...@yahoo.co.uk.INVALID 
> (mailto:frui...@yahoo.co.uk.INVALID)  (mailto:frui...@yahoo.co.uk.invalid)> wrote:
>
> > Do you need the Terminal window on the RPi3?
> Yes. The output displayed in the Netbeans output window (on the Windows 
> development PC) is incorrect so I need to see what would actually happen on 
> the RPi3.
>
> > Don't you already have a terminal window there that you can use?
> I am not running Netbeans on the RPi3 I am running it a Windows PC and 
> Netbeans should allow me to open a terminal window on the RPi3. If I cannot 
> do that then I would need to setup the RPi3 as a VNC Server and then run a 
> VNC Client on the Windows machine to allow me to open a terminal. So, yes it 
> could be done but it is a bit messy since it is already a feature in Netbeans 
> which should work.
>
> >How is this blocking you?
> To isolate the issue I have installed Netbeans on the RPi3 and tried running 
> it locally. The RPi3 installation still does not permit a terminal window to 
> be opened from within Netbeans it gives the message "Local Terminal is not 
> supported on this system". This eliminates a lack of cygwin from the 
> equation. It means that both my Linux (Debian Buster) and Windows 10 
> installations are unable to open terminal windows on the local machines. This 
> must be a bug or very possibly just a configuration issue. It is not a total 
> block on using Netbeans but it is frustrating to think that there may be a 
> very simple configuration setting that could solve the problem.
>
> Fruitpi
>
>
> On Sunday, 7 March 2021, 22:53:19 GMT, Geertjan Wielenga 
>  (mailto:geertjan.wiele...@googlemail.com.invalid)> wrote:
>
>
> Do you need the Terminal window on the RPi3? Don't you already have a 
> terminal window there that you can use? How is this blocking you?
>
> Gj
> On Sun, Mar 7, 2021 at 11:01 PM frui...@yahoo.co.uk.INVALID 
> (mailto:frui...@yahoo.co.uk.INVALID)  (mailto:frui...@yahoo.co.uk.invalid)> wrote:
> > Thanks for the quick response but I think that you have answered a 
> > different problem.
> > If I run Netbeans on Windows locally and try to open a Terminal Window I 
> > get the message
> > ""Local Terminal requires cygwin. Please install cygwin and restart the 
> > IDE".
> >
> > This is annoying but it is not the problem that I am trying to fix (at 
> > least at the moment).
> >
> > My problem is that, from Windows, I have opened a project not on the local 
> > host but on the RPi3. I have then manged to compile, build and run it on 
> > the RPi3.However if in Netbeans I try to open a terminal window which I 
> > assume is on the RPI3 I get the message "Local Terminal is not supported on 
> > this system" - this is not the same error message as opening a terminal on 
> > the windows machine.
> >
> > Are you saying that installing cygwin on the Windows machine would allow me 
> > to open a terminal window on the Windows machine and on the RPi3?
> > In my head, at least for now, these are separate issues?
> >
> >
> >
> > On Sunday, 7 March 2021, 21:29:24 GMT, Geertjan Wielenga 
> >  > (mailto:geertjan.wiele...@googlemail.com)> wrote:
> >
> >
> > https://ourcodeworld.com/articles/read/680/how-to-configure-an-integrated-terminal-command-prompt-in-netbeans-for-windows
> >
> > Gj
> > On Sun, Mar 7, 2021 at 10:25 PM frui...@yahoo.co.uk.INVALID 
> > (mailto:frui...@yahoo.co.uk.INVALID)  > (mailto:frui...@yahoo.co.uk.invalid)> wrote:
> > > I am running Apache Netbeans 12.2 on Windows 10.
> > > My target machine runs Raspberry Pi OS (Debian Buster).
> > >
> > > I have managed to develop a very simple C program using Netbeans on the 
> > > Windows machine and to get it to compile and build on the RPi3.
> > > When I run it though the output in the Netbeans output window is 
> > > incorrect, instead of "\n" appearing as a Carriage Return (CR) and Line 
> > > Feed (LF) only the LFs appear.
> > >
> > > If, in NetBeans on the Windows machine, I try to open a terminal window I 
> > > get the message "Local terminal is not supported on this system".
> > >
> > > What is the problem, how can I get Netbeans running on the Windows 
> > > machine to open a terminal window on the Linux machine ?
> > >
> > >


Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Eric Bresie
Does this have anything to do with removal of XML binding in Java 11
timeframe?  And maybe need to add a dependency for this to the project?

See
https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception


On Sun, Mar 7, 2021 at 10:14 AM Geertjan Wielenga
 wrote:

>
> The question is what it is you’re trying to achieve here. Given what
> you’re trying to do right now, your approach could be considered to be
> “wrong”, i.e., start by thinking of the larger idea of the application
> you’re trying to build and the features you need for that.
>
> A better approach than building up an IDE from scratch, as you seem to be
> doing, is to start from the full IDE and remove the parts you don’t need.
> It’s the exact opposite to what you’re doing, please consider it.
>
> Gj
>
> On Sun, 7 Mar 2021 at 17:10, Richard  wrote:
>
>> Thank you Geertjan
>>
>> This is a simple exercise to look at the possibilities that each ide
>> module can give. I tried successfully the image editor and the Utilities
>> module, but it is clear that some other ide modules need to be selected for
>> the XML editor since I can run with all ide modules selected.
>>
>> But how can I find the missing modules ? Of course, I could start with
>> all ide modules selected and try to unselect one module at each run until
>> it fails, but it would take a very long time. How the error message can
>> help ?
>>
>>
>> Richard
>>
>> Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :
>>
>>
>> Your usage may vary with that book. All the principles and ideas are
>> correct, but some individual instructions may be outdated.
>>
>> Gj
>>
>> On Sun, 7 Mar 2021 at 16:57, Richard  wrote:
>>
>>> Hello.
>>>
>>> Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.
>>>
>>> Trying to run some examples in chapter 1 of the nbp4beginners book. I
>>> just created a sample project without any module, and tried to select
>>> some modules from the ide cluster in the properties-libraries window,
>>> such as Image or Utilities. All is OK.
>>>
>>> Then I followed the 1.2.5.5 chapter in order to activate the XML Text
>>> editor :
>>>
>>> > 1.2.5.5 XML Editor
>>> > Users may need to edit XML files of one kind or another in your
>>> > application. In the ide cluster, select XML
>>> > Text Editor and you will be prompted via the red Resolve button to
>>> > include other XML-related NetBeans
>>> > modules
>>>
>>> Some other related modules are selected when clicking the "Resolve"
>>> button, all seems to be OK, but running the project fails, and I get an
>>> error message (see the attached document). This message does not help me
>>> in finding which module is missing.
>>>
>>> Trying again with selecting the whole ide cluster (all ide modules are
>>> selected), and running again the project is fine : I get a colored
>>> syntax when opening xml files, and there is a contextual menu for XML
>>> options.
>>>
>>> So, selecting only the XML Text editor module and the related modules by
>>> the "Resolve" button is not enough. Could anybody help me in finding
>>> what modules are really needed ? I join the log file that contains the
>>> errors.
>>>
>>> Note for Geertjan : this is NOT the tutorial that we discussed yesterday
>>> and that works perfectly :)
>>>
>>> Richard
>>>
>>>
>>> -
>>> 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
>>
>>
>> --
Eric Bresie
ebre...@gmail.com


Re: Re: [Netbeans Platform] Tutorials are unusable since transition to Apache

2021-03-06 Thread Eric Bresie
Would this help any?

https://github.com/apache/netbeans-website/pull/533

Since the links in the index.asciidoc were referencing html and not new 
asciidoc file names, I swapped .html to .asciidoc

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On March 6, 2021 at 1:58:57 PM CST, Geertjan Wielenga 
>  (mailto:geertjan.wiele...@googlemail.com.invalid)> wrote:
> Everything as it was before worked fine for you. Not for me. :-) I was 
> working on them all on my own -- and that is not how open source is supposed 
> to work.
>
> We're in Apache now, which means you get involved -- you don't say "I do not 
> know where and how to fill an issue", instead you say: "Where do I go and how 
> do I fill out an issue?"
>
> And that is here:
>
> https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-5397?filter=allopenissues
>
> Also, all the tutorials are now on GitHub. Including the one you're referring 
> to:
>
> https://github.com/apache/netbeans-website/blob/master/netbeans.apache.org/src/content/tutorials/nbm-xmleditor.asciidoc
>
> I've already fixed the broken code via this pull request, as a result of your 
> mail:
>
> https://github.com/apache/netbeans-website/pull/532
>
> Nothing here is "rather disappointing" -- everything is in progress, 
> including the tutorials. The big difference now is that you're in a project 
> where you're no longer a consumer, you're a contributor.
>
> Yes, the tutorials have been transferred from HTML to Asciidoc on GitHub and 
> the process is far from complete. Your mail has motivated me to commit to 
> working on one of the NetBeans Platform tutorials per day, it will take a 
> while to get everything up to scratch -- and a simple copy and paste of the 
> tutorials would not have done the trick, since the old ones were HTML and the 
> new ones are Asciidoc on GitHub -- so that you can now contribute too.
>
> Welcome to Apache. :-)
>
> Gj
>
>
> On Sat, Mar 6, 2021 at 8:51 PM (x-apple-data-detectors://7) Richard Grenon 
> mailto:rgreno...@gmail.com)> wrote:
> > Hello Geertjan.
> >
> > Netbeans Platform concepts are not easy to understand (I have purchased the 
> > book for beginners), and wrong tutorials are rather discouraging.
> >
> > I do not know where and how to fill an issue, and I discovered the problem 
> > for the XML editor tutorial this evening (x-apple-data-detectors://9). The 
> > old tutorial has gone and the new one is wrong. You can have a look on this 
> > tutorial that is rather short.
> >
> > Only the first screenshot for creating the project is correct. All 
> > following screenshots do not follow the text, and some of them seem to be 
> > from other applications.
> >
> > Finally, the short piece of code given for the method is melted with html 
> > links, so it is unreadable.
> >
> > I cannot provide correct screenshots and code because I have erased my 
> > first test of this tutorial, and the html page with the correct old version 
> > of the tutorial has gone.
> >
> > I do not know if other Apache tutorials are wrong, but the transfer of this 
> > one is rather disappointing. Why the old version from netbeans.org 
> > (http://netbeans.org) has not been simply copied to a new Apache page 
> > rather than rewritten with errors ? For me, correcting the tutorial would 
> > be simply to provide a link pointing on the old version.
> >
> > So the question is : where can we find all the tutorials from the old 
> > netbeans.org (http://netbeans.org)?
> >
> > Richard
> > Le sam. 6 mars 2021 à 20:05 (x-apple-data-detectors://12), Geertjan 
> > Wielenga  > (mailto:geertjan.wiele...@googlemail.com)> a écrit :
> > >
> > > Which screenshots specifically are wrong — I’d be happy to collaborate 
> > > with you to work on the tutorials that you would like fixed. If you 
> > > create a new issue for each tutorial you’d like to work together on, with 
> > > very precise descriptions of what is wrong, ideally providing the correct 
> > > screenshot or code, and otherwise just being precise in saying what 
> > > should be corrected, we can work on this together to improve the 
> > > tutorials in order of your preference.
> > >
> > > What do you think?
> > >
> > > Gj
> > >
> > > On Sat, 6 Mar 2021 at 19:54 (x-apple-data-detectors://14), Richard 
> > > mailto:rgreno...@gmail.com)> wrote:
> > > > Hello.
> > > >
> > > > Some days ago, I successfully performed a tutorial for XML Editor
> > > > extension. The link w

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

2021-03-05 Thread Eric Bresie
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
>
>


Re: Implementing Netbeans Editor Hints and Fixes

2021-02-27 Thread Eric Bresie
I should add...

I've seen references to "Java Hints" which assume more "Java Centrics".

In the IDE, for a Module...New...Java Hints which also assume follows the
"Java Centric" way of doing so,

AbstractHint class is identified as being deprecated

I assume the basis of the hint/fix mechanism started in Java, rolled out in
other places, and then may have started to migrate towards a newer more
language agnostic SPI interface.

I've seen some links online (see reference below; mainly from Geertjan)
about how to do some things with Annotations, Hints, and Fixes but I
believe this may be based on the "legacy Java Hint" way.  Much of this
seems to be older (2006-2011) which I'm suspecting while still valuable,
may not be the preferred current means of doing Hints/Fixes

Furthermore, how do these types of Hints, compare to those defined in the
Tools...Options...Editor...Hints area?  Do "Hints" defined elsewhere get
group or are present in this context in some way when registered properly?

On Slack, I've also heard mention of CSL (Common Scripting Language), which
seems to be another interface / package to implement language and parsing
support in some way which provides some Rule/Hint/Fix mechanisms as well.
 Is this another API I might want to consider (I believe the comment I saw
was in the 2016 timeframe - so maybe this is newer than Java Hints but not
sure)?  Is this the preferred route or the above mentioned "Newer" SPI
Fix/Hint route mentioned above is preferred.

Not specific to hints/fix (maybe should be a separate thread), but was
curious how that CSL compares to the newer LSP route?

Are there any newer tutorials, good examples (likely already in the
Netbeans code based) for the new Hint/Fix SPI interface?

Eric Bresie
ebre...@gmail.com

References:

   1. https://blogs.oracle.com/geertjan/fixable-hint
   2.
   https://blogs.oracle.com/geertjan/netbeans-java-hints%3a-quick-dirty-guide
   3.
   
https://blogs.oracle.com/geertjan/java-hint-generator-for-netbeans-ide-61-beta
   4.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-1
   5.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-2
   6.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-3
   7.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-4
   8.
   
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=6784
   9. http://wiki.netbeans.org/RubyHints#Ruby_Hints_And_Quick_Fixes



On Sat, Feb 27, 2021 at 10:24 AM Eric Bresie  wrote:

> I was trying to update some autocompletion logics in some netbeans code
> and was hoping someone could provide some suggestions and/or provide a good
> example of how to implement "Hints" and "Fixes" in the autocomplete context.
>
> Eric Bresie
> ebre...@gmail.com
>


Implementing Netbeans Editor Hints and Fixes

2021-02-27 Thread Eric Bresie
I was trying to update some autocompletion logics in some netbeans code and
was hoping someone could provide some suggestions and/or provide a good
example of how to implement "Hints" and "Fixes" in the autocomplete context.

Eric Bresie
ebre...@gmail.com