Re: [servlet]

2023-01-21 Thread Carl Mosca
Progress. Excellent.


On Sat, Jan 21, 2023 at 5:36 PM Peter Scharf 
wrote:

> Now I see that this also works:
>
> ${miles} miles = ${kilometers} kilometers
>
> I had put round braces instead of curly braces which caused the previous
> error.
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 21, 2023, at 7:12 AM, Carl Mosca  wrote:
>
> That should actually be a getAttribute to get the values you set - the
> parameter is what was passed to it but I am guessing you knew that.
>
> On Sat, Jan 21, 2023 at 8:03 AM Carl Mosca  wrote:
>
>> Good morning Peter,
>>
>> First off I have to apologize because I had not looked at your changes.
>> Given what I think you're trying to do at this point, you're not far off.
>>
>> You might do something like this to get the value of the miles for
>> example:
>>
>> <%= request.getParameter("miles")%>
>>
>> This will ultimately be a bit verbose and a bit harder to maintain than
>> other approaches so you might see beans used more if I understand where
>> you're going.
>>
>> If this makes sense conceptually, you might consider some of the slightly
>> newer approaches such as Spring Boot or Quarkus but that's just one
>> opinion.  Such development stacks are a bit more opinionated but there's
>> some flexibility in both of them as well.
>>
>> I have looked at software development as both an art and a science and I
>> certainly respect the wide variety of preferences and approaches I
>> have encountered over the years.
>>
>> The offer to chat stands.
>>
>> Regards,
>> Carl
>>
>> On Fri, Jan 20, 2023 at 10:17 PM Peter Scharf 
>> wrote:
>>
>>> Dear Carl,
>>> Thanks for your offer.  Actually, my ultimate goal in doing the tutorial
>>> I have accomplished: to create a war file and be able to deploy it using
>>> the Tomcat manager.  This is what I need to do to recreate my website
>>> server which was written a decade ago by an accomplished programmer who is
>>> no longer working for my organization.
>>> My narrower goal was to complete the tutorial, or to see how to do my
>>> the most modern and efficient methods what the tutorial was seeking to
>>> teach: pass information from a form to a program.
>>> I’m on central time and could meet you any afternoon that would be
>>> convenient for you.  I could set up a Zoom meeting or Google Meet.
>>> Yours,
>>> Peter
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>> On Jan 20, 2023, at 5:42 PM, Carl Mosca  wrote:
>>>
>>> Hi Peter,
>>>
>>> I don't have the code handy but it sounds like the tutorial (which
>>> admittedly I have not viewed) is not making clear the relationship between
>>> the servlet reference to the variable which is in the html form if I am
>>> recalling correctly.  (I used the NetBeans debugger to ensure that the
>>> value was present as expected in the code I ran.)
>>>
>>> I am wondering if walking through the code for 10-20 minutes would be
>>> more helpful.  Just a thought.  I am willing to do that if you like.  I am
>>> in the eastern time zone (Richmond, VA).
>>>
>>> Alternatively if you don't get an answer from the list, I will try to
>>> make some time to document this example.
>>>
>>> Having said all that, what is your ultimate goal?  This particular
>>> example represents a much older approach which is certainly workable but
>>> there are newer approaches which are more efficient in the long run.
>>>
>>> Happy to discuss.
>>>
>>> Regards,
>>> Carl
>>>
>>>
>>>
>>> On Fri, Jan 20, 2023 at 6: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
>>>>

Re: [servlet]

2023-01-20 Thread Carl Mosca
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_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 <
>>> sch...@sanskritlibrary.org> w

Re: [servlet]

2023-01-18 Thread Carl Mosca
It opened (automatically) here for me: http://localhost:8080/mavenproject3/

On Wed, Jan 18, 2023 at 1: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.
>>>> When I fill in a value in the miles box and click Convert to
>>>> kilometers, Safari gives me a
>>>> HTTP Status 404 – Not Found
>>>> Message The

Re: [servlet]

2023-01-18 Thread Carl Mosca
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 
> 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.
>> When I fill in a value in the miles box and click Convert to kilometers,
>> Safari gives me a
>> HTTP Status 404 – Not Found
>> Message The requested resource [/mavenproject3/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.
>>
>> After a couple of days trying to fix it, I’m still at a loss.
>> I did get rid of a problem not finding the native tomcat libraries:
>> INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
>> The Apache Tomcat Native library which allows using OpenSSL was not found
>> on the java.library.path: ...
>> by dowloading and installing The Apache Tomcat Native library
>> following instructions here:
>> https://formulae.brew.sh/formula/tomcat-native
>>
>> However, I still get the 404 not found in Safari.
>> Can anyone help me?
>>
>> I wonder whether these debugger messages indicate a problem using a
>> symbolic link to my real tomcat directory from /Library/Tomcat
>>
>> 16-Jan-2023 11:15:13.009 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dignore.endorsed.dirs=
>> 16-Jan-2023 11:15:13.010 INFO [main]
>> org.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,
>&

Re: [servlet]

2023-01-17 Thread Carl Mosca
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 
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.
> When I fill in a value in the miles box and click Convert to kilometers,
> Safari gives me a
> HTTP Status 404 – Not Found
> Message The requested resource [/mavenproject3/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.
>
> After a couple of days trying to fix it, I’m still at a loss.
> I did get rid of a problem not finding the native tomcat libraries:
> INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
> The Apache Tomcat Native library which allows using OpenSSL was not found
> on the java.library.path: ...
> by dowloading and installing The Apache Tomcat Native library
> following instructions here:
> https://formulae.brew.sh/formula/tomcat-native
>
> However, I still get the 404 not found in Safari.
> Can anyone help me?
>
> I wonder whether these debugger messages indicate a problem using a
> symbolic link to my real tomcat directory from /Library/Tomcat
>
> 16-Jan-2023 11:15:13.009 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dignore.endorsed.dirs=
> 16-Jan-2023 11:15:13.010 INFO [main]
> org.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


Re: RE: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-08 Thread Carl Mosca
But it would be cool to figure out how to trigger it because the installer
is a nice fallback IMHO.

On Tue, Mar 8, 2022 at 5:52 PM Peter Ream  wrote:

> Dave, thanks for your input. It is not necessary to have Security &
> Privacy unlocked before the trigger. Unlocking is necessary for deleting
> the app from Files and Folders. I was able to delete NB12.6 from Files and
> Folders, and get the retriggerr on first ~/Documents access. This mechanism
> I didn’t understand and now is clear. Installing NB13 thru Carl’s installer
> (basically downloading and manually building “Apache Netbeans 13.app)
> does not get this trigger mechanism. I am able to move forward with NB13,
> just with my projects outside ~/Documents, no big deal. Hopefully, the
> MacOS installer will resolve that when it is ready.
>
-- 
Regards,
Carl


Re: Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Carl Mosca
Sorry, typo on the OS version.

On Sun, Mar 6, 2022 at 4:48 PM Carl Mosca  wrote:

> Yes I am running an M1 with the same 22.2.1 macOS. Also tried same on my
> Intel Mac.
>
> Both are working with no mods.
>
> On Sun, Mar 6, 2022 at 4:42 PM Peter Ream  wrote:
>
>> Are you running same environment as me? Latest release Monterey 12.2.1 on
>> Apple Silicon? I modified init.sh as I outlined in my last post with xattr.
>> I don’t think this had any affect.
>>
>> Gj, this has to be an installer issue and not related to the project. I
>> created a “Java with Maven | Java Application” on NB13. This generates main
>> class “Hello World.” It runs, no problem. I opened on NB12.6 and it ran
>> fine. I changed it on NB12.6, no problem and opened on NB13, no problem.
>> Deleted project. Created on NB12.6 same way, but had to make my own main
>> class as it does not. It ran no problem. Opened on NB13, unloadable. None
>> of my NB12.6 projects will load on NB13. Either there is a problem with
>> this method of installation or there is a problem with NB13 in my
>> environment.
>>
>> On 2022/03/06 21:03:15 Carl Mosca wrote:
>>
>> What were the modifications?  The script has a fair number of options that
>>
>> folks contributed so that it shouldn’t need modification.
>>
>>
>> I used it to install 13 unmodified and I am not having application, file
>> or
>>
>> directory read write or execute permission issues.
>>
>>
>> But it’s difficult to diagnose without an example as Gj has pointed out.
>>
>>
>>
>>
>>
>> On 2022/03/06 21:03:15 Carl Mosca wrote:
>>
>> What were the modifications?  The script has a fair number of options
>> tha,
>>
>> folks contributed so that it shouldn’t need modification.
>>
>>
>> I used it to install 13 unmodified and I am not having application, file
>> or
>>
>> directory read write or execute permission issues.
>>
>>
>> But it’s difficult to diagnose without an example as Gj has pointed out.
>>
>>
>>
>> --
> Regards,
> Carl
>
-- 
Regards,
Carl


Re: Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Carl Mosca
Yes I am running an M1 with the same 22.2.1 macOS. Also tried same on my
Intel Mac.

Both are working with no mods.

On Sun, Mar 6, 2022 at 4:42 PM Peter Ream  wrote:

> Are you running same environment as me? Latest release Monterey 12.2.1 on
> Apple Silicon? I modified init.sh as I outlined in my last post with xattr.
> I don’t think this had any affect.
>
> Gj, this has to be an installer issue and not related to the project. I
> created a “Java with Maven | Java Application” on NB13. This generates main
> class “Hello World.” It runs, no problem. I opened on NB12.6 and it ran
> fine. I changed it on NB12.6, no problem and opened on NB13, no problem.
> Deleted project. Created on NB12.6 same way, but had to make my own main
> class as it does not. It ran no problem. Opened on NB13, unloadable. None
> of my NB12.6 projects will load on NB13. Either there is a problem with
> this method of installation or there is a problem with NB13 in my
> environment.
>
> On 2022/03/06 21:03:15 Carl Mosca wrote:
>
> What were the modifications?  The script has a fair number of options that
>
> folks contributed so that it shouldn’t need modification.
>
>
> I used it to install 13 unmodified and I am not having application, file or
>
> directory read write or execute permission issues.
>
>
> But it’s difficult to diagnose without an example as Gj has pointed out.
>
>
>
>
>
> On 2022/03/06 21:03:15 Carl Mosca wrote:
>
> What were the modifications?  The script has a fair number of options tha,
>
> folks contributed so that it shouldn’t need modification.
>
>
> I used it to install 13 unmodified and I am not having application, file or
>
> directory read write or execute permission issues.
>
>
> But it’s difficult to diagnose without an example as Gj has pointed out.
>
>
>
> --
Regards,
Carl


Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Carl Mosca
What were the modifications?  The script has a fair number of options that
folks contributed so that it shouldn’t need modification.

I used it to install 13 unmodified and I am not having application, file or
directory read write or execute permission issues.

But it’s difficult to diagnose without an example as Gj has pointed out.

On Sun, Mar 6, 2022 at 3:52 PM Peter Ream  wrote:

> Still not there, but have a different result. I’m still using 
> carljmosca/netbeans-macos-bundle:
> NetBeans installation script for Mac OS X (github.com)
> . After downloading
> the code, I modified install.sh. After the netbeans download, I added xattr
> to downloaded zip.
>
> .
> .
> .
> echo "Unpacking Netbeans archive..."
> *xattr -dr com.apple.quarantine "${TMPFILE}"*
> ${SUDO_COMMAND}unzip ${QUIETUNZIP} "${TMPFILE}" -d
> "${INSTALL_DIR}/NetBeans/Apache NetBeans
> ${NETBEANS_VERSION}.app/Contents/Resources/“
> .
> .
> .
>
> Now when I try to open an existing project, I get, “project is not a valid
> Netbeans project.”
>
> Might just have to wait for MacOS installer.
>
> On 2022/03/06 17:16:59 Giles Winstanley wrote:
>
> The downloaded zip file would likely be flagged by macOS as quarantined,
>
> so it's very likely needs the flag removed for the application to
>
> function as expected. This can either be done on the zip file before
>
> unzipping, or on the contents afterwards.
>
>  xattr -r -d com.apple.quarantine 
>
>
> Clearly you need to have trust in the contents of the folder to take
>
> this avenue, so I'm assuming the PGP/SHA checks have been done as
>
> appropriate. Once the quarantine flag is removed it should hopefully be
>
> back working as expected, although since you've already tried opening
>
> the application previously, it's probably worth giving it a fresh start
>
> before launch by deleting the new configuration it made and letting it
>
> import from a previous version as needed:
>
>  rm -rf "$HOME/Library/Application Support/NetBeans/13"
>
>
> Hope that helps,
>
>
> Stan
>
>
>
>
>
> On 2022/03/06 17:16:59 Giles Winstanley wrote:
>
> The downloaded zip file would likely be flagged by macOS as quarantined,
>
> so it's very likely needs the flag removed for the application to
>
> function as expected. This can either be done on the zip file before
>
> unzipping, or on the contents afterwards.
>
>  xattr -r -d com.apple.quarantine
>
>
> Clearly you need to have trust in the contents of the folder to take
>
> this avenue, so I'm assuming the PGP/SHA checks have been done as
>
> appropriate. Once the quarantine flag is removed it should hopefully be
>
> back working as expected, although since you've already tried opening
>
> the application previously, it's probably worth giving it a fresh start
>
> before launch by deleting the new configuration it made and letting it
>
> import from a previous version as needed:
>
>  rm -rf "$HOME/Library/Application Support/NetBeans/13"
>
>
> Hope that helps,
>
>
> Stan
>
>
>
>
>
> --
Regards,
Carl


Re: Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Carl Mosca
Peter,

Can you provide the output from ls -l for the project(s) that you're trying
to open?  Are you signed in to this computer as "user"?

Carl

On Sun, Mar 6, 2022 at 12:46 PM Peter Ream  wrote:

> Carl, I think permission/ownership is the problem. Not sure what I need
> to do. I substituted “user” for my userid.
>
> Stan. I think you are onto something. I have always used the installers to
> install NB. Used this script for the first time. Took awhile to figure it
> out. I do see this:
>
> userid@Peters-MacBook-Air NetBeans % ls -l
>
> total 0
>
> drwxrwxr-x  4 userid admin  128 Dec  6 13:50 Apache NetBeans 12.6.app
>
> drwxr-xr-x  3 root   wheel   96 Mar  6 10:56 Apache NetBeans 13.app
>
> userid@Peters-MacBook-Air NetBeans %
>
>
> I see NB13 is owned by root where NB12.6 is owned by me. Could this be
> causing the issue?
>
>
> All checksums are in order. I have run into that quarantining issue
> before, but not sure that is the issue here.
>
> Peter
>


-- 
Carl J. Mosca


Re: [NB13] [Maven] [POM] Netbeans 13 Maven POM problem

2022-03-06 Thread Carl Mosca
Hello Peter,

Have you confirmed that there is not a file permission/ownership issue with
these files/directories?  It seems you are user "user" from the location of
the Documents directory.  Is that the owner that has rw permissions on
pom.xml?

Regards,
Carl

On Sun, Mar 6, 2022 at 11:53 AM Peter Ream  wrote:

> I installed NB13 using carljmosca/netbeans-macos-bundle: NetBeans
> installation script for Mac OS X (github.com)
>  on MacOS 12.2.1 on
> MacBook Air M1. The install went without a hitch. However none of my maven
> projects will open. I get:
>
> 1 problem was encountered while building the effective model
> [FATAL] Non-readable POM /Users/user/Documents/Java
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml:
> /Users/user/Documents/Java
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml (Operation
> not permitted) @
>  for project  at /Users/user/Documents/Java
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml
>
> When I try “Resolve Problem”, I get:
>
> cd /Users/user/Documents/Java
> Projects/NetBeansProjects/Maven/Test/Handicap;
> JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
> "/Applications/NetBeans/Apache NetBeans
> 13.app/Contents/Resources/NetBeans/java/maven/bin/mvn" -DskipTests=true
> --fail-at-end package
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Operation not permitted
> pwd: error retrieving current directory: getcwd: cannot access parent
> directories: Operation not permitted
> pwd: error retrieving current directory: getcwd: cannot access parent
> directories: Operation not permitted
> chdir: error retrieving current directory: getcwd: cannot access parent
> directories: Operation not permitted
> chdir: error retrieving current directory: getcwd: cannot access parent
> directories: Operation not permitted
> pwd: error retrieving current directory: getcwd: cannot access parent
> directories: Operation not permitted
> Scanning for projects…
>
> There appears to be a problem with accessing the POM. I have “Files and
> Folders” and “Full Disk Access” set for NB13.
>
> Any ideas?
>


-- 
Carl J. Mosca


Re: Log4j vulnerability

2021-12-15 Thread Carl Mosca
Log4j-core

On Wed, Dec 15, 2021 at 7:07 PM Alonso Del Arte 
wrote:

> Excellent question. I hope not. I'll check if there's been any discussion
> in the Slack...
>
> On Wed, Dec 15, 2021 at 2:13 PM Mike Hallan 
> wrote:
>
>> Does Netbeans Platform at any level use Log4j? I was thinking maybe the
>> logging module may, if not use it, then be based on it.
>>
>> Are applications built on Netbeans Platform are in any way vulnerable to
>> Log4j exploits as described at
>> mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228 ?
>>
>> Thanks,
>> Mike
>>
>
>
> --
> Alonso del Arte
> Author at SmashWords.com
> 
> Musician at ReverbNation.com 
>
-- 
Regards,
Carl


Re: macOS, Monterey, M1 - can't show in Finder

2021-12-13 Thread Carl Mosca
Started from the command line:


Java 11:


WARNING: package sun.awt.X11 not in java.desktop

WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by
org.netbeans.modules.applemenu.ShowInFinder$1
(jar:file:/Applications/NetBeans/Apache%20NetBeans%2012.6.app/Contents/Resources/NetBeans/netbeans/platform/modules/org-netbeans-modules-applemenu.jar!/)
to method com.apple.eio.FileManager.revealInFinder(java.io.File)

WARNING: Please consider reporting this to the maintainers of
org.netbeans.modules.applemenu.ShowInFinder$1

WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations

WARNING: All illegal access operations will be denied in a future release


Java 17:



WARNING: package sun.awt.X11 not in java.desktop

WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop

WARNING: A terminally deprecated method in java.lang.System has been called

WARNING: System::setSecurityManager has been called by
org.netbeans.TopSecurityManager
(file:/Applications/NetBeans/Apache%20NetBeans%2012.6.app/Contents/Resources/NetBeans/netbeans/platform/lib/boot.jar)

WARNING: Please consider reporting this to the maintainers of
org.netbeans.TopSecurityManager

WARNING: System::setSecurityManager will be removed in a future release

On Mon, Dec 13, 2021 at 7:26 AM Juan Miguel Escribano 
wrote:

> Same here,
>
> Netbeans 12.6 with Java 17, BUT MacBook Pro INTEL
>
> “Show in Finder” does not work.
>
> Juan Miguel
>
> El 13 dic 2021, a las 12:35, Carl Mosca  escribió:
>
> I was seeing this as well running Java 17.  I switched back to 11 and it
> seems to be working...but I have only had one cup of coffee.  Running macOS
> 12.0.1 on an M1 MacBook Air.
>
> On Mon, Dec 13, 2021 at 12:56 AM David Green  wrote:
>
>> Hi,
>>
>> On a new MacBook Pro with M1 processor and running Monterey.  Running
>> NetBeans 12.6 but just tried 12.4 and same issue.
>>
>> Highlighting a source code file (or a folder), and right-click select
>> Tools | Show in Finder, nothing happens.  It used to work on my old
>> Intel-based machine running BigSur and earlier (can’t speak to Monterey on
>> Intel).
>>
>> On the same menu, is Tools | Open in Terminal which works to open
>> terminal with the working directory of the containing folder.
>>
>> Is this a NetBeans/OS problem or something specific to my machine?
>> NetBeans 12.6 (nor earlier) shows up in the System Preferences | Security &
>> Privacy | Automation where some programs that control other programs are
>> listed.  I was not able to find any error messages.
>>
>> Clearly, the workaround is to use the Open in Terminal and then type
>> “open .” in the terminal window.
>>
>> Thanks for any ideas,
>>
>> Dave
>>
>
>
> --
> Carl J. Mosca
>
>
>

-- 
Carl J. Mosca


Re: macOS, Monterey, M1 - can't show in Finder

2021-12-13 Thread Carl Mosca
I was seeing this as well running Java 17.  I switched back to 11 and it
seems to be working...but I have only had one cup of coffee.  Running macOS
12.0.1 on an M1 MacBook Air.

On Mon, Dec 13, 2021 at 12:56 AM David Green  wrote:

> Hi,
>
> On a new MacBook Pro with M1 processor and running Monterey.  Running
> NetBeans 12.6 but just tried 12.4 and same issue.
>
> Highlighting a source code file (or a folder), and right-click select
> Tools | Show in Finder, nothing happens.  It used to work on my old
> Intel-based machine running BigSur and earlier (can’t speak to Monterey on
> Intel).
>
> On the same menu, is Tools | Open in Terminal which works to open terminal
> with the working directory of the containing folder.
>
> Is this a NetBeans/OS problem or something specific to my machine?
> NetBeans 12.6 (nor earlier) shows up in the System Preferences | Security &
> Privacy | Automation where some programs that control other programs are
> listed.  I was not able to find any error messages.
>
> Clearly, the workaround is to use the Open in Terminal and then type “open
> .” in the terminal window.
>
> Thanks for any ideas,
>
> Dave
>


-- 
Carl J. Mosca


Re: MacOS Big Sur 12.4 won't start.

2021-08-28 Thread Carl Mosca
Glad to hear it!

On Sat, Aug 28, 2021 at 5:11 PM Will Hartung  wrote:

> I simply overinstalled it, and it started. So, something, somewhere got
> corrupted.
>
> It retained my plugins and such, so, all is well.
>
> Thanks for the help!
>
> Regards,
>
> Will Hartung
>
>
> On Fri, Aug 27, 2021 at 4:30 PM Carl Mosca  wrote:
>
>> Might also try removing both of these:
>>
>> ~/Library/Application Support/NetBeans/12.4
>> and
>> ~/Library/Caches/NetBeans/12.4
>>
>> On Fri, Aug 27, 2021 at 7:25 PM Carl Mosca  wrote:
>>
>>> I had not installed 16 before now.  It seems to work OK.
>>>
>>> On Fri, Aug 27, 2021 at 6:29 PM Will Hartung 
>>> wrote:
>>>
>>>> Ok, I tried that. I removed the 12.4 cache folder, went to the bin
>>>> directory and ran netbeans directly from the terminal.
>>>>
>>>> it silently stops.
>>>>
>>>> It looks like it's trying to start with JDK 16. Does 12.4 work with JDK
>>>> 16?
>>>>
>>>> I stuck a set -x in nbexec, and, among other things it showed this.
>>>>
>>>> + '[' -x /usr/libexec/java_home ']'
>>>> ++ /usr/libexec/java_home --version 1.8+
>>>> +
>>>> jdkhome=/Library/Java/JavaVirtualMachines/adoptopenjdk-16.jdk/Contents/Home
>>>>
>>>> Thanks!
>>>>
>>>> On Fri, Aug 27, 2021 at 2:42 PM Carl Mosca 
>>>> wrote:
>>>>
>>>>> You should be able to (try to) start from the command line like this:
>>>>>
>>>>> "/Applications/NetBeans/Apache NetBeans
>>>>> 12.4.app/Contents/Resources/NetBeans/netbeans/bin/netbeans"
>>>>>
>>>>>
>>>>> or similar.
>>>>>
>>>>>
>>>>> but I seem to recall a log that might help as well.
>>>>>
>>>>>
>>>>> Clearing the cache directory may be necessary. ~
>>>>> /Library/Caches/NetBeans/12.4
>>>>>
>>>>> On Fri, Aug 27, 2021 at 5:21 PM Will Hartung 
>>>>> wrote:
>>>>>
>>>>>> NB 12.4 won't start on MacOS Big Sur.
>>>>>>
>>>>>> It used to start. It used to work fine.
>>>>>>
>>>>>> But I click on the icon on my Dock, and it bounces once and quits.
>>>>>>
>>>>>> I double click the app in the Finder, it tries to launch and silently
>>>>>> fails.
>>>>>>
>>>>>> NB 12.2 launches fine.
>>>>>>
>>>>>> How can I start NB, I guess from the command line, to see what it
>>>>>> might be complaining about. I didn't see any new files or changes under
>>>>>> /Applications, or /Library/Application Support that would suggest 
>>>>>> something
>>>>>> is being logged during the start up..
>>>>>>
>>>>>> So, I'm kind of at an impasse for the moment.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Will Hartung
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Carl J. Mosca
>>>>>
>>>>
>>>
>>> --
>>> Carl J. Mosca
>>>
>>
>>
>> --
>> Carl J. Mosca
>>
> --
Regards,
Carl


Re: MacOS Big Sur 12.4 won't start.

2021-08-27 Thread Carl Mosca
Might also try removing both of these:

~/Library/Application Support/NetBeans/12.4
and
~/Library/Caches/NetBeans/12.4

On Fri, Aug 27, 2021 at 7:25 PM Carl Mosca  wrote:

> I had not installed 16 before now.  It seems to work OK.
>
> On Fri, Aug 27, 2021 at 6:29 PM Will Hartung 
> wrote:
>
>> Ok, I tried that. I removed the 12.4 cache folder, went to the bin
>> directory and ran netbeans directly from the terminal.
>>
>> it silently stops.
>>
>> It looks like it's trying to start with JDK 16. Does 12.4 work with JDK
>> 16?
>>
>> I stuck a set -x in nbexec, and, among other things it showed this.
>>
>> + '[' -x /usr/libexec/java_home ']'
>> ++ /usr/libexec/java_home --version 1.8+
>> +
>> jdkhome=/Library/Java/JavaVirtualMachines/adoptopenjdk-16.jdk/Contents/Home
>>
>> Thanks!
>>
>> On Fri, Aug 27, 2021 at 2:42 PM Carl Mosca  wrote:
>>
>>> You should be able to (try to) start from the command line like this:
>>>
>>> "/Applications/NetBeans/Apache NetBeans
>>> 12.4.app/Contents/Resources/NetBeans/netbeans/bin/netbeans"
>>>
>>>
>>> or similar.
>>>
>>>
>>> but I seem to recall a log that might help as well.
>>>
>>>
>>> Clearing the cache directory may be necessary. ~
>>> /Library/Caches/NetBeans/12.4
>>>
>>> On Fri, Aug 27, 2021 at 5:21 PM Will Hartung 
>>> wrote:
>>>
>>>> NB 12.4 won't start on MacOS Big Sur.
>>>>
>>>> It used to start. It used to work fine.
>>>>
>>>> But I click on the icon on my Dock, and it bounces once and quits.
>>>>
>>>> I double click the app in the Finder, it tries to launch and silently
>>>> fails.
>>>>
>>>> NB 12.2 launches fine.
>>>>
>>>> How can I start NB, I guess from the command line, to see what it might
>>>> be complaining about. I didn't see any new files or changes under
>>>> /Applications, or /Library/Application Support that would suggest something
>>>> is being logged during the start up..
>>>>
>>>> So, I'm kind of at an impasse for the moment.
>>>>
>>>> Thanks,
>>>>
>>>> Will Hartung
>>>>
>>>>
>>>
>>> --
>>> Carl J. Mosca
>>>
>>
>
> --
> Carl J. Mosca
>


-- 
Carl J. Mosca


Re: MacOS Big Sur 12.4 won't start.

2021-08-27 Thread Carl Mosca
I had not installed 16 before now.  It seems to work OK.

On Fri, Aug 27, 2021 at 6:29 PM Will Hartung  wrote:

> Ok, I tried that. I removed the 12.4 cache folder, went to the bin
> directory and ran netbeans directly from the terminal.
>
> it silently stops.
>
> It looks like it's trying to start with JDK 16. Does 12.4 work with JDK
> 16?
>
> I stuck a set -x in nbexec, and, among other things it showed this.
>
> + '[' -x /usr/libexec/java_home ']'
> ++ /usr/libexec/java_home --version 1.8+
> +
> jdkhome=/Library/Java/JavaVirtualMachines/adoptopenjdk-16.jdk/Contents/Home
>
> Thanks!
>
> On Fri, Aug 27, 2021 at 2:42 PM Carl Mosca  wrote:
>
>> You should be able to (try to) start from the command line like this:
>>
>> "/Applications/NetBeans/Apache NetBeans
>> 12.4.app/Contents/Resources/NetBeans/netbeans/bin/netbeans"
>>
>>
>> or similar.
>>
>>
>> but I seem to recall a log that might help as well.
>>
>>
>> Clearing the cache directory may be necessary. ~
>> /Library/Caches/NetBeans/12.4
>>
>> On Fri, Aug 27, 2021 at 5:21 PM Will Hartung 
>> wrote:
>>
>>> NB 12.4 won't start on MacOS Big Sur.
>>>
>>> It used to start. It used to work fine.
>>>
>>> But I click on the icon on my Dock, and it bounces once and quits.
>>>
>>> I double click the app in the Finder, it tries to launch and silently
>>> fails.
>>>
>>> NB 12.2 launches fine.
>>>
>>> How can I start NB, I guess from the command line, to see what it might
>>> be complaining about. I didn't see any new files or changes under
>>> /Applications, or /Library/Application Support that would suggest something
>>> is being logged during the start up..
>>>
>>> So, I'm kind of at an impasse for the moment.
>>>
>>> Thanks,
>>>
>>> Will Hartung
>>>
>>>
>>
>> --
>> Carl J. Mosca
>>
>

-- 
Carl J. Mosca

-
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: MacOS Big Sur 12.4 won't start.

2021-08-27 Thread Carl Mosca
You should be able to (try to) start from the command line like this:

"/Applications/NetBeans/Apache NetBeans
12.4.app/Contents/Resources/NetBeans/netbeans/bin/netbeans"


or similar.


but I seem to recall a log that might help as well.


Clearing the cache directory may be necessary. ~
/Library/Caches/NetBeans/12.4

On Fri, Aug 27, 2021 at 5:21 PM Will Hartung  wrote:

> NB 12.4 won't start on MacOS Big Sur.
>
> It used to start. It used to work fine.
>
> But I click on the icon on my Dock, and it bounces once and quits.
>
> I double click the app in the Finder, it tries to launch and silently
> fails.
>
> NB 12.2 launches fine.
>
> How can I start NB, I guess from the command line, to see what it might be
> complaining about. I didn't see any new files or changes under
> /Applications, or /Library/Application Support that would suggest something
> is being logged during the start up..
>
> So, I'm kind of at an impasse for the moment.
>
> Thanks,
>
> Will Hartung
>
>

-- 
Carl J. Mosca


Re: Java : HelloWorld

2021-08-04 Thread Carl Mosca
Not following the maven vs netbeans comment. I was referring to the fact
that onedrive is referenced and I seem to recall strange behavior on such
(google, etc) in the past but perhaps I dreamed it.

On Wed, Aug 4, 2021 at 5:50 PM Geertjan Wielenga
 wrote:

> Not NetBeans. Maven. Anything that works/does not work in Maven works/does
> not work in NetBeans.
>
> Gj
>
> On Wed, 4 Aug 2021 at 23:23, Scott Palmer  wrote:
>
>> That’s the standard install location on Windows.  If it doesn’t work with
>> NetBeans it would be broken for most people on Windows.
>>
>> Scott
>>
>> On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com.INVALID> wrote:
>>
>> Maybe connected to installing in a dir with spaces, i.e., C:\Program
>> Files\Java\jdk-16.0.2\bin\java.exe
>>
>> Gj
>>
>> On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman 
>> wrote:
>>
>>> Hey Peter,
>>> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
>>>
>>> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann 
>>> wrote:
>>>
 Hi NetBeans users,

  Although I have significant programming experience I’m new to NetBeans
 and Java and I’m having trouble getting the simplest “Hello World” program
 to run. I keep getting the message shown below:



 Cannot run program "cmd" (in directory
 "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
 Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
 -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
 -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
 -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
 -Dfile.encoding=UTF-8 process-classes
 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec



 I’m sure it’s something simple , any help would be appreciated.



 zinn...@gmail.com





 Sent from Mail  for
 Windows 10


 -
 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
>>>
>>>
>> --
Regards,
Carl


Re: Failing at updating Netbeans to 12.4 on a Mac

2021-06-03 Thread Carl Mosca
Yes the new version should be installed.

On Thu, Jun 3, 2021 at 9:32 PM Chris Olsen  wrote:

> Hello, Everyone --
>
>   I currently am running Netbeans 11.3 on a relatively old Mac.  I tried
> to update ( = "Check for updates) but it failed.
>
>   a)  Should it, in a just world, have worked?
>
>   b)  Should I just not care, uninstall 11.3 and install 12.4?
>
>   I am NOT a Mac person and  messing this up would engender LOTS of
> head-scratching on my part...
>
>   Thanks in advance!
>
>   -- Chris
>
> -
> 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
>
> --
Regards,
Carl


Re: Excel Sheet: Sheet problem

2021-06-01 Thread Carl Mosca
Perhaps you could make your code along with an example worksheet available
in a publicly accessible (git) repo.

It would be easier for someone to reproduce and debug the issue...assuming
the answer that has already been provided is not applicable or unclear.
Otherwise, folks will have to help an issue or two at a time which will not
be very efficient and a bit frustrating.

If the screen capture is still current, it appears that you're missing the
import for the Sheet class.  From the Source menu, you can use "Fix
imports" to add the needed import statement(s).

It's hard to tell if/where "workbook" is declared but it appears to be
undefined or out of scope.




On Mon, May 31, 2021 at 6:56 PM Zulfi Khan 
wrote:

>
> Hi,
> I have sent my question to apache poi list but no body is replying. Please
> tell me the correct email address.
>
> Zulfi.
> On Sunday, May 16, 2021, 7:11:38 PM CDT, Andreas Reichel <
> andr...@manticore-projects.com> wrote:
>
>
> Hello Zulfi.
>
> On Mon, 2021-05-17 at 00:06 +, Zulfi Khan wrote:
>
> Sheet sheet = workbook.getSheetAt();
>
>
> The Sheet Index is missing when calling getSheetAt( ** );
> Also this is the Netbeans list and you will better ask any question on the
> Apache POI list.
>
> Best regards
> Andreas
>
>

-- 
Carl J. Mosca
-- 
Regards,
Carl


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

2021-04-20 Thread Carl Mosca
On what I hope is a lighter note...I recall being in a session at a JavaOne
years ago when a presenter asked if we knew the difference between Ant and
Maven.

The answer was "the guy who created Ant apologized".  (Recall that maven
was a bit slow in the early days when it was just getting popular.)

I thought it was as funny as it was intended at the time (and I still do).
It also reminds me of 1. it used to be called JavaOne and 2. I do miss
in-person conferences a bit.

FWIW, I don't hate Ant, Maven, or Gradle (but I have used Maven more than
the other two.)

Certainly, ant was very popular but moving to maven (or gradle) can
certainly be done.

Was hoping a bit of levity/good memories might be appreciated. :)

Happy coding.

On Tue, Apr 20, 2021 at 9:38 PM Scott Palmer  wrote:

>
> > On Apr 20, 2021, at 1:10 PM, Lisa Ruby 
> wrote:
> >
> >  For those of you who have used Maven for a long time it may seem
> simple and straightforward, but for those of us who haven't it's not. I've
> struggled to try and understand it and figure out how to use it for my
> software project and gave up. And it's a huge amount of overhead, extra
> disk space usage, and more bits and pieces to keep track of that isn't
> justifiable for small simple projects. ANT works just fine for me, and I
> will keep using it for as long as I possibly can. I need to focus my time
> on getting my software out, not on the tools I have to use to do it.
> >
> > Lisa
>
> It is precisely because you want to focus on getting your software out
> that you *need* to learn the modern tools for doing so.
>
> Your Gradle project file could literally be one line, depending on your
> needs.
>
> Maven is certainly more verbose (My preference is Gradle), but the project
> setup is still usually a single command that will write a basic pom.xml
> file for you.
>
> Either of those tools is a step up. Sticking your head in the sand and
> pretending you can stick with Ant forever is not the way to go.
>
> I get that “it works for you now”. But this discussion is a perfect
> example of how that will change on you.
>
> Cheers,
>
> Scott
>
>
> -
> 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
>
>

-- 
Carl J. Mosca


Re: Running NetBeans faster on Apple Mac M1

2021-02-25 Thread Carl Mosca
Yes, and "wow"

On Thu, Feb 25, 2021 at 8:00 AM Geertjan Wielenga
 wrote:

> I was reading through this and looking for the "but..." and there wasn't
> any. Awesome, thanks a lot for this info.
>
> Gj
>
> On Thu, Feb 25, 2021 at 1:55 PM David Gradwell  wrote:
>
>> Hi,
>>
>>
>>
>> I do my development on an Apple Mac M1 using NetBeans 12.2
>>
>>
>>
>> I downloaded the macOS Arm 64 bit version of jdk.15 from
>> https://www.azul.com/downloads/zulu-community/?architecture=arm-64-bit=jdk
>> installed the JDK and am running it in terminal at the moment until I trust
>> it enough to change the NetBeans config.
>>
>>
>>
>> Terminal command as follows:
>>
>>
>>
>> "/Applications/NetBeans/Apache NetBeans 12.2.app/Contents/MacOS/netbeans"
>> --jdkhome  /Library/Java/JavaVirtualMachines/zulu-15.jdk/Contents/Home
>>
>>
>>
>> The result is that I have NetBeans running on an Arm native jdk which is,
>> at a guess, 5 times faster than using NetBeans on a “normal” jdk.  A maven
>> project with 40 files builds in 2 or 3 seconds.
>>
>>
>>
>> There seem to be no problems with NetBeans and this version of Java.
>>
>>
>>
>> Hope that’s of interest.
>>
>>
>>
>> Regards
>>
>>
>>
>> David G
>>
>>
>>
>>
>>
>

-- 
Carl J. Mosca


Re: using JExcel with Netbeans 12 running over Ubuntu 14.04

2021-01-18 Thread Carl Mosca
Chris,

Yes, please do let us know if you're using ant or maven if you're still
stuck after checking out David's suggestions.  Personally, I would
recommend maven (or gradle).

Also, as Gj referenced, if you've got a sample project in Github,
bitbucket, or somewhere that we can take a look, more specific help might
be offered.

I created a project here https://github.com/carljmosca/jxl-demo with the
library (using the included demo code) but it seems a bit dated.  I don't
do much with Office docs/spreadsheets
 these days but I think the one that David recommended is current.

After building it in NetBean, I ran it from the command line like this: java
-jar target/jxl-demo-1.0.jar -ps somefile.xls

HTH,
Carl

On Mon, Jan 18, 2021 at 8:54 AM David Gradwell  wrote:

> Chris ,
>
>
>
> If your project is a Maven project, look at
> https://mvnrepository.com/artifact/net.sourceforge.jexcelapi/jxl/2.6 (or
> better still follow the latest version link).
>
>
>
> If your project is an Ant project then find the jar and include it in the
> project libraries.  For example,
> https://www.findjar.com/jar/net/sourceforge/jexcelapi/jxl/2.6/jxl-2.6.jar.html
> also
>
>
>
> There is another Java to Excel api see
> https://poi.apache.org/components/spreadsheet/ that I have used
> successfully.
>
>
>
> DG
>
>
>
> *From: *Geertjan Wielenga 
> *Date: *Monday, 18 January 2021 at 12:52
> *To: *"Christopher C. Lanz" 
> *Cc: *"users@netbeans.apache.org" 
> *Subject: *Re: using JExcel with Netbeans 12 running over Ubuntu 14.04
>
>
>
> For example, I'd love to help, but I have no idea what "jxl library" is,
> where to find it, etc, I have no idea what kind of project you're talking
> about -- Ant-based? Maven-based? Gradle-based? I.e., you either need to
> provide a project on GitHub so someone can look at it or complete
> instructions so someone can help you.
>
>
>
> If no one helps, it means that you haven't provided the info needed for
> someone to help you.
>
>
>
> Gj
>
>
>
> On Mon, Jan 18, 2021 at 1:46 PM Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
> You'll get help when you provide step by step instructions or, even
> better, a sample project on GitHub.
>
>
>
> Gj
>
>
>
> On Mon, Jan 18, 2021 at 1:43 PM Christopher C. Lanz
>  wrote:
>
> Hello,
>
>
>
> One of our fellow correspondents has suggested that I repeat this
> question. I am following their advice. Please forgive me.
>
>
>
> I need to use the jxl library in Netbeans 12 running in Ubuntu 14.04. I
> have followed the directions available online:
>
>- adding the jxl-2.6.jar file to the classpath
>- placing the jxl-2.6.jar file in the same directory as the source
>- placing it in a new folder called "+libs"
>- adding a new library containing it
>- importing the classes
>
> and yet NetBeans is still unable to find the classes in the library,
> saying "the jxl package does not exist". I haven't found any instructions
> specifically for Netbeans 12 on linux - please let me know if they exist.
> It is likely that I'm missing some step in the process, so please mention *
> all* the necessary steps after download/extract the zipped .jar file.
>
>
>
>
>
> Chris Lanz
>
> Department of Computer Science
>
> 340 Dunn Hall, SUNY Potsdam
>
> lan...@potsdam.edu
>
> 315 268 1547
>
>
>
>
>
>
>
>

-- 
Carl J. Mosca


Re: support in the absence of community help

2021-01-18 Thread Carl Mosca
I would ask again here if it was completely ignored I assume that is an
unfortunate oversight.



On Mon, Jan 18, 2021 at 7:18 AM Christopher C. Lanz
 wrote:

> Hello,
>
> I have asked a question here and on stack overflow. No answers were
> forthcoming. In such a situation, are users simply hung out to dry, or is
> there any option for support from Apache-Netbeans, or any other
> NetBeans-savvy source?
>
> I would happily pay for it, but I would rather not pay the $1,200 that
> their business support plan requires, for one question.
>
> Chris Lanz
>
> Department of Computer Science
>
> 340 Dunn Hall, SUNY Potsdam
>
> lan...@potsdam.edu
> 315 268 1547
>
>
>
>
> --
Regards,
Carl


Re: NetBeans on Mac 11 stopped working

2020-11-13 Thread Carl Mosca
After seeing the thread, I updated to Big Sur but so far have not seen an
issue.

Carl

On Fri, Nov 13, 2020 at 6:08 PM Scott Palmer  wrote:

> I’ve been running since the Big Sur betas and the only significant issue I
> noticed was that Big Sur breaks /usr/libexec/java_home so that it is almost
> completely useless.
> I think the NB installer might use that to get the directory for the
> installed JDK.
> Otherwise I’ve been extracting NB betas on top of a previously installed
> version and it has worked without issues.
>
> Scott
>
> On Nov 13, 2020, at 5:49 PM, Geertjan Wielenga
>  wrote:
>
> 
>
> Can you run NetBeans from the terminal:
>
> /Applications/NetBeans/Apache\ NetBeans\ 12.1.app/Contents/Resources/Ne
> tBeans/netbeans/bin/netbeans
>
> Gj
>
> On Fri, 13 Nov 2020 at 23:46, Rik Scarborough  wrote:
>
>> I updated my Mac to 11 and NetBeans will not longer run.  Any ideas where
>> to start debugging this?
>>
>> ~Rik
>> *Believe in Good*
>>
>>

-- 
Carl J. Mosca


Re: Problem with dialog windows in macOS Big Sur

2020-10-23 Thread Carl Mosca
I have not tried BigSur yet but I appreciate the heads up - thank you.

Carl

On Fri, Oct 23, 2020 at 8:21 AM Julio Cesar Machado 
wrote:

> Hi everyone.
>
>
>
> I’m using Netbeans in macOS Big Sur. The programs runs normally, but as
> soon as I access a project properties dialog (for example or search
> dialog), the whole program hangs and all the widgets start blinking like
> crazy.
>
> I haven't been successful with any version of Netbeans on Big Sur. Anyone
> experiencing the same issue?
>
>
>
> Regards.
>
> --
>
> Julio Cesar Machado
>
>
>


-- 
Carl J. Mosca


Re: remote Tomcat server deployment

2020-08-13 Thread Carl Mosca
Thank you both for the suggestions.  I will see how either might work for
our use case.

Regards,
Carl

On Thu, Aug 13, 2020 at 3:44 AM Andreas Ernst  wrote:

> Am 13.08.20 um 01:21 schrieb Carl Mosca:
> > I currently have a need to deploy a web application to a remote Tomcat
> > server.
> >
> > I believe there's an option to do so for Glassfish but I am wondering if
> > the same exists (or existed at some point) for Tomcat.
> If you work with Maven, take a look at cargo-maven2-plugin.
>
> --
> ae | Andreas Ernst | IT Spektrum
> Postfach 5, 65612 Beselich
> Schupbacher Str. 32, 65614 Beselich, Germany
> Tel: +49-6484-91002 Fax: +49-6484-91003
> a...@ae-online.de | www.ae-online.de
> www.tachyon-online.de
>
> -
> 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
>
>

-- 
Carl J. Mosca


remote Tomcat server deployment

2020-08-12 Thread Carl Mosca
I currently have a need to deploy a web application to a remote Tomcat
server.

I believe there's an option to do so for Glassfish but I am wondering if
the same exists (or existed at some point) for Tomcat.

TIA,
Carl

-- 
Carl J. Mosca


Re: Apache NetBeans 12.0 Beta 5

2020-05-25 Thread Carl Mosca
A while back, I wrote a NetBeans installation script for MacOS here:
https://github.com/carljmosca/netbeans-macos-bundle

There have been a number of contributions and although the script is no
longer necessary (for the most part), you can also do this (or something
similar):

./install.sh --netbeans-uri
https://builds.apache.org/view/M-R/view/NetBeans/job/netbeans-TLP/job/netbeans/job/release120/16/artifact/dist/netbeans/netbeans-12.0-beta5-bin.zip
--netbeans-version 12.0-beta5

to install any given version.

HTH,
Carl

On Mon, May 25, 2020 at 7:05 PM Malcolm Fitzgerald <
malc...@notyourhomework.net> wrote:

> If you already have a copy of netbeans installed you can easily use the
> latest code without waiting for a MacOS bundle to be prepared.
>
>
>
>- Download 12.0 beta 5
>- Extract it
>- Duplicate your existing Netbeans and rename it.
>- Control click the new Netbeans copy and select "Show Package
>Contents"
>- Open the Resources folder
>- You will find  a Netbeans directory there. Note the capitalisation
>of that folder then delete it.
>- Copy the netbeans directory you extracted from the v12.0 beta 5 zip
>bundle into the Resources directory. You may need to rename it to Netbeans
>if the original was capitalised.
>- At this point you should be able to move back up the folder chain
>until you see your app and run it normally.
>- Optionally, you can open the netbeans folder, open the bin folder
>and toss away the two .exe files
>
>
> Malcolm
>
>
> On 25/05/20 11:05 pm, David Gradwell wrote:
>
> Mac installer to test ?
>
>
>
> Regards
>
>
>
> David
>
>
>
>
>
>
>
> *From: *Geertjan Wielenga  
> *Date: *Monday, 25 May 2020 at 11:49
> *To: *NetBeans Mailing List 
> 
> *Subject: *Apache NetBeans 12.0 Beta 5
>
>
>
> Hi all,
>
> The 5th Beta for Apache NetBeans 12 is out. We hope it fixes the blocker.
>
> Source and binaries are here:
>
>
> https://builds.apache.org/view/M-R/view/NetBeans/job/netbeans-TLP/job/netbea
> ns/job/release120/16/artifact/dist/netbeans/
> 
>
> binaries sha512
>
> 49be4866cac811c3eb1d435f2c0ac422e31aa705529def17c1610a3820f7728f694d7b1e06e9
> 6d25b8688b1bce48b86a47b61411f8dc25d9bf594f5cbb1eda57
>
> source sha512
>
> dbb531db3a9dc1368ea96d5e026ba6431219e995c4ca7146fbf3a2b423eecd52bd1178882e40
> ec33417113e807c23272c2bc14a69746374efbaac6eb957f8412
>
> Installer (not certified, no sha512):
>
>
> https://builds.apache.org/view/M-R/view/NetBeans/job/netbeans-TLP/job/netbea
> ns/job/release120/16/artifact/dist/installers/
> 
>
> What is included in Beta 5 that was not in Beta 4:
>
>
>
> https://github.com/apache/netbeans/pull/2146
>
> Do not forget the survey, please fill it in:
> https://forms.gle/k7JnPCSQh5MJUCzh8
>
>
>
> Hopefully we'll send out the voting thread to release 12.0 this week.
>
>
>
> Thanks,
>
>
>
> Gj
>
>

-- 
Carl J. Mosca


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

2020-02-28 Thread Carl Mosca
I tend not to question the need for multiple versions of Java.

Only this week I found myself installing GraalVM Java 8 after something
would not work as a native-image with GraalVM Java 11.

On Fri, Feb 28, 2020 at 4:44 PM John G. Weed 
wrote:

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

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

2020-02-28 Thread Carl Mosca
Very cool, thank you for sharing.  Makes me want to work with a Pi
again...it's been a while.

On Fri, Feb 28, 2020 at 4:26 PM John G. Weed 
wrote:

> All,
>
> Forgive me if this needs to be sent via some other venue, but since this
> has been such a pain in the butt to find an answer to, I thought I'd write
> out the steps I followed to build a Raspberry Pi 4B (4GB) running the
> Ubuntu 18.04.4 LTS operating system, with the xubuntu desktop, for the
> purpose of running the NetBeans 11.2 IDE with (most importantly) support
> for the NetBeans 8.2 C/C++ plugin--one long run-on sentence.
>
> Our software baseline is currently running on some pretty hefty HP DL-380s
> (the Enterprise version), as well as some smaller tactical units. But we
> were missing a portable, pocket version platform. I wanted to be able to
> use not only the same operating system (Ubuntu 18.04), but the same IDE as
> well. This would dramatically decrease any cross platform maintenance
> issues. The following steps make this entirely possible. Many thanks to the
> folks who provided valuable suggestions.
>
> The following are the steps required to build a Ubuntu 18.04.4 LTS server
> based on the Raspberry Pi 4B (4GB) platform supporting the Apache NetBeans
> 11.2 IDE with the NetBeans 8.2 C/C++ plugin. If you are already well versed
> in Ubuntu and Raspberry Pi you may find the instructions a tad verbose.
> However, in order to reach the widest possible audience, I’ve taken the
> time to illustrate in excruciating detail. Please forward any changes or
> correction to nonsequi...@fastmail.com.
>
> Required:
>
>1.
>
>Raspberry Pi 4B 4GB
>1.
>
>   HDMI monitor
>   2.
>
>   USB Keyboard and mouse
>   3.
>
>   USB power supply
>   2.
>
>16GB MicroSD
>3.
>
>Windows 10 or equivalent PC (to burn Ubuntu image to MicroSD card)
>
> Windows PC Steps:
>
>1.
>
>Wipe-clean (delete all exiting partitions) and format the 16GB MicroSD
>card using MiniTool Partition Wizard or equivalent
>2.
>
>Download file ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img
>
> 
>from site https://ubuntu.com/download/raspberry-pi
>3.
>
>Using Win32 Disk Imager or equivalent, write
>the ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img to the MicroSD 
> card.
>
> Raspberry PI 4B (RPi4):
>
>1.
>
>With power off, connect monitor, keyboard and mouse to the RPi4
>2.
>
>Insert imaged MicroSD card into the RPi4 and power up
>3.
>
>Login using username "ubuntu" and password "ubuntu"
>4.
>
>Respond to the change password request as appropriate and login
>5.
>
>Update configuration sources by entering: sudo apt-get update
>6.
>
>Install xubuntu desktop environment by entering: sudo apt-get install
>xubuntu-desktop
>7.
>
>Login to RPi4 using the changed password
>8.
>
>Run the Software Updater application, if it doesn’t start
>automatically, to update the various operating ystem components before
>continuing further; this include any requested reboots
>9.
>
>Using the Firefox browser, download file
>jdk-8u241-linux-arm64-vfp-hflt.tar.gz
>
> 
>from site URL
>https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
>10.
>
>Bring up a Terminal window and enter the following commands to expand
>and install the java components necessary to run NetBeans-11.2:
>1.
>
>   cd Downloads
>   2.
>
>   sudo mkdir /usr/lib/jvm
>   3.
>
>   sudo tar xvf jdk-8u241-linux-arm64-vfp-hflt.tar.gz --directory
>   /usr/lib/jvm/
>   4.
>
>   /usr/lib/jvm/jdk1.8.0_241/bin/java -version
>   5.
>
>   /usr/lib/jvm/jdk1.8.0_241/bin/javac -version
>   6.
>
>   sudo apt-get install openjdk-11-jdk
>   7.
>
>   java -version
>   8.
>
>   sudo update-alternatives --install /usr/bin/java java
>   /usr/lib/jvm/jdk1.8.0_241/bin/java 1
>   9.
>
>   sudo update-alternatives --install /usr/bin/javac javac
>   /usr/lib/jvm/jdk1.8.0_241/bin/javac 1
>   10.
>
>   sudo update-alternatives --config java
>   11.
>
>   sudo update-alternatives --config javac
>   11.
>
>Using the same Terminal window, enter the following command to
>baseline the NetBeans dependencies:
>1.
>
>   sudo apt-get install g++
>   2.
>
>   sudo apt-get make
>   12.
>
>Using the same Firefox browser, download file 
> *Apache-NetBeans-11.2-bin-linux-x64.sh
>
> ,
>**to the Downloads directory, **from site **URL **
>
> https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh
>
> 

Re: Package org.jdesktop.beansbinding does not exist

2020-01-21 Thread Carl Mosca
I thought I forwarded my reply (after sending to only Gj by mistake).  Here
it is (again) just in case.

It's been a long time since I used beansbinding but I believe last I did we
started using betterbeansbinding.


it.tidalwave.betterbeansbinding
betterbeansbinding
1.3.0


it.tidalwave.betterbeansbinding
betterbeansbinding-swingbinding
1.3.0


But I think Gj is right - rewrite if possible.

On Tue, Jan 21, 2020 at 9:14 AM Geertjan Wielenga 
wrote:

> I'd take a look but the repo doesn't seem to be there or public:
>
> https://github.com/apjanke/antlrworks2-jank
>
> Indeed, we had to remove beansbinding, if at all possible I'd consider
> rewriting the code (unless it's way too much) related to this to not rely
> on this.
>
> Great that you're working on this, it's a great and useful NetBeans
> Platform project to resurrect.
>
> Gj
>
> On Tue, Jan 21, 2020 at 2:47 PM Andrew Janke  wrote:
>
>> Hi, Apache NetBeans folks,
>>
>> I'm trying to resurrect the ANTLRWorks 2 IDE project
>> (https://github.com/tunnelvisionlabs/antlrworks2) and get it running on
>> Apache NetBeans 11.2. This codebase was previously running on NetBeans
>> 8.2.
>>
>> There are several references to classes in org.jdesktop.beansbinding in
>> this project. When I open it in NetBeans, I get errors saying this
>> package does not exist, and it can't find the classes. I downloaded a
>> beansbinding-1.2.1-jar (SHA256 sum
>> eb8a4f4648b95939214960a572f8aadd71af4dd38b06017ee4f8f37d0c4b5e59) from a
>> random site on the internet, added it to a New Library in my NetBeans
>> project, and added a dependency on that library in my ANTLRWorks Editor
>> project, which is the project that has these references in it. But
>> NetBeans is still saying it can't find the package.
>>
>> Anybody know what I can do to fix this?
>>
>> You can see the source, including the nbproject definition, at
>> https://github.com/apjanke/antlrworks2-jank, if that helps.
>>
>> Cheers,
>> Andrew Janke
>>
>> -
>> 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
>>
>>

-- 
Carl J. Mosca


Fwd: Package org.jdesktop.beansbinding does not exist

2020-01-21 Thread Carl Mosca
-- Forwarded message -
From: Carl Mosca 
Date: Tue, Jan 21, 2020 at 9:21 AM
Subject: Re: Package org.jdesktop.beansbinding does not exist
To: Geertjan Wielenga 


It's been a long time since I used beansbinding but I believe last I did we
started using betterbeansbinding.


it.tidalwave.betterbeansbinding
betterbeansbinding
1.3.0


it.tidalwave.betterbeansbinding
betterbeansbinding-swingbinding
1.3.0


But I think Gj is right - rewrite if possible.

On Tue, Jan 21, 2020 at 9:14 AM Geertjan Wielenga 
wrote:

> I'd take a look but the repo doesn't seem to be there or public:
>
> https://github.com/apjanke/antlrworks2-jank
>
> Indeed, we had to remove beansbinding, if at all possible I'd consider
> rewriting the code (unless it's way too much) related to this to not rely
> on this.
>
> Great that you're working on this, it's a great and useful NetBeans
> Platform project to resurrect.
>
> Gj
>
> On Tue, Jan 21, 2020 at 2:47 PM Andrew Janke  wrote:
>
>> Hi, Apache NetBeans folks,
>>
>> I'm trying to resurrect the ANTLRWorks 2 IDE project
>> (https://github.com/tunnelvisionlabs/antlrworks2) and get it running on
>> Apache NetBeans 11.2. This codebase was previously running on NetBeans
>> 8.2.
>>
>> There are several references to classes in org.jdesktop.beansbinding in
>> this project. When I open it in NetBeans, I get errors saying this
>> package does not exist, and it can't find the classes. I downloaded a
>> beansbinding-1.2.1-jar (SHA256 sum
>> eb8a4f4648b95939214960a572f8aadd71af4dd38b06017ee4f8f37d0c4b5e59) from a
>> random site on the internet, added it to a New Library in my NetBeans
>> project, and added a dependency on that library in my ANTLRWorks Editor
>> project, which is the project that has these references in it. But
>> NetBeans is still saying it can't find the package.
>>
>> Anybody know what I can do to fix this?
>>
>> You can see the source, including the nbproject definition, at
>> https://github.com/apjanke/antlrworks2-jank, if that helps.
>>
>> Cheers,
>> Andrew Janke
>>
>> -
>> 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
>>
>>

-- 
Carl J. Mosca


-- 
Carl J. Mosca


Re: Package org.jdesktop.beansbinding does not exist

2020-01-21 Thread Carl Mosca
Sorry, I did not do a "reply all" - forwarded.

On Tue, Jan 21, 2020 at 11:38 AM Andrew Janke  wrote:

> That sounds like a good idea. I've started the process to do so.
>
> What do you mean by "Carl's co-ordinates above"? Did I miss an email?
>
> And do you know what Maven coordinates I might use to get the following
> classes:
>
> org.netbeans.editor.Utilities
> org.netbeans.editor.ext.ExtKit
> org.netbeans.modules.editor.MainMenuAction
>
> org.netbeans.modules.editor.NbEditorUtilities
>
>
> Googling isn't much help; I found
> org.netbeans.api:org-netbeans-modules-editor-util, but that didn't seem to
> fix it.
>
> Cheers,
> Andrew
>
> On 1/21/20 10:17 AM, Geertjan Wielenga wrote:
>
> While you're at it, you may as well try to move the project to Maven and
> then Carl's co-ordinates above can be used.
>
> Gj
>
> On Tue, Jan 21, 2020 at 3:30 PM Andrew Janke  wrote:
>
>> Oops! I've made the repo public.
>>
>> I'm up for rewriting the code. I'd like to get rid of the dependency on
>> an obsolete library. I don't suppose there's a migration guide for this? I
>> don't know org.jdesktop.beansbinding well enough to know what to replace it
>> with.
>>
>> Glad to hear I might have some users if I get this up and running!
>>
>> Cheers,
>> Andrew
>>
>> On 1/21/20 9:14 AM, Geertjan Wielenga wrote:
>>
>> I'd take a look but the repo doesn't seem to be there or public:
>>
>> https://github.com/apjanke/antlrworks2-jank
>>
>> Indeed, we had to remove beansbinding, if at all possible I'd consider
>> rewriting the code (unless it's way too much) related to this to not rely
>> on this.
>>
>> Great that you're working on this, it's a great and useful NetBeans
>> Platform project to resurrect.
>>
>> Gj
>>
>> On Tue, Jan 21, 2020 at 2:47 PM Andrew Janke  wrote:
>>
>>> Hi, Apache NetBeans folks,
>>>
>>> I'm trying to resurrect the ANTLRWorks 2 IDE project
>>> (https://github.com/tunnelvisionlabs/antlrworks2) and get it running on
>>> Apache NetBeans 11.2. This codebase was previously running on NetBeans
>>> 8.2.
>>>
>>> There are several references to classes in org.jdesktop.beansbinding in
>>> this project. When I open it in NetBeans, I get errors saying this
>>> package does not exist, and it can't find the classes. I downloaded a
>>> beansbinding-1.2.1-jar (SHA256 sum
>>> eb8a4f4648b95939214960a572f8aadd71af4dd38b06017ee4f8f37d0c4b5e59) from a
>>> random site on the internet, added it to a New Library in my NetBeans
>>> project, and added a dependency on that library in my ANTLRWorks Editor
>>> project, which is the project that has these references in it. But
>>> NetBeans is still saying it can't find the package.
>>>
>>> Anybody know what I can do to fix this?
>>>
>>> You can see the source, including the nbproject definition, at
>>> https://github.com/apjanke/antlrworks2-jank, if that helps.
>>>
>>> Cheers,
>>> Andrew Janke
>>>
>>> -
>>> 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
>>>
>>>
>>
>

-- 
Carl J. Mosca


Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Carl Mosca
Hi Peter,

Environment variables should be used for this purpose.  Exactly how this is
done might vary a bit depending on your preference/practice configuration
method.

What are you using now for the database configuration?

NetBeans will allow you to set the environment variables which would also
be set for the container (via Kubernetes in your case).

Albeit a slightly different direction, we tend to do a good bit of Spring
Boot which in addition to being Tomcat based and typically includes
Hibernate, has, what I believe, is a (nice) opinionated way of doing such
configurations.

For Spring Boot, an application.properties file (in src/main/resources)
might contain something like this:

spring.datasource.url = jdbc:mysql://localhost:3306/mydatabase?useSSL=false

and the SPRING_DATABASE_URL environment variable would override the above
value if provided at runtime (via NetBeans, Docker, Kubernetes, etc.) but
this example only scratches the surface with the amount of flexibility you
actually have.  Environment variables can also be included in the
properties file.  The concept of profiles is also available.

The combination of NetBeans and Spring Boot is, for us, an excellent choice
for local (database) development but we also leverage the Kubernetes which
is part of Docker for Desktop (Windows and MacOS) to more closely emulate
our runtime environment.

HTH,
Carl

On Fri, Jan 3, 2020 at 8:16 PM Peter L. Berghold  wrote:

> I have a web app that I've been working on for a while now and I plan
> to deploy it into a Kubernetes cluster on top of Tomcat.  Back end is
> going to be a MariaDB deployment with no connection to the outside
> world.
>
> Given my persistance layer is Hibernate and while being developed
> points to the local MariaDB on my workstation.
>
> When I go to deploy to Kubernetes I'll be using a service name to
> connect to.  How have others handled this situation so that the
> Hibernet configuration ends up pointed to the correct host after
> deployment?
>
>
> --
>
>
> Peter L. Berghold 
> Professonally: (retired) IT Professional (DevOps, Puppet, Perl...)
> Advocations: Dog Training, Beer Brewing, BBQ, Cooking
>
>
> -
> 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
>
>

-- 
Carl J. Mosca


Re: A Bad Thing has happened to the promise of platform independence

2019-09-28 Thread Carl Mosca
+1 Jack

On Sat, Sep 28, 2019 at 9:40 AM Jack Woehr  wrote:

>
>
> On Sat, Sep 28, 2019 at 6:57 AM Emilian Bold 
> wrote:
>
>> If it's of any help it is almost impossible to get all the Python
>> dependencies for Machine Learning. This is in spite of virtualenv, anaconda
>> and whatever other solutions exist specifically to fix this. Don't get me
>> started on doing this on macOS vs Linux.
>>
>
> I feel your pain! We could talk about Python for hours ... :)
>
> Programmers gotta program. If that includes figuring out the rat's nest
> that Other Programmers has created, well, that's why they pay us.
>
> --
Regards,
Carl


Re: FW: screenshot

2019-09-21 Thread Carl Mosca
I am glad it was solved and I would like to try to replicate that issue
because I have installed NB on Linux, Windows, and macOS many times over
the years but I don't recall seeing this.  Of course if could be that out
of habit I navigate to what I want to use as the default JDK.  I tend to
keep multiple versions on my machines for various reasons.





On Sat, Sep 21, 2019 at 8:55 AM Walter Oney  wrote:

> Problem solved. The Apache Netbeans installer prompts for the location of
> the JDK, with a default of "/usr". By supplying the correct path
> (/usr/lib/jvm/), I ended up with a working IDE.
>
> I know from long, hard experience how hard it is to write robust
> installation programs. May I diffidently suggest that the Netbeans
> installer needs to verify that a valid path is supplied in the answer to
> that dialog? And that the library edit dialog permit the user to delete the
> default library, so as not to require a delete (a superuser thing) and
> reinstall.? Just sayin...
>
> -Original Message-
> From: Walter Oney 
> Sent: Saturday, September 21, 2019 8:32 AM
> To: 'Carl Mosca' ; 'Geertjan Wielenga' <
> geert...@apache.org>
> Cc: 'Neil C Smith' ; 'NetBeans Mailing List' <
> users@netbeans.apache.org>
> Subject: RE: FW: screenshot
>
> From: Carl Mosca 
>
> > I have always been impressed with how extensive the tests (and
> associated instructions) are so I would not be surprised if the answer is
> yes.
>
> Given the age and pervasiveness of NetBeans, I would be surprised if the
> elementary thing I've attempted was *not* covered by a standard test. What
> I have observed, though, is that a brand new user attempts things that QA
> wouldn't think of doing. It's likely that I've installed the wrong version
> of something, or omitted to put something in the PATH, or omitted to set
> the permissions on some directory, or something outlandish like that.
>
> Based on what I've reported so far, I think the problem has to be with
> NetBeans and not with either Ant or Maven. A likely culprit would be the
> JDK and, specifically, whatever calls NetBeans makes to Java-like things as
> it's creating new projects. I don't recall specifically where I got the JDK
> from, but I probably did a search within Firefox (using whatever Firefox's
> default search engine is) and picked the top choice from among the search
> results.
>
> All of a sudden, perhaps since I started trying to use Maven, NetBeans is
> now listing the default library (JDK version 11) as a "broken platform".
> The edit dialog is letting me add a different platform (the same one Ant
> tells me to look in to find the java runtime), but it's not letting me
> delete the broken one. Perhaps getting past this roadblock would lead to a
> better outcome?
>
> --
> Walter C. Oney, Jr., Esq.
> 267 Pearl Hill Rd., Fitchburg, MA 01420
> Tel.: 978-343-3390
> http://www.oneylaw.com
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
Carl J. Mosca


Re: FW: screenshot

2019-09-21 Thread Carl Mosca
I have seen an issue where NetBeans does not have the main class selected
but not what is being described here.

While it's on my mind, since I generally focus on debugging during NetCAT
time, I don't know/recall if this "issue/behavior" covered in the tests for
the IDE.

I have always been impressed with how extensive the tests (and associated
instructions) are so I would not be surprised if the answer is yes.

On Sat, Sep 21, 2019 at 6:39 AM Geertjan Wielenga 
wrote:

> Hey, it's a Saturday afternoon here and I'm helping you for free. :-) I'm
> simply asking you to follow the instructions as stated in the YouTube clip
> so that we can find out exactly where things are going wrong -- will you
> help me to help you, please?
>
> Gj
>
> On Sat, Sep 21, 2019 at 12:37 PM Walter Oney 
> wrote:
>
>> Still no main class choices in the pop-up. I don't see why there would be
>> if the .java file isn't actually a part of the build script.
>>
>> > And following instructions means naming things the same as in the
>> instructions. Just follow the instructions in the YouTube clip as exactly
>> as you can, including the names of everything,
>>
>> If the build system depends on renaming things from their defaults, then
>> it is truly broken and not worth my effort to learn. I think we're done.
>>
>> -Original Message-----
>> From: Geertjan Wielenga 
>> Sent: Saturday, September 21, 2019 6:33 AM
>> To: Walter Oney 
>> Cc: Carl Mosca ; Neil C Smith <
>> neilcsm...@apache.org>; NetBeans Mailing List 
>> Subject: Re: FW: screenshot
>>
>> Type 'main' or 'psvm' and then press Tab.
>>
>> And when you right-click the project, choose 'Run', not 'Build'.
>>
>> Gj
>>
>> On Sat, Sep 21, 2019 at 12:31 PM Walter Oney > <mailto:walter.o...@oneylaw.com> > wrote:
>>
>>
>> Another difference: I don't get the same auto-complete behavior
>> you did when you typed "main". Did you perhaps hit a shortcut key at that
>> point?
>>
>> -Original Message-
>> From: Walter Oney > walter.o...@oneylaw.com> >
>> Sent: Saturday, September 21, 2019 6:28 AM
>> To: 'Geertjan Wielenga' > geert...@apache.org> >
>> Cc: 'Carl Mosca' > carljmo...@gmail.com> >; 'Neil C Smith' > neilcsm...@apache.org> >; 'NetBeans Mailing List' <
>> users@netbeans.apache.org <mailto:users@netbeans.apache.org> >
>> Subject: RE: FW: screenshot
>>
>> When I follow those directions as accurately as I can, I end up
>> with what you see in the attached screen shot. The .java file is apparently
>> not part of the project, however, because I don't have the option to
>> compile it when I right-click on it within the project pane. You can also
>> see that the build says there are no source files to compile. Attempting to
>> run this app gives me the same pop-up error that I get with Ant, with a
>> list of alternative main classes containing just "".
>>
>> -Original Message-
>> From: Geertjan Wielenga > geert...@apache.org> >
>> Sent: Saturday, September 21, 2019 6:07 AM
>> To: Walter Oney > walter.o...@oneylaw.com> >
>> Cc: Carl Mosca mailto:carljmo...@gmail.com>
>> >; Neil C Smith mailto:neilcsm...@apache.org> >;
>> NetBeans Mailing List > users@netbeans.apache.org> >
>> Subject: Re: FW: screenshot
>>
>> https://youtu.be/HcmcOMZQ0TM
>>
>>
>> Created that especially for you and hope it helps you.
>>
>> Gj
>>
>>
>> On Sat, Sep 21, 2019 at 11:59 AM Geertjan Wielenga <
>> geert...@apache.org <mailto:geert...@apache.org>  > geert...@apache.org <mailto:geert...@apache.org> > > wrote:
>>
>>
>> You probably mean an empty project. And indeed, no main
>> class can be found because there's no source file at all. So create one and
>> create a main class within it.
>>
>> Gj
>>
>> On Sat, Sep 21, 2019 at 11:53 AM Geertjan Wielenga <
>> geert...@apache.org <mailto:geert...@apache.org>  > geert...@apache.org <mailto:geert...@apache.org> > > wrote:
>>
>>
>> What is “a project with a class but no source
>> file”?
>>
>> Gj
>>
>> On Sat, 21 Sep 2019 at 11:50, Walter Oney <
>> walter.o...@oneylaw.com <mai

Re: Problem using NetBeans on Ubuntu

2019-09-21 Thread Carl Mosca
Thanks Neil.  I was starting to wonder if all of the Applet stuff we have
lived through was a dream.

Did not say nightmare because it wasn't necessarily bad, just a part of
history. :)

On Sat, Sep 21, 2019 at 4:53 AM Neil C Smith  wrote:

> On Sat, 21 Sep 2019 at 05:04, Walter Oney  wrote:
> > Create new project, Java, Java application, then accept all defaults. I
> wouldn't dignify a throwaway program like this as an "application"
>
> Well, calling anything an Applet in a Java context is only going to
> confuse everyone!
>
> Best wishes,
>
> Neil
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
Carl J. Mosca


Re: Problem using NetBeans on Ubuntu

2019-09-20 Thread Carl Mosca
I am not sure about the file transfer part (Samba?) but given that it's
small, you might copy the contents from the Output window for the build.

I noticed you referenced "Applet" instead of "Application".  Can you
provide the steps you followed in NetBeans?

If right click on the project and then select Properties and then Run, can
you browse for the main class using the Browse button?


On Fri, Sep 20, 2019 at 9:33 PM Walter Oney  wrote:

> From: Carl Mosca 
> > How was the project generated?  I am assuming it is a NetBeans ant
> project based on the default names used.
>
> Yes.
>
> > Have you done a build?  If so, is that successful?  Can you provide the
> build output.
>
> The build was uneventful. It's hard for me to get a file from my
> dual-booted Win10/Ubuntu box onto my Windows network. Someday I'll figure
> out how to do that.
>
> The applet actually runs fine from the command line using the command ant
> suggested. So the issue about the class appears to be within Netbeans.
>
> --
> Walter C. Oney, Jr., Esq.
> 267 Pearl Hill Rd., Fitchburg, MA 01420
> Tel.: 978-343-3390
> http://www.oneylaw.com
>
>
>
>

-- 
Carl J. Mosca


Re: Problem using NetBeans on Ubuntu

2019-09-20 Thread Carl Mosca
Hi Walter,

How was the project generated?  I am assuming it is a NetBeans ant project
based on the default names used.

Have you done a build?  If so, is that successful?  Can you provide the
build output.

Carl




On Fri, Sep 20, 2019 at 8:42 PM Walter Oney  wrote:

> I installed from netbeans.apache.org, and I'm now able to build Java and
> C++ programs (after installing the C++ plugin, that is). Thanks to the help
> I got on this list.
>
> Now for the next problem: the Java program I generate using Netbeans 11.1
> appears fine, but it won't run because it claims that there is no main
> class. In skeleton, the program reads:
>
> package javaapplication1;
> public class JavaApplication1 {
>  public static void main(String[] args){}
> }
>
> When I try to run this, I get a pop-up to the effect that
> javaapplication1.JavaApplication1 wasn't found in the project. Compare the
> result using NetBeans 8.2 with the 1.8 JDK under Win10, where I didn't have
> to tinker with anything to make it work.
>
> --
> Walter C. Oney, Jr., Esq.
> 267 Pearl Hill Rd., Fitchburg, MA 01420
> Tel.: 978-343-3390
> http://www.oneylaw.com
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
Carl J. Mosca


Re: how to add libraries to a project

2019-09-05 Thread Carl Mosca
Alternatively, right-click on "Dependencies", select "Add Dependency" and
let NB do it for you.

Indeed, editing the POM file is equally as easy with code completion but
there's more than one way. :)

On Thu, Sep 5, 2019 at 4:56 PM Geertjan Wielenga 
wrote:

> Well, then add libraries as dependencies in your POM.
>
> Gj
>
> On Thu, 5 Sep 2019 at 22:40, joe schmo  wrote:
>
>> My current project is Maven based and is not JaveEE.
>> --
>> *From:* Geertjan Wielenga 
>> *Sent:* September 5, 2019 5:37 PM
>> *To:* joe schmo 
>> *Cc:* users@netbeans.apache.org 
>> *Subject:* Re: how to add libraries to a project
>>
>> Your project is based on Maven?  Gradle? Ant? It is a Java EE
>> application? Or not? How can anyone possibly help you if you provide no
>> details?
>>
>> Gj
>>
>>
>> On Thu, 5 Sep 2019 at 22:24, joe schmo  wrote:
>>
>> I'm using NetBeans 11.1 and I'm embarrassed to say I can't do something
>> simple like add log4j libraries to my project.  Can someone help?
>>
>> Thanks
>>
>> Joe
>>
>>

-- 
Carl J. Mosca


Re: Spring Boot

2019-05-22 Thread Carl Mosca
You can tell NetBeans to skip the tests on particular actions just to see
it build/compile cleanly.

Project -> Properties -> Actions -> Clean and Build project (for example)
then use the Add button to add Skip Tests.

Ultimately you'll want some tests and to resolve what's broken but my main
point is that NB plays nicely with maven out of the box.

On Wed, May 22, 2019 at 3:38 PM Michael Spence  wrote:

> The Initializer suggestion was a great help.  I still am having some
> issues figuring out which classes are in which maven artifacts but
> findjar was helpful and then I discovered "Add Dependency" in Netbeans.
> My code is compiling ok but the build fails because I am
> still having to track down things in the test package that aren't there.
>
> Anyway, thanks for your help.
>
> Michael D. Spence
> Mockingbird Data Systems, Inc.
>
>
> On Tue, May 21, 2019 at 4:42 PM John McDonnell 
> wrote:
>
>> What problem are you getting?
>>
>> When I'm starting a spring boot application I start @
>> https://start.spring.io/ and generate a Maven project.  Download this
>> and open it in NetBeans without any issues.
>>
>> Note with NetBeans 11 now, you can also generate a Gradle project, and
>> there use to be a plugin to avoid the website, but I think the website is
>> the way to go...
>>
>> Regards
>>
>> John
>>
>> On Tue, 21 May 2019 at 22:19,  wrote:
>>
>>> Try this introduction
>>>
>>> https://www.baeldung.com/the-persistence-layer-with-spring-data-jpa
>>>
>>> It uses maven to get all dependencies.
>>>
>>> I had no problems.
>>>
>>> Daniel
>>>
>>> Dne 21.05.2019 23:04, Michael Spence napsal:
>>>
>>> I am trying to set up a project using Spring Boot to avoid "just use
>>> Eclipse".  I have not been able to get this to work in either 8.2 or 11
>>> (not sure if 11 is supposed to support this).  Is there a how-to somewhere,
>>> or even a pom that works that I could study?
>>>
>>> Thanks,
>>> Michael D. Spence
>>> Mockingbird Data Systems, Inc.
>>>
>>>
>>>
>>>

-- 
Carl J. Mosca


Re: Nashorn?

2018-12-27 Thread Carl Mosca
Ah, sorry, still running the Oracle Java...need to spend more time with the
OpenJDK..

On Thu, Dec 27, 2018 at 11:54 AM Steve Jacobs 
wrote:

> Thanks for the reply, but I am using openjdk 8.
>
> Regards,
>
> Steve
>
> On Thu, 27 Dec 2018 11:35:28 -0500
> Carl Mosca  wrote:
>
> > I believe Nashorn was deprecated as of Java 11?
> > https://openjdk.java.net/jeps/335
> >
> > Might try running with an earlier release of Java if you're using Java
> 11.
> >
> > HTH,
> > Carl
> >
> > On Thu, Dec 27, 2018 at 11:24 AM Steve Jacobs  >
> > wrote:
> >
> > > Hello,
> > >
> > > Warning - could not install some modules: Nashorn Integration - No
> > > module providing the capability com.oracle.js.parser.implementation
> > > could be found. 19 further modules could not be installed due to the
> > > above problems.
>
> -
> 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
>
>

-- 
Carl J. Mosca


Re: Netbeans and Kubernetes

2018-09-20 Thread Carl Mosca
We tend to do much more with OpenShift than k8s directly but I think you'll
find the Fabric8 Docker maven plugin very helpful if you're not already
using it.  https://dmp.fabric8.io/

This mavenized Docker build approach works nicely with NetBeans in my
opinion.  You'll find some cool stuff there for k8s as well.

Carl

On Thu, Sep 20, 2018 at 12:55 PM Greenberg, Gary  wrote:

> I am starting a new project where I will have to work with Kubernetes.
> I am quite a noob with container orchestration and would like to ask for
> an advise.
> I haven’t found anything related to Kubernetes on Netbeans web site but
> maybe I have missed it.
> Does anyone worked with Kubernetes in NB community?
> I am primarily interested in generating YAML and using kubernetes-client
> Java API.
>
> Any input is appreciated.
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development
>
> ggree...@visa.com
>
> Mobile: (650)269-7902
>
>
>
> [image:
> /Users/nkavumpu/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_749324139]
>
>
>


-- 
Carl J. Mosca


Re: File: Open Recent File … Not working

2018-08-29 Thread Carl Mosca
Thank you...commented on issue.

On Wed, Aug 29, 2018 at 1:41 PM Javier Ortiz 
wrote:

> Here's the issue: https://issues.apache.org/jira/browse/NETBEANS-888
>
> Please add your details there instead of this email chain.
>
>
>
>
> On Wed, Aug 29, 2018 at 11:21 AM Carl Mosca  wrote:
>
>> This may be related:
>>
>>
>> WARNING: An illegal reflective access operation has occurred
>>
>> WARNING: Illegal reflective access by
>> org.netbeans.swing.dirchooser.DelegatingChooserUI
>> (jar:file:/Applications/NetBeans/NetBeans%209.app/Contents/Resources/NetBeans/ide/modules/org-netbeans-swing-dirchooser.jar!/)
>> to method com.apple.laf.AquaFileChooserUI.createUI(javax.swing.JComponent)
>>
>> On Wed, Aug 29, 2018 at 9:55 AM Glenn Holmer 
>> wrote:
>>
>>> On 08/29/2018 08:39 AM, Giacomo Trimarchi wrote:
>>> > *Apache Netbeans 9.0
>>> > *"Clicking on a file in menu: File -> Open Recent File -> “Filename”"
>>> > works fine.
>>>
>>> Works here, too. Tried using NetBeans 9.0 on both Oracle JDK 1.8.0_162
>>> and OpenJDK 11 RC, running under Debian Stretch.
>>>
>>> --
>>> 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
>>>
>>>
>>
>> --
>> Carl J. Mosca
>>
>

-- 
Carl J. Mosca


Re: File: Open Recent File … Not working

2018-08-29 Thread Carl Mosca
This may be related:


WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by
org.netbeans.swing.dirchooser.DelegatingChooserUI
(jar:file:/Applications/NetBeans/NetBeans%209.app/Contents/Resources/NetBeans/ide/modules/org-netbeans-swing-dirchooser.jar!/)
to method com.apple.laf.AquaFileChooserUI.createUI(javax.swing.JComponent)

On Wed, Aug 29, 2018 at 9:55 AM Glenn Holmer 
wrote:

> On 08/29/2018 08:39 AM, Giacomo Trimarchi wrote:
> > *Apache Netbeans 9.0
> > *"Clicking on a file in menu: File -> Open Recent File -> “Filename”"
> > works fine.
>
> Works here, too. Tried using NetBeans 9.0 on both Oracle JDK 1.8.0_162
> and OpenJDK 11 RC, running under Debian Stretch.
>
> --
> 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
>
>

-- 
Carl J. Mosca


Re: NetBeans 9.0 on Linux - How?? - It works!

2018-08-10 Thread Carl Mosca
Thank you.

I guess I need to poke around in Jenkins.  I am wondering (without yet
having looked) if this is already being built and not posted anywhere.

Carl

On Fri, Aug 10, 2018 at 8:29 AM Neil C Smith  wrote:

> Hi,
>
> Moving back on list! :-)
>
> On Fri, 10 Aug 2018 at 13:10, Carl Mosca  wrote:
> > OK, sounds like I used the wrong terminology for the Mac "bundle" - I
> find them commonly referred to in a variety of ways.  Getting the bits into
> /Application/some_directory_structure_here (or elsewhere for that matter)
> such that it can be launched from the GUI was the goal.
>
> Not sure!  The old macOS installer and bundles work quite differently
> from what I know.  A bundle is just a specially constructed folder
> that can be launched from anywhere.  I like them, but then I grew up
> using RiscOS, from where Apple nicked the idea along with the dock!
> :-)
>
> > What am I missing?  I am guessing there's something obvious I have
> overlooked.
> >
> > The reason I threw this
> https://github.com/carljmosca/netbeans-macos-bundle together was because
> I did not want folks to have to download a bundle from some non-apache site.
>
> You haven't missed anything, at least definitely not obvious.  There
> is an ant task in the RCP scripts for building a bundle.  I'd always
> assumed it was in the main NetBeans build scripts too, but I couldn't
> find it.
>
>
> https://github.com/apache/incubator-netbeans/blob/master/apisupport.harness/release/suite.xml#L391
>
> Best wishes,
>
> Neil
>


-- 
Carl J. Mosca


Re: NetBeans 9.0 on Linux - How??

2018-08-09 Thread Carl Mosca
I had brought up creating installers on the dev list asking about status,
how to help, etc. but heard nothing back.

It is something that I think would help the community (Windows, MacOS and
Linux RPM & Deb).

Carl

On Thu, Aug 9, 2018 at 5:53 PM Mohammad Nabil  wrote:

> netbeans/etc/netbeans.conf
> uncomment
> #netneans_jdkdhome=/path/to/jdk
> and set path to your os java_home/bin/java
> Run
> netbeans/bin/netbeans
>
> On Thu, Aug 9, 2018, 11:43 PM Paul Szudzik 
> wrote:
>
>> Maybe I missed something, but I don’t see an installer to install
>> NetBeans 9.0 on Linux.That is my OS in the shop, ( Ubuntu ).
>>
>> Are there plans to do it soon?
>>
>> Thanks
>>
>>
>

-- 
Carl J. Mosca


Re: Netbeans 9.0 Final Release - Update Center

2018-08-08 Thread Carl Mosca
Speaking of contributing...is anyone working on installers?  I would like
to help there but I don't want to duplicate effort.

BTW, thank you for setting up the calls.



On Wed, Aug 8, 2018, 5:19 AM Geertjan Wielenga
 wrote:

> Well then there’s good news for you: you can file issues and even fix them
> yourself, the only thing stopping NetBeans from being peffect for you is
> you.
>
> Gj
>
> On Wednesday, August 8, 2018, Andrei  wrote:
>
>> I'm using NetBeans IDE for more than 5 years in my every day job coding
>> c/c++ because I'm heavy on remote development. And NB is the only choice
>> for now.
>> And frankly speaking it is 5 years of suffer and fighting with IDE. Not
>> sure why netbeans developed in such sadistic way but I haven't saw a single
>> release of NB without annoying bugs路‍♂️
>>
>> On 8 Aug 2018, at 11:46, Alexander Faust  wrote:
>>
>> Hello,
>>
>> I waited a long time for this version. Is this really the final release
>> version of Netbeans 9.0?
>> I can’t find many plugins (Available Plugins) in the update center.
>> Why contains the “Netbeans Distibution UAC” only 2-3 available plugins
>> after the installation?
>>
>> For example I need the plugins “JavaScript2 Kit” / “JavaScript2 JSON” and
>> their related plugins.
>> When are these plugins available for Netbeans9?
>>
>> Beste regards
>> Alex
>>
>>
>> Mit freundlichen Grüßen,
>>
>> Alexander Faust
>> *Software Engineer*
>> Topcon Electronics GmbH & Co KG
>> Industriestrasse 7
>> 
>> D - 65366 Geisenheim, Germany
>> 
>> +49 - (0)6722 - 4026-685 office
>> +49 - (0)6722 - 4026-850 fax
>> http://www.topcon-electronics.de 
>> Geschäftsführer: Albert Zahalka
>> Amtsgericht Wiesbaden - HRA 7411
>>
>>
>> 
>>
>> Confidentiality Notice: This message (including attachments) is a private
>> communication solely for use of the intended recipient(s). If you are not
>> the intended recipient(s) or believe you received this message in error,
>> notify the sender immediately and then delete this message. Any other use,
>> retention, dissemination or copying is prohibited and may be a violation of
>> law, including the Electronic Communication Privacy Act of 1986.   ­­
>>
>>
>>