Re: Netbeans IDE 21 and Mac

2024-04-24 Thread Peter Hull
Hi Brian,
I don't know the answer but for clarification:
Where did you get NB from, and was it a zip or app package?
What happened when you tried to open it - an error or nothing at all?

Possibly this link might help?
https://support.apple.com/en-gb/guide/mac-help/mh40616/mac

Hope this gets sorted out,
Peter



On Thu, 25 Apr 2024 at 05:46, Brian Allison (ISSRS) 
wrote:

> I just got my new MacBook Air with Sanoma 14 installed.  I just installed
> Netbeans IDE 21.  When I click on the app it will not open.  I have
> uninstalled and reinstalled several times and rebooted the computer.
>
> HELP!
>
>
>
> Brian
> -
> 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: Run-Time Error: email Validation project still giving errors

2024-03-12 Thread Peter Hull
I believe the correct answer was given by M Eggers in
https://lists.apache.org/thread/pq84cb84w8822g9rt133vctc14nbzb9f

If I take the suggestion from that message and edit the pom.xml in the
project you attached earlier, then maven will compile it correctly.

Peter

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

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



Re: NetBeans Node.js issue

2024-02-23 Thread Peter Hull
On Fri, 23 Feb 2024 at 14:58, Bujdosó Gyula  wrote:

> Thanks for the tip and help, sorry for the late reply. :)
>
> In the end it was 'which' command I located both node and npm in the
> terminal as shown life:
>

I told you to use 'where', and of course I meant 'which' - apologies for
that, I must have been having a hard day.
(I suppose the rationale is that 'which node' tells you which executable is
run when you type 'node')
Glad you sorted it out anyway!
Peter


Re: NetBeans Node.js issue

2024-02-22 Thread Peter Hull
On Thu, 22 Feb 2024 at 13:40, Bujdosó Gyula  wrote:
>
> Thanks again, will try and find where I installed it.

As long as it's on your path, on Windows powershell you can use
command 'gcm', for example:
> gcm node

CommandType Name
VersionSource
--- 
-----
Application node.exe
21.6.1.0   C:\Program Files\nodejs\node.exe

and on Linux/MacOS use 'where' for the same job. I believe the node
installers add node to the path so you should be OK.

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

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



RE: Re: AI assistant for NetBeans

2024-02-09 Thread Peter Kirkham
When the AI hype train was just getting rolling last year I thought I 
would try this out to write a basic but non-trivial algorithm. I wanted 
to implement a method to get the nodes and weights for Gauss-Laguerre 
quadrature integration for the Gamma function for any number of nodes, 
rather than just using a hard-coded series of arrays for the numbers. I 
didn't need to do this (the hard-coded array approach works) but I 
thought this was an interesting test because it's not an everyday garden 
topic that the AI will just be able to cut and paste from Stack 
Overflow. On the other hand it does have a known solution so it can be 
shown whether the AI solution is any good or not.


The AI was able to generate a plausible looking solution very quickly 
and confidently. Which was, at first glance, impressive. Wow. It 
compiled first time and ran. Syntactically it was great. And that is 
where the positives end. The code wasn't just wrong in terms of being 
close, but inaccurate. It was just gibberish. The results weren't even 
vaguely in the ballpark. People talk about AI being able to pass 
university exam level questions... what a load of rubbish. This was 
clearly plagarised so badly that the 'student' submitting the answer was 
clueless that their answer was even wrong.


The AI had no idea -- and why would it. It is nothing more than a large 
neural net that has produced a sequence of tokens based on another input 
sequence of tokens. At its heart it is nothing more than a sophisticated 
regression algorithm based on a series of data points which were used to 
train it. What we are doing is the equivalent of deriving a line of best 
fit through a cloud of data points and then asking the algorithm to 
extrapolate based on that regression equation. It works -- of course it 
does, it's just an equation -- but fundamentally it is grossly 
misleading. Any decently educated person knows that extrapolation is 
fraught with error. And that is all AI is (with the techniques used 
today). A sophisticated extrapolation engine. Anyone who says otherwise 
is deluding themselves.


Andreas is, in my view, completely right. If you rely on AI for coding 
you will spend more time correcting the code than you would writing it 
yourself. More than that, the code appears very neat, so the errors are 
not obvious at first. Writing the code yourself will also bring you 
closer to it, and that familiarity will breed insight that AI never had 
to start with and certainly cannot impart to its users. Why would you 
want to give up that side benefit from writing your own code?


AI is, in my view, one of the more dangerous fads to come out recently. 
Not necessarily because of the harm it might do itself, but because it 
drives a false sense of security amongst those that do not understand it 
-- which is to say most of the world, as there are very few people I've 
met who are able to explain to me how it works, even on a basic level. 
Perversely this could lead to a loss of knowledge and intelligence 
amongst the non-machine population.


Maybe I'm wrong and I'm just a modern-day Luddite. I'd be interested to 
know if there are any genuine real-world cases where AI code is useful. 
I was thinking that maybe boilerplate code, like when writing GUI etc. 
but NetBeans Matisse already has that covered just fine. How would AI 
improve this? It wouldn't have a chance improving on many of the 
algorithms I write for solving engineering problems for the simple 
reason that many of those algorithms never existed before I wrote them 
and I'm proud to admit that I had to fall back on real intelligence, and 
not artificial intelligence, to write them :-)


Anyway, an interesting topic!

Peter

On 2024/02/08 16:17:51 Andreas Reichel wrote:
> On Thu, 2024-02-08 at 11:16 -0500, Alonso Del Arte wrote:
> > There isn't, but probably soon there will be. If it's built-in, it
> > better come with an off switch. But if BlueJ adds an AI assistant,
> > then we're really in trouble.
>
> I have tried them all on IntelliJ and I can tell you: they are rubbish!
> OpenAI is great for looking up JAVA or C API efficiently and for this
> case you have a 50% chance to get something useful (although 50% chance
> of getting completely wrong information, like Java Libraries that don't
> exist.)
>
> But in the IDE it is just annoying. You will spend more time correcting
> the suggestions than writing code.
>
> Example: ask for a Java Example of Prophet Time Series Forecast! Or ask
> for a sample of RGBA to ARGB Byte Swapping using SSE or AVX.
> The given information will be TOTALLY wrong and fantasy!
>
> Cheers
> Andreas
>
>
>

-
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: Can't open the project

2024-02-08 Thread Peter Hull
Hi Zulfi,
On Fri, 9 Feb 2024 at 04:38, Zulfi Khan  wrote:
> Hence I changed the name to ValidateName3 and it solved the problem.
I'm glad you fixed it. I assume, when you say 'name',  you changed the
 in the POM, is that correct? Because there is an optional
 element which sets the name that Netbeans displays, but doesn't
change maven's artifact ID. That would probably cause problems later
if you changed just the .

> Thanks for your time but skipping the problem is not a good strategy.
What did you mean by that?

Peter

-
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: Can't open the project

2024-02-08 Thread Peter Hull
Hi Zulfi,
On Thu, 8 Feb 2024 at 05:55, Zulfi Khan  wrote:
> Sorry your suggestion did not work. I don't know why you told me to rename, 
> this may disturb my internal links. I renamed it to ValidateName2 from "Open 
> project" window but it didn't work. Then I renamed it
>  ValidateName3 using the File explorer. But this one does not work too.
Those things were not what I suggested so I'm not surprised it doesn't work.

The main thing is this: what Netbeans calls the Project Name is not
the same as the directory which holds the project files. In the Open
Project dialog, you see the directory name on the left and on the
right is the Project Name.

However, by default when you create a new project, they are given the same name.

Afterwards, you can view and maybe rename either the project or the
directory with the Rename dialog (see image.)

I believe that, if you only use this dialog, NB will do everything
properly and nothing will be disturbed (unless you're doing something
unusual within this project?)

I assume that you downloaded this project from the internet somewhere,
and whoever created it originally changed the project name
('emailValidator') to be different to the directory name
('ValidateName'). They are the same project! Can you tell me where you
got it from or share a link?

Create a new project of your own and play with renaming it, then you
will see how it works.

Hope this helps,
Peter

-
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: Can't open the project

2024-02-07 Thread Peter Hull
For maven projects there are three "names" to consider - the name of
the directory on disk, the display name and the maven artifact ID. If
you open that ValidateName/emailValidator project and then, in project
view, right click and select Rename... you will be able to rename one
or all of these to what you want.
Peter

On Wed, 7 Feb 2024 at 05:57, Zulfi Khan  wrote:
>
> Hi,
>
> I am trying to open my project ValidateName but instead its opening the 
> project emailValidator. Somebody, please guide me.
>
> I have attached the image.
>
> Zulfi.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

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

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



Re: Netbeans cannot access www.springframework.org

2024-02-02 Thread Peter Hull
Hi Gary,
I tried this on Netbeans, using the XML snippet given in your link,
https://docs.spring.io/spring-framework/reference/data-access/appendix.html#xsd-schemas-tx
As soon as I typed a '<' the retriever started up and after a second
or two I was presented with a list of tags to complete.
If you're at work, could it be something to do with your corporate
firewall blocking the access to www.springframework.org?

Peter

The retriever output was:

2 Feb 2024, 08:52:52 : Retrieving Location:
https://www.springframework.org/schema/beans/spring-beans.xsd

Retrieved :https://www.springframework.org/schema/beans/spring-beans.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\beans\spring-beans.xsd


2 Feb 2024, 08:52:53 : Retrieving Location:
https://www.springframework.org/schema/tx/spring-tx.xsd

Retrieved :https://www.springframework.org/schema/tx/spring-tx.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\tx\spring-tx.xsd
Retrieving Location:
https://www.springframework.org/schema/beans/spring-beans-4.3.xsd
Found in document: https://www.springframework.org/schema/tx/spring-tx.xsd
Retrieved :https://www.springframework.org/schema/beans/spring-beans-4.3.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\beans\spring-beans-4.3.xsd
Retrieving Location:
https://www.springframework.org/schema/tool/spring-tool-4.3.xsd
Found in document: https://www.springframework.org/schema/tx/spring-tx.xsd
Retrieved :https://www.springframework.org/schema/tool/spring-tool-4.3.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\tool\spring-tool-4.3.xsd


2 Feb 2024, 08:52:53 : Retrieving Location:
https://www.springframework.org/schema/aop/spring-aop.xsd

Retrieved :https://www.springframework.org/schema/aop/spring-aop.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\aop\spring-aop.xsd
Retrieving Location:
https://www.springframework.org/schema/beans/spring-beans-4.3.xsd
Found in document: https://www.springframework.org/schema/aop/spring-aop.xsd
Retrieved :https://www.springframework.org/schema/beans/spring-beans-4.3.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\beans\spring-beans-4.3.xsd
Retrieving Location:
https://www.springframework.org/schema/tool/spring-tool-4.3.xsd
Found in document: https://www.springframework.org/schema/aop/spring-aop.xsd
Retrieved :https://www.springframework.org/schema/tool/spring-tool-4.3.xsd
Saved at: 
C:\Users\peter\AppData\Local\NetBeans\Cache\20\xml.retriever\www.springframework.org\schema\tool\spring-tool-4.3.xsd

-
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: Changes of NB behavior with XML files

2024-01-31 Thread Peter Hull
I tested it on an XML file created with NB20 and I did get the
 and  options, as well as 

However - is your XML valid? I believe that attribute values need
quotes around them, so
xmlns="http://www.springframework.org/schema/beans;
not
xmlns=http://www.springframework.org/schema/beans

Maybe NB18 is more picky than NB12.5 was?

Hope that helps,
Peter

On Tue, 30 Jan 2024 at 22:43, Greenberg, Gary  wrote:
>
> I recently have to make some changes to the application that I have developed 
> about year and a half ago with NB 12.5
>
> Now I am working with NB 18.
>
> Changes that I need to make involve Spring applicationContext.xml file. I 
> need to add entries to  table.
>
> I do have in this file beans definition reference:
>
> http://www.springframework.org/schema/beans
>
>xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
>
>xmlns:util=http://www.springframework.org/schema/util 
> xsi:schemaLocation="
>
> http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans.xsd
>
> http://www.springframework.org/schema/util 
> http://www.springframework.org/schema/util/spring-util.xsd;>
>
>
>
> Before, when I type in “<” inside the map, Netbeans gave me a prompt choice: 
> ,  or  and
> if I choose  it did prompt me for key and value.
> Now, NB only give me one prompt .
> I am wondering what is causing this reduction of functionality. Was it a bug 
> introduced or it was intentional?
>
> IMHO, intentional reduction of functionality does not improve popularity of 
> my favorite IDE.
>
> Has it been fixed in v.20 or v.21? Shall I go through paperwork and approval 
> hustle to install newer version or switched to
> company approved IntellJ?
>
> Gary Greenberg
>
> Staff Software Engineer
>
>

-
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: Error highlighting for editor in NetBeans RCP application

2024-01-15 Thread Peter Kirkham

Update.

Turns out that when I previous tried enabling every single module in the 
the 'ide' and 'platform' I hadn't done a clean a build. When tried again 
and did this, the error highlighting worked. After some laborious trial 
and error I found that the module I needed to have enabled was the 
'Project UI' module in 'ide'. I didn't have this enabled in my platform 
application as I was just loading a file. I'll need the Project UI 
eventually, so it's not a drama.


Peter

On 14/01/2024 10:45 pm, Peter Kirkham wrote:


Hello there,

I've not had to reach out to the NetBeans community for a while, 
although I've been using NetBeans and the RCP for many years.


Most of the work I've done has involved embedding different 
Swing-based JPanels in TopComponents and just leveraging the 
platform's windowing system etc. Recently I started to develop an 
editor for a custom language, which is the first time I've done this. 
I've been following the tutorials, and learning a lot about lexing and 
parsing etc. Along the way I've run into a few speed bumps, but I've 
been able to resolve everything by reading the copious documentation 
on the platform or, on occasion, delving into the source on GitHub to 
see how a particular issue was been resolved in the IDE itself.


There is one issue I cannot seem to find an answer for.

*The BACKGROUND*

This relates to error highlighting. As per the error highlighting 
tutorial 
(https://netbeans.apache.org/tutorial/main/tutorials/nbm-javacc-parser/#_implementing_a_new_feature_error_parsing) 
I've create an error highlighting task that extends ParserResultTask 
and implemented a factory that extends TaskFactory:


public class EclSyntaxErrorHighlightingTask extends 
ParserResultTask {

     @Override
     public void run(EclParserResult result, SchedulerEvent event) {
     LOG.log(Level.INFO, "Running EclSyntaxErrorHighlightingTask: {0}", new 
Object[]{event.toString()});
     try {
[ omitted ...]
     } catch (BadLocationException | 
org.netbeans.modules.parsing.spi.ParseException ex) {
     Exceptions.printStackTrace(ex);
     }
     }

     @Override
     public int getPriority() {
     return 100;
     }

     @Override
     public Class getSchedulerClass() {
     return Scheduler.EDITOR_SENSITIVE_TASK_SCHEDULER;
     }

     @Override
     public void cancel() {
     }
}

and

@MimeRegistration(mimeType = "text/x-eclipse", service = TaskFactory.class)
public class EclSyntaxErrorHighlightingTaskFactory extends TaskFactory {

     @Override
     public Collection create(Snapshot snapshot) {
     EclSyntaxErrorHighlightingTask task = new 
EclSyntaxErrorHighlightingTask();
     LOG.log(Level.INFO, "Created EclSyntaxErrorHighlightingTask from {0}", 
new Object[]{snapshot.toString()});
     return Collections.singleton(task);
     }
}

Note I've added a couple of logging events so I can see when the 
factory is called and creates the highlighting task, and also see when 
the task is run. For the eagle-eyed, yes the language is called the 
eclipse language, but it is nothing to do with that other IDE. It's a 
reservoir simulation language in the oil and gas industry that dates 
back to the 1980s...


*The ISSUE*

When I run the custom language model as a module within the IDE 
(right-click the module and Run), everything works a charm. Opening a 
file generates the following in the log:


INFO 
[au.com.newwavegeo.eclipse.editor.EclSyntaxErrorHighlightingTaskFactory]: 
Created EclSyntaxErrorHighlightingTask from Snapshot 1894046798: 
ECLIPSE_Test_Deck.ecl
INFO 
[au.com.newwavegeo.eclipse.editor.EclSyntaxErrorHighlightingTaskFactory]: 
Created EclSyntaxErrorHighlightingTask from Snapshot 1894046798: 
ECLIPSE_Test_Deck.ecl
INFO 
[au.com.newwavegeo.eclipse.editor.EclSyntaxErrorHighlightingTask]: 
Running EclSyntaxErrorHighlightingTask: SchedulerEvent 
1007833880(source: CurrentDocumentScheduler)
INFO 
[au.com.newwavegeo.eclipse.editor.EclSyntaxErrorHighlightingTask]: 
Running EclSyntaxErrorHighlightingTask: SchedulerEvent 
210858918(source: CurrentDocumentScheduler)


So the task is being created and added to the Scheduler, and is being run.

Now, rather than running as a standalone module, what I really want to 
do is to put the module into my platform suite. Adding the module into 
the platform suite and then running the application works for 
everything except the error highlighting. So far I've done syntax 
highlighting, code completion, code reformatting, code folding, match 
occurrences. It's all working. But the error highlighting stubbornly 
does nothing. Not even having the decency to throw an exception...


When opening my custom language file, the log now shows:

22:09:48 [EclSyntaxErrorHighlightingTaskFactory|INFO]: Created 
EclSyntaxErrorHighlightingTask from Snapshot 1437838154: 
ECLIPSE_Test_Deck.ecl


So it appears that the highlighting task gets created, but it just 
isn't being run

Error highlighting for editor in NetBeans RCP application

2024-01-14 Thread Peter Kirkham
the 'ide' and 'platform' in my suite's 
Platform Modules didn't fix the problem. I've made a list of all the 
modules that are loaded when I run the module in the IDE and all the 
modules that are loaded when I run the platform suite application, and 
my next step would be to start enabling one by one to see which one it 
is that makes it work.


But before I do that, I thought I'd reach out and see if anyone knows 
what I might be missing. Is there something I need to do to activate the 
CurrentDocumentScheduler that it appears is calling the highlighting 
task when run within the IDE?


I'm running:

*Product Version:* Apache NetBeans IDE 20

*Java:* 17.0.8; OpenJDK 64-Bit Server VM 17.0.8+7

*Runtime:* OpenJDK Runtime Environment 17.0.8+7

*System:* Windows 11 version 10.0 running on amd64; Cp1252; en_AU (nb)

Thanks for reading and for any help or suggestions,

Peter


Release 20 Windows Installer

2023-12-04 Thread Peter Hull
Hi,
I wanted to install NB20 on Windows so I went for the .exe installer.
Edge gave me a warning that it might harm my computer and (after I
checked the SHA512 was OK!) when I tried to install it, Windows said
it was from an Unknown Publisher. Has NB never signed these installers
or is it different this time around?
Thanks,
Peter

-
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



Newbie help

2023-05-12 Thread Peter Toye



Hello

I'm returning to NetBeans after a long bap, and have forgotten almost everything I know, so please be indulgent.

I'm trying to work out how to organise the workflow for developing a program - I suspect it's changed since I was last here. 

What I can't work out is how to separate the development from the release version of the project. I've got a working version which I want to use, but I want to extend it without losing sight of the original. I've been using Visual Studio for other projects, and they have a separate configurations for the dev and release versions and the executables go into different directories. Is there a way of doing this in NetBeans? As far as I can see, once I've started a debug session, the release version is overwritten.

I can't see any documentation on the Apache NetBeans website about the basics of developing programs - I expect I'm looking in the wrong place. Thanks in advance,Petermailto:netbe...@ptoye.comhttps://www.ptoye.com



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

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



How to run a program in Netbeans 17 with the -D option

2023-04-20 Thread Peter Ivarsson
Hi I want to run my program in NetBeans with the -D option java -jar
-Drasberry.camera.enabled=true Peter


RE: Project Folder Icons "clear"?

2023-03-16 Thread Peter Borreggine
Hello,

I have a problem with NB16, the SAVE doesn't work... I have to abandon and use 
12.5. Why is this happening?  It's not stable.

Regards,

Peter Borreggine
Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO
WebParity.net
A Service Connected Disabled Veteran Owned Business
WA State License: 603-501-609
360-830-8926 C

“The proper function of man is to live, not to exist. I shall not waste my days 
in trying to prolong them. I shall use my time.”
- - Jack London

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

-Original Message-
From: Brad K.  
Sent: Thursday, March 16, 2023 9:03 AM
To: users@netbeans.apache.org
Subject: Project Folder Icons "clear"?

Hello --

I just upgraded from NetBeans 15 to 17. I noticed that the folder icons in both 
the Project tab and the Files tab are uncolored outlines of folders instead of 
the "standard" manila folder look.

Is this on purpose or is my installation amiss?

V/r,

Brad

Environment: Windows 10 Pro, Java 17


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

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


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

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



RE: Re: Re: Re: How to change text colour in the console

2023-02-25 Thread Peter Ream
FYI

ANSI_RESET has no effect.

System.out.println(ANSI_RED + "This text should be red!" +
ANSI_RESET);
System.out.println("Hello World!”);

Hello World! Is white with / without ANSI_RESET.


Re: Re: Re: How to change text colour in the console

2023-02-25 Thread Peter Ream
Works perfect!

Thank you.

Peter


On Feb 25, 2023 at 9:57:31 AM, Neil C Smith  wrote:

> On Sat, 25 Feb 2023 at 14:47, Peter Ream  wrote:
>
> I can’t get this to work. Probably user error, although I have used NB for
> about 5 years, I’m not too handy into changing a lot of the parameters.
> Here is my simple test copied from Bob T:
>
>
> No, just make sure you're using NetBeans 17, or change the exec plugin
> version to 3.1.0.  I'd missed the relevance of the update in NB17
> here, sorry, https://github.com/apache/netbeans/pull/5111
>
> Neil
>


RE: Re: How to change text colour in the console

2023-02-23 Thread Peter Ream
"Using Maven, it works if passing -DinheritIo=true."

Out of curiosity, can you set this within NB?

On 2023/02/23 14:17:52 Neil C Smith wrote:

On Thu, 23 Feb 2023 at 13:47, Neil C Smith  wrote:

>

> On Thu, 23 Feb 2023 at 12:57, Bob T  wrote:

> >

> > Thank you Neil. It works if I run via the Netbeans terminal as you
suggest. I've created a feature request for consideration by the team:
https://github.com/apache/netbeans/issues/5552

>

> Great!  I've added the contribution welcome label for now.

>

> It could be a good addition, although there are other reasons for

> wanting to run projects in a full terminal as well eg. Console, JLine,

> etc.


Incidentally, just had a quick look and noticed that there is some

support for ANSI colours in the output window - your problem is build

system dependent.  Added a comment to the issue - can track it there.


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




Thank you.

Peter Ream


Re: [servlet]

2023-01-21 Thread Peter Scharf
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  <mailto:carljmo...@gmail.com>> 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 > <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>> **
>>> 
>>>> On Jan 20, 2023, at 5:42 PM, Carl Mosca >>> <mailto:carljmo...@gmail.com>> 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 >>> <mailto:sch...@sanskritlibrary.org>> 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 

Re: [servlet]

2023-01-21 Thread Peter Scharf
Thanks, Carl!  I put

<%=request.getAttribute("miles")%>
and
<%=request.getAttribute("kilometers")%>
in place of $(miles) and $(kilometers) in result.jsp and it works as desired.
Yours,
Peter

**
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  <mailto:carljmo...@gmail.com>> 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 > <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>> **
>>> 
>>>> On Jan 20, 2023, at 5:42 PM, Carl Mosca >>> <mailto:carljmo...@gmail.com>> 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 >>> <mailto:sch...@sanskritlibrary.org>> 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

RE: Netbeans 15 release

2023-01-21 Thread Peter Borreggine
I just got this… what is this???  First time ever since I started using NB back 
in 2013

 



 

Product Version: Apache NetBeans IDE 12.5 

Java: 17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39 

Runtime: Java(TM) SE Runtime Environment 17.0.1+12-LTS-39 

System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) 

User directory: C:\Users\Peter\AppData\Roaming\NetBeans\12.5 

Cache directory: C:\Users\Peter\AppData\Local\NetBeans\Cache\12.5 

 

 

Regards,

 

Peter Borreggine

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“The proper function of man is to live, not to exist. I shall not waste my days 
in trying to prolong them. I shall use my time.”

*   - Jack London

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: joe foe  
Sent: Tuesday, September 6, 2022 5:35 AM
To: Neil C Smith 
Cc: NetBeans Mailing List 
Subject: Re: Netbeans 15 release

 

Awesome, thanks for the update! 

 

On Tue, 6 Sep 2022, 13:27 Neil C Smith, mailto:neilcsm...@apache.org> > wrote:

On Tue, 6 Sept 2022 at 12:23, joe foe mailto:jfoe8...@gmail.com> > wrote:
>  The vscode plugin has been auto updated to 15 but I don't see any release 
> notes for that and under 
> dist.apache.org/repos/dist/release/netbeans/netbeans-installers/15 
> <http://dist.apache.org/repos/dist/release/netbeans/netbeans-installers/15>  
> the Linux package is missing.
>
> Question, when will be the Linux installer be available and where can I see 
> what's changed in the vscode plugin?

The announcement is currently in progress.  Changes at
https://github.com/apache/netbeans/releases/tag/15

There won't be an ASF Linux installer.  You can use the binary zip,
Snap package, the .AppImage or .deb from the linked community
installers (already up at https://www.codelerity.com/netbeans/ ) or
another community source (eg. flatpak, distro).

Best wishes,

Neil



Re: [servlet]

2023-01-20 Thread Peter Scharf
Now the next step in this tutorial passes the values of variables in the java 
web form to a jsp file instead of embedding them in println commands.  Here is 
the code that the tutorial (https://www.youtube.com/watch?v=eP9oz6ZKUXM at 
Creat JavaServer Page (JSP), about 23 minutes into it) gives:

protected void doPost(HttpServletRequest request, HttpServletResponse response)
   throws ServletException, IOException {
  processRequest(request, response);
  float miles = Float.parseFloat(request.getParameter("miles"));
  float kilometers = miles * 1.61f;
  request.setAttribute("miles", miles);
  request.setAttribute("kilometers", kilometers);
  String resultPage = "result.jsp";
  
  RequestDispatcher dispatcher = request.getRequestDispatcher(resultPage);
  dispacther.forward(request, response);
   }

I get a compile error that complains about that RequestDispatcher is an 
undefined symbol.  After much hunting on websites for answers, I revised the 
code as in the project in the git: 
https://github.com/the-sanskrit-library/public.git, namely:

   protected void doPost(HttpServletRequest request, HttpServletResponse 
response)
   throws ServletException, IOException {
  float miles = Float.parseFloat(request.getParameter("miles"));
  float kilometers = miles * 1.61f;
  request.setAttribute("miles", miles);
  request.setAttribute("kilometers", kilometers);
  String resultPage = "result.jsp";
  request.getRequestDispatcher(resultPage).forward(request, response);
   }
 
Which compiles.  However, the response I get give the string rather than their 
values:

Unit Conversion Result

$(miles) miles = $(kilometers) kilometers

Any suggestions?
Yours,
Peter

**
Peter M. Scharf, President
The Sanskrit Library
sch...@sanskritlibrary.org
https://sanskritlibrary.org
******

> On Jan 20, 2023, at 12:31 PM, Carl Mosca  wrote:
> 
> You're welcome Peter and glad to hear it.  You can remove/replace the root 
> app if/as needed.
> 
> Regards,
> Carl
> 
> On Fri, Jan 20, 2023 at 1:28 PM Peter Scharf  <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>> **
>> 
>>> On Jan 18, 2023, at 8:16 PM, Carl Mosca >> <mailto:carljmo...@gmail.com>> 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 >> <mailto:sch...@sanskritlibrary.org>> 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.

Re: [servlet]

2023-01-20 Thread Peter Scharf
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  <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>> **
>> 
>>> On Jan 18, 2023, at 12:19 PM, Eric Bresie >> <mailto:ebre...@gmail.com>> 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 >> <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>>> **
>>>> 
>>>>> On Jan 18, 2023, at 12:06 PM, Eric Bresie >>>> <mailto:ebre...@gmail.com>> wrote:
>>>>> 
>>>>> 
>&

Re: [servlet]

2023-01-18 Thread Peter Scharf
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  <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>> **
>> 
>>> On Jan 18, 2023, at 12:06 PM, Eric Bresie >> <mailto:ebre...@gmail.com>> wrote:
>>> 
>>> 
>>> Servlet says the urlpattern is “/convert”
>>> 
>>> Try 
>>> http://localhost:8080/convert
>>> 
>>> 
>>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf >> <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>>> **
>>>> 
>>>>> On Jan 18, 2023, at 5:35 AM, Carl Mosca >>>> <mailto:carljmo...@gmail.com>> 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 >>>> <mailto:sch...@sanskritlibrary.org>> 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/pub

Re: [servlet]

2023-01-18 Thread Peter Scharf
The form opens for me too.  The problem is that when I fill in a number and 
click “Convert to kilometers” I get the 404 Not Found message.

**
Peter M. Scharf, President
The Sanskrit Library
sch...@sanskritlibrary.org
https://sanskritlibrary.org
**

> On Jan 18, 2023, at 12:19 PM, Carl Mosca  wrote:
> 
> It opened (automatically) here for me: http://localhost:8080/mavenproject3/ 
> 
> On Wed, Jan 18, 2023 at 1:11 PM Peter Scharf  <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>> **
>> 
>>> On Jan 18, 2023, at 12:06 PM, Eric Bresie >> <mailto:ebre...@gmail.com>> wrote:
>>> 
>>> 
>>> Servlet says the urlpattern is “/convert”
>>> 
>>> Try 
>>> http://localhost:8080/convert
>>> 
>>> 
>>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf >> <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>>> **
>>>> 
>>>>> On Jan 18, 2023, at 5:35 AM, Carl Mosca >>>> <mailto:carljmo...@gmail.com>> 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 >>>> <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>>>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>>>>>> **
>>>>>> 
>>>>>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca >>>>>> <mailto:carljmo...@gmail.com>> 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 
>>>>>>> mailto: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
>>>>>&

Re: [servlet]

2023-01-18 Thread Peter Scharf
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  <mailto:sch...@sanskritlibrary.org>> 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 <mailto:sch...@sanskritlibrary.org>
>> https://sanskritlibrary.org <https://sanskritlibrary.org/>
>> **
>> 
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca >> <mailto:carljmo...@gmail.com>> 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 >> <mailto: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 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
>>>> 
>>>> 1

Re: [servlet]

2023-01-17 Thread Peter Scharf
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  <mailto: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 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 kno

[servlet]

2023-01-16 Thread Peter Scharf
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
**



Sv: [EXTERNAL] Sv: accented characters in NB 16 IDE editor

2023-01-02 Thread Peter Holt
Hi,

It seams like my message got striped on its way. Original message added
here:

 

Hi,

It should be the same in windows if you have configured windows with the
correct keyboard layout. But if the problem is only in NetBeans and not in
other applications, then I do not understand why you have this problem.

/Peter Holt

 

 

Från: Christopher C. Lanz  
Skickat: den 2 januari 2023 15:39
Till: Peter Holt ; users@netbeans.apache.org
Ämne: Re: [EXTERNAL] Sv: accented characters in NB 16 IDE editor

 

Hello,

 

Thanks for the message. The only new information in your email that I can
see is 

 

This message has a digital signature, but it wasn't verified because the
S/MIME control isn't currently supported for your browser or platform.

 

Does this imply that I need to do something before I can submit a query to
the NetbEans mailing list "users"?

 

Thanks again.

 

Chris Lanz, Assoc. Professor Emeritus

Department of Computer Science

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu <mailto:lan...@potsdam.edu> 

315 268 1547 

 

 

 

  _  

From: Peter Holt mailto:pe...@holt.se> >
Sent: Sunday, January 1, 2023 3:56 PM
To: users@netbeans.apache.org <mailto:users@netbeans.apache.org>
mailto:users@netbeans.apache.org> >
Subject: [EXTERNAL] Sv: accented characters in NB 16 IDE editor 

 

This message did not originate from SUNY Potsdam or one of its trusted
senders. Do not open attachments, click on links, or provide your
credentials if the source is suspicious.



Sv: accented characters in NB 16 IDE editor

2023-01-01 Thread Peter Holt
 

 

Från: Christopher C. Lanz  
Skickat: den 1 januari 2023 21:32
Till: users@netbeans.apache.org
Ämne: accented characters in NB 16 IDE editor

 

Hello,

I just switched from linux to windows 10, with Netbeans 16 installed. I need to 
be able to type accented characters in the editor (java) - characters that 
survive being saved in files. In the linux version, it was a matter of holding 
AltGr and a key representing the desired accent, releasing those keys, and then 
typing a letter. I can't seem to find mention of this function online in 
stackoverflow etc., and the netbeans mailing list search gave no results 
(although I could be using it incorrectly.)

Thanks.

 

Chris Lanz

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu  

315 268 1547 

 

 

 


openpgp-digital-signature.asc
Description: PGP signature


File Type tutorial - Action next step

2022-07-18 Thread Peter Rushforth
Hi

I successfully followed the tutorial on how to create a new file type over
here: https://netbeans.apache.org/tutorials/nbm-filetype.html

I created the stub Action listener/handler. The action I would like to code
up is to run/view the new file in a browser, just like you can do with an
html file with its "Run File  Shift+F6"  right-click menu item.

I was looking for the code that implements that action, or some other clue
as to how to go about it.

Thanks for any pointers!

Peter


RE: Re: How to increase NB Search limit ?

2022-05-07 Thread Peter Ream
Thanks Michael. I have no need for the property changes, just wondering how
it was done.

Peter

On 2022/05/07 17:35:01 Michael Bien wrote:

Hi Peter,


there should be a netbeans_default_options property in your

netbeans.conf with a long line of arguments.


Thats where you can add more JVM arguments, but you have to prefix each

with -J so that the launcher knows that it is for the JVM and not for

the launcher.


-J-Dnetbeans.search.count.limit=2000


would set a property


-J-Xmx3G


would be a JVM flag.



-mbien



On 07.05.22 16:43, Peter Ream wrote:

> I hate to ask such a dumb question, but where are the properties found

> (/Applications/NetBeans/Apache NetBeans

> 13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?

> <http://13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?>)?

> I don’t see those properties there.

>

> On 2022/05/06 22:36:16 Michael Bien wrote:

>> actually I was wrong - it has been indeed changed into properties not

>> too long ago.

>>

>> try setting the

>> "netbeans.search.count.limit" property. This is the file count limit for

>> results which is set to 500 by default.

>> "netbeans.search.details.count.limit" would be the limit for individual

>> results, its set to 5k by default.

>>

>> there might be good arguments to bump those numbers by default since

>> systems have quite a lot of RAM these days.

>>

>> regards,

>> michael

>>

>> On 06.05.22 19:52, Bilu wrote:

>> >

>> > /this is likely hardcoded, I think I remember seeing some runaway

>> > limits in search code./

>> >

>> > => too bad

>> >

>> > /you could run the same search/replace action multiple times, right?/

>> >

>> > /=> /this /is what i was doing since the morning. it is not very

>> > helpfull with remote folders like smb sharing (very slow)/

>> >

>> > /

>> > /

>> >

>> > Le 06/05/2022 à 19:30, Michael Bien a écrit :

>> >> Hi,

>> >>

>> >> this is likely hardcoded, I think I remember seeing some runaway

>> >> limits in search code.

>> >>

>> >> you could run the same search/replace action multiple times, right?

>> >>

>> >> -mbien

>> >>

>> >>

>> >> On 06.05.22 16:50, Bilu wrote:

>> >>>

>> >>> Hello,

>> >>>

>> >>> When Replacing in a large project i get: *the search was stopped

>> >>> because the limit for number of matching files (500) was reached.*

>> >>>

>> >>> Is there any propertie to override this behavior in the

>> netbeans.conf?

>> >>>

>> >>> Please advise. Same for the 5000 occurrences matches

>> >>>

>> >>

>


RE: Re: How to increase NB Search limit ?

2022-05-07 Thread Peter Ream
I hate to ask such a dumb question, but where are the properties found
(/Applications/NetBeans/Apache
NetBeans 13.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf?)? I
don’t see those properties there.

On 2022/05/06 22:36:16 Michael Bien wrote:

actually I was wrong - it has been indeed changed into properties not

too long ago.


try setting the

"netbeans.search.count.limit" property. This is the file count limit for

results which is set to 500 by default.

"netbeans.search.details.count.limit" would be the limit for individual

results, its set to 5k by default.


there might be good arguments to bump those numbers by default since

systems have quite a lot of RAM these days.


regards,

michael


On 06.05.22 19:52, Bilu wrote:

>

> /this is likely hardcoded, I think I remember seeing some runaway

> limits in search code./

>

> => too bad

>

> /you could run the same search/replace action multiple times, right?/

>

> /=> /this /is what i was doing since the morning. it is not very

> helpfull with remote folders like smb sharing (very slow)/

>

> /

> /

>

> Le 06/05/2022 à 19:30, Michael Bien a écrit :

>> Hi,

>>

>> this is likely hardcoded, I think I remember seeing some runaway

>> limits in search code.

>>

>> you could run the same search/replace action multiple times, right?

>>

>> -mbien

>>

>>

>> On 06.05.22 16:50, Bilu wrote:

>>>

>>> Hello,

>>>

>>> When Replacing in a large project i get: *the search was stopped

>>> because the limit for number of matching files (500) was reached.*

>>>

>>> Is there any propertie to override this behavior in the netbeans.conf?

>>>

>>> Please advise. Same for the 5000 occurrences matches

>>>

>>


Problems with code completion in JSP when using Jakarta EE 9

2022-03-14 Thread Peter Holt
I have issues with NetBeans JSP page parsers that have not been working.  When 
using Jakarta EE 9+ (using the jakarta, rather than the javax, packages) the 
code completion/suggestions (ctrl+space) do not show any of my own code; none 
of my CDI beans appear in the drop-down for auto-completing my JSP expressions 
${}.

I can`t find what I have done wrong.

My application works in Payara 5.2021.10.

The only thing not working for me is the code completion in JSP expression. And 
it clearly show that it expects javax and not Jakarta.



 

In pom.xml:

Have set:



11

11

${project.build.directory}/endorsed

UTF-8

false

9.0.0



…



jakarta.platform

jakarta.jakartaee-api

9.0.0

provided



…



jakarta.platform


jakarta.jakartaee-api

${jakartaee}

pom



 

In beans.xml :



https://jakarta.ee/xml/ns/jakartaee 

   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

   xsi:schemaLocation=https://jakarta.ee/xml/ns/jakartaee 
https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd 
<https://jakarta.ee/xml/ns/jakartaee%20https:/jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd>
 

   bean-discovery-mode="all"

   version="3.0">



 

And in my web.xml:

https://jakarta.ee/xml/ns/jakartaee

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

xsi:schemaLocation=https://jakarta.ee/xml/ns/jakartaee 
https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd 
<https://jakarta.ee/xml/ns/jakartaee%20https:/jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd>
 

version="5.0">

 

Any suggestions on what I have missed to do to get it working?

Regards
Peter Holt


openpgp-digital-signature.asc
Description: PGP signature


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

2022-03-08 Thread Peter Ream
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.


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

2022-03-06 Thread Peter Ream
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.


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

2022-03-06 Thread Peter Ream
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


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

2022-03-06 Thread Peter Ream
Last login: Sun Mar  6 12:42:40 on ttys000

userid@Peters-MacBook-Air Handicap % ls -l

total 32

-rw-r--r--  1 userid  staff  1028 Jan 25 12:42 nb-configuration.xml

-rw-r--r--  1 userid  staff  2309 Jan 25 12:42 nbactions.xml

-rw-r--r--  1 userid  staff  5336 Nov 16 14:14 pom.xml

drwxr-xr-x  5 userid  staff   160 Jan 25 12:42 src

userid@Peters-MacBook-Air Handicap %


Userid is me.


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

2022-03-06 Thread Peter Ream
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


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

2022-03-06 Thread Peter Ream
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?


Re: Strange surefire problem using wrong Java version

2022-01-30 Thread Peter Nabbefeld



Thank You for the advice! In fact, I even remember of some rare cases
where I had issues with filehistory, but that's been some time ago
already ...

After thinking about why caching could cause the surefire problem, I
realized that copying a project's directory within NetBeans might lead
to indexing and history confusion, so I looked at my projects popup menu
and found "Reload POM" - this worked sufficiently, as it needs to
refresh indexing and filehistory for pom.xml, so in my case it's even
not been necessary to move or delete the whole cache. :)

Kind regards
Peter



Am 29.01.22 um 22:25 schrieb Pieter van den Hombergh:

reminds me of a caching problem I've  seen before. Rename you
cahch dir, to see if this is the case. If not, you can rename it back.


On Sat, Jan 29, 2022 at 8:52 PM Peter Nabbefeld
 wrote:


Hello,

though I've configured my project to use JDK 1.8, surefire outputs
syntax errors about module-info.java, which does even not exist:

Jan 29, 2022 8:29:36 PM
org.netbeans.modules.settings.RecognizeInstanceObjects$MSL 
WARNUNG: Not listening on module system
Jan 29, 2022 8:29:36 PM org.netbeans.modules.masterfs.watcher.Watcher
getNotifierForPlatform
INFORMATION: Native file watcher is disabled
Jan 29, 2022 8:29:36 PM
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork
getDone
INFORMATION: Resolving dependencies took: 18 ms
Jan 29, 2022 8:29:36 PM

org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork
scanBinaries
INFORMATION: Complete indexing of 0 binary roots took: 1 ms
Jan 29, 2022 8:29:36 PM

org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork
scanSources
INFORMATION: Complete indexing of 0 source roots took: 0 ms (New or
modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
/module-info.java:1: error: class, interface, or enum expected
module java.base {
^
/module-info.java:3: error: class, interface, or enum expected
 exports java.applet;
 ^
/module-info.java:4: error: class, interface, or enum expected
 exports java.util.spi;
 ^
/module-info.java:5: error: class, interface, or enum expected
 exports java.text.spi;
 ^
/module-info.java:6: error: class, interface, or enum expected
 exports java.awt.image;
[...]


I've already tried to fix the problem by adding
"/usr/lib64/jvm/java-8-openjdk/jre/bin/java" to the
configuration element, but that doesn't work either. The project is of
"NetBeans Module" type. If surefire needs its own Java version
configuration, this should be done automatically (as long as I'm using
the "Project properties" dialog), so it may be a bug.

Any help appreciated.

Kind regards
Peter


-
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



--
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.



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

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



Strange surefire problem using wrong Java version

2022-01-29 Thread Peter Nabbefeld



Hello,

though I've configured my project to use JDK 1.8, surefire outputs
syntax errors about module-info.java, which does even not exist:

Jan 29, 2022 8:29:36 PM
org.netbeans.modules.settings.RecognizeInstanceObjects$MSL 
WARNUNG: Not listening on module system
Jan 29, 2022 8:29:36 PM org.netbeans.modules.masterfs.watcher.Watcher
getNotifierForPlatform
INFORMATION: Native file watcher is disabled
Jan 29, 2022 8:29:36 PM
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork
getDone
INFORMATION: Resolving dependencies took: 18 ms
Jan 29, 2022 8:29:36 PM
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork
scanBinaries
INFORMATION: Complete indexing of 0 binary roots took: 1 ms
Jan 29, 2022 8:29:36 PM
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork
scanSources
INFORMATION: Complete indexing of 0 source roots took: 0 ms (New or
modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
/module-info.java:1: error: class, interface, or enum expected
module java.base {
^
/module-info.java:3: error: class, interface, or enum expected
    exports java.applet;
    ^
/module-info.java:4: error: class, interface, or enum expected
    exports java.util.spi;
    ^
/module-info.java:5: error: class, interface, or enum expected
    exports java.text.spi;
    ^
/module-info.java:6: error: class, interface, or enum expected
    exports java.awt.image;
[...]


I've already tried to fix the problem by adding
"/usr/lib64/jvm/java-8-openjdk/jre/bin/java" to the
configuration element, but that doesn't work either. The project is of
"NetBeans Module" type. If surefire needs its own Java version
configuration, this should be done automatically (as long as I'm using
the "Project properties" dialog), so it may be a bug.

Any help appreciated.

Kind regards
Peter


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

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



RE: Re: NetBeans freezes randomly

2022-01-12 Thread Peter Ream
 a la persona o

> entidad a quien que va dirigida y puede contener información confidencial

> y/o material privilegiado. Cualquier revisión, retransmisión, difusión u

> otros usos, o cualquier acción tomada por personas o entidades distintas
al

> destinatario basándose en esta información está prohibida. Si usted recibe

> este mensaje por error, por favor contacte al remitente y elimine el

> material de cualquier computadora.

>



Thank you.

Peter Ream


RE: Blank Terminal window on M1 Mac with Netbeans 12.5

2021-11-13 Thread Peter Ream
This works fine on M1 Macbook Air with Big Sur 11.6.1.

On 2021/11/12 20:34:54 Tim Mullé wrote:
> Hi,
> 
> Just found something interesting when running Netbeans on my new M1 Mac 
> (Silicon) Monterey 12.0.1 with JDK 11 or JDK17 where
> the “Open in Terminal” option under the Tools menu opens a blank terminal.
> 
> This didn’t happen on Big Sur x86_64 with either JDK..
> 
> Plus, I don’t seem to get any errors in the IDE LOG.
> 
> 
-
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: JDK non-missmatch

2021-09-23 Thread Peter



On 2021/09/21 19:44:25, Peter  wrote: 
> I've been beating my head over this for several days. Thought maybe it was a 
> nb-javac issue. I deactivated nb-javac plugin to eliminate. I have a jar I 
> created with shaded plugin. I compile with "java platform:" JDK 11 and 
> "Source/Binary Format:" 11. The default JDK for netbeans is 11. My original 
> problem was with System.getProperty("java.runtime.version"). I thought that 
> would give me the running JDK, instead I get what class was compiled with in 
> Netbeans. Next I tried running my shaded jar (everything with JDK 11) with 
> java version 1.8 expecting to get a miss-match. It ran fine with the 
> getProperty reporting 11. I first tried asking this question here:
> 
> https://stackoverflow.com/questions/69228399/java-system-getpropertyjava-runtime-version-not-reporting-correctly
> 
> Maybe I wasn't clear. Obviously, I'm missing something?
> 
> -
> 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
> 
>
Dumb user problem:
 I’ve been beating my brain on this and getting nowhere. I have two java 
programs I wrote and turn into .app on my mac os x system. Today, I tried 
running an 11 version on my Windows 10 system with JDK 1.8. It failed as I 
thought it should. It dawned on me that on Windows, I execute them as jars. I 
tried the same on Mac OS X (ie run the jar). It failed. My launch script in my 
application bundle looks for the highest level JDK on the system, not the 
currently active JDK.

-
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



JDK non-missmatch

2021-09-21 Thread Peter
I've been beating my head over this for several days. Thought maybe it was a 
nb-javac issue. I deactivated nb-javac plugin to eliminate. I have a jar I 
created with shaded plugin. I compile with "java platform:" JDK 11 and 
"Source/Binary Format:" 11. The default JDK for netbeans is 11. My original 
problem was with System.getProperty("java.runtime.version"). I thought that 
would give me the running JDK, instead I get what class was compiled with in 
Netbeans. Next I tried running my shaded jar (everything with JDK 11) with java 
version 1.8 expecting to get a miss-match. It ran fine with the getProperty 
reporting 11. I first tried asking this question here:

https://stackoverflow.com/questions/69228399/java-system-getpropertyjava-runtime-version-not-reporting-correctly

Maybe I wasn't clear. Obviously, I'm missing something?

-
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: Compiler warnings

2021-08-23 Thread Peter



On 2020/05/23 16:24:30, HRH  wrote: 
> Hi,Using the Netbeans 12 beta 4. I am getting a compiler warning on a Main 
> Class:
> Compiler warning: " Class  uses unchecked or unsafe operation. Note: 
> Recompile with -Xlint:unchecked for details".
> In the Run->Set project Configuration->Customize->Build->Compiling->Run 
> Compilation with external VM->Additional Compile options: I entered 
> -Xlint:unchecked
> I recompiled the code hoping for more details but the same compiler warning 
> produced again as if it does not see the -Xlint:unchecked.
> In Netbeans 11.3, the -Xlint:unchecked used to produce more information. Is 
> this a bug in release 12 beta 4?
> Thanks for any feedback.
> I have this same question. I want to run with -Xlint:unchecked compiler 
> option. How do I do this?

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

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



Re: Java : HelloWorld

2021-08-05 Thread Peter Zimmermann
Many thanks to those that attended to my problem. Modifying the
netbeans.conf file as per the link below from Nicholas solved the problem.

On Thu, 5 Aug 2021 at 2:53 pm, Nicholas  wrote:

> When I see this message below I want to see the command which which was
> issued.  Easiest way to do that is to use maven or javac directly from the
> console.  My two cents.
>
> Although, yes, a cursory search does indicate, as suggested:
>
> https://stackoverflow.com/q/58411279/4531180
>
> which has nothing to do with Maven nor Netbeans per se.  Unsupported JDK
> or something(?).
>
>
>
> On 2021-08-04 9:41 a.m., 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 <https://go.microsoft.com/fwlink/?LinkId=550986> 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
>
>


Java : HelloWorld

2021-08-01 Thread Peter Zimmermann
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



Re: v12.4 Fonts wrong

2021-06-24 Thread Peter Nabbefeld

Hello,

I got problems with fonts on Linux, too, with NB 12.4 running on Java 16.

I'm not sure, if the following article is related:
https://docs.oracle.com/en/java/javase/16/intl/font-configuration-files.html

Especially, the following statement:
"For Linux, the Oracle JDK is moving away from providing custom font
configuration files on Linux platforms, as they are difficult to keep up
to date across distributions and versions."

Kind regards
Peter



Am 23.06.21 um 11:48 schrieb Lister Jonathan:

Not much help for you, but NB 12.4 fonts look OK for me without any
serious tweaking on Ubuntu 20.04.
This is FlatLaf Dark.
J

*From:* Bradley Willcott 
*Sent:* Wednesday, June 23, 2021 10:38 AM
*To:* NetBeans Mailing 
*Subject:* re: v12.4 Fonts wrong

Hi.

Some more info.

I went through all the standard themes and found that only the
*Nimbus* and *Dark Nimbus* themes provided an override to the small
italicised fonts.  However, as you can see in the attached screenshot,
even that did not fix the problem in the editor or the output windows.

Any thoughts/ideas on fixing this?

Thank you,
Brad.



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

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



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

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



Re: Deployment Tutorial Source Files

2021-04-21 Thread Peter
Perfect! Thank you.

On 2021/04/21 21:00:55, antonio  wrote: 
> Yep
> 
> http://web.archive.org/web/2012060100*/https://netbeans.org/projects/samples/downloads/download/Samples%2FJava%2FDeploymentTutorial.zip
> 
> El 21/4/21 a las 20:16, Peter Ream escribió:
> > I am looking at the netbeans website “Java SE Learning Trail”, 
> > specifically “Packaging and Distributing Java Desktop Application.” 
> > There is a reference to “Deployment Tutorial Source Files” :
> > 
> > https://netbeans.org/projects/samples/downloads/download/Samples%252FJava%252FDeploymentTutorial.zip
> >  
> > <https://netbeans.org/projects/samples/downloads/download/Samples%252FJava%252FDeploymentTutorial.zip>
> > 
> > Does this zip file exist somewhere since decommissioning netbeans.org 
> > <http://netbeans.org>?
> > 
> > Thank you.
> > 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 

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

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



Deployment Tutorial Source Files

2021-04-21 Thread Peter Ream
I am looking at the netbeans website “Java SE Learning Trail”, specifically
“Packaging and Distributing Java Desktop Application.” There is a reference
to “Deployment Tutorial Source Files” :

https://netbeans.org/projects/samples/downloads/download/Samples%252FJava%252FDeploymentTutorial.zip

Does this zip file exist somewhere since decommissioning netbeans.org?

Thank you.


RE: New Thread - Netbeans 12.2 is not correctly identifying an Angular 11 Project

2021-03-10 Thread peter
Thank you.  This happened a few times with 11 and it cleared up.  8 was great. 
12 is weird and wonky.

 

Regards,

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: Geertjan Wielenga  
Sent: Wednesday, March 10, 2021 1:22 PM
To: pe...@webparity.net
Cc: Scott Palmer ; Franck Arnulfo 
; Thomas Wolf ; Netbeans Mailing 
List 
Subject: Re: New Thread - Netbeans 12.2 is not correctly identifying an Angular 
11 Project

 

NetBeans may not be the best tool to be using for Angular. I'll take a look at 
your repo in the coming days when I can.

 

Gj

 

On Wed, Mar 10, 2021 at 9:53 PM mailto:pe...@webparity.net> > wrote:

All, I need help, please.

I have the latest version of NB and when I check updates, it says I’m fine. 
Please confirm that 12.2 is indeed the latest build.

When NB 12.2 does external source scanning, background scanning, and typescript 
checking, I get this for Angular



I have to close the project and reopen it but then the whole thing starts all 
over again. Is there an update to NB 12.2.

Thank you for any help you can give me, please.

Here’s the github and the directory is APM-Start

https://github.com/pborregg/Angular-RxJS

If I need to put this on JIRA, I will and forgive me for not following protocol 
as I don’t use this forum   often

Very respectfully,

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“To become a great leader, one must learn to follow, first…”

*   Jeor Mormont, Lord Commander of the Night's Watch

 



A Level Playing Field for All Business™

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 



New Thread - Netbeans 12.2 is not correctly identifying an Angular 11 Project

2021-03-10 Thread peter
All, I need help, please.

I have the latest version of NB and when I check updates, it says I'm fine.
Please confirm that 12.2 is indeed the latest build.

When NB 12.2 does external source scanning, background scanning, and
typescript checking, I get this for Angular



I have to close the project and reopen it but then the whole thing starts
all over again. Is there an update to NB 12.2.

Thank you for any help you can give me, please.

Here's the github and the directory is APM-Start

https://github.com/pborregg/Angular-RxJS

If I need to put this on JIRA, I will and forgive me for not following
protocol as I don't use this forum   often

Very respectfully,

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

 <http://webparity.net/> WebParity.net

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

"To become a great leader, one must learn to follow, first."

*   Jeor Mormont, Lord Commander of the Night's Watch

 



A Level Playing Field for All BusinessT

 

This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the intended
recipient, please contact the sender and destroy all copies of the original
message and its attachments. Any unauthorized review, use, disclosure, or
distribution is prohibited.

 



RE: Watch "Robots will displace over 800 million jobs - report" on YouTube

2021-02-06 Thread peter
Thank you.

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: HRH  
Sent: Saturday, February 6, 2021 10:11 AM
To: users@netbeans.apache.org; Brain Rebooting 
Subject: Re: Watch "Robots will displace over 800 million jobs - report" on 
YouTube

 

This is a dedicated mailing list for the Netbeans IDE. You are better off 
taking your question to sites like Quora - A place to share knowledge and 
better understand the world <https://www.quora.com/> 

 





Quora - A place to share knowledge and better understand the world


where hypotheticals are discussed. 

 

 

On Saturday, February 6, 2021, 7:54:52 PM GMT+3:30, Brain Rebooting 
mailto:siumastroma...@gmail.com> > wrote: 

 

 

And that time is not so far. In the guise of UN Agenda 2030, almost all of the 
things will become automated. I shared a video from a reputed news company. Its 
not any conspiracy theory. I just wanna know, will software development will be 
a good choice before or after 2030? 

 

On Sat, 6 Feb 2021, 10:20 pm Brain Rebooting, mailto:siumastroma...@gmail.com> > wrote:

Whatever I'm asking, is that seems fishy? 

 

There is a possibility, that's why I'm asking that, why software 
developers/engineers work with technology, that is making most of the things 
automated? Even in that sense or time, what will be the value of open source? 

 

On Sat, 6 Feb 2021, 10:17 pm Brain Rebooting, mailto:siumastroma...@gmail.com> > wrote:

Sorry, that was a typo.

 

On Sat, 6 Feb 2021, 9:40 pm Glenn Holmer, mailto:ce...@kolabnow.com.invalid> > wrote:

On 2/6/21 1:38 AM, Brain Rebooting wrote:
> https://youtu.be/g51UpOlXfTY <https://youtu.be/g51UpOlXfTY>
> 
> Recently I read a book entitled "Software Engineering by Sommerville". I 
> faced a question, is it ethical for Software engineers to work with 
> technology, that automated everything?

What does this have to do with NetBeans?

> Samiul Alom Sium
> Associate of Science in Computer Dcience,
> University of the people, USA

Could you please explain what it is "Computer Dcience"?

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

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

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



RE: phishing emails?

2021-02-06 Thread peter
All,

 

I've reported issues before on JIRA and get no response.

 

So, and please forgive me, I'm asking a question of everyone.

 

I've got this full stack CODING test on my 
https://github.com/pborregg/web-ui-developer-puzzle

 

I'm using NB 12.2 and this is what I see at the FIRST line of every .ts file.

 



 

 

Error in nbts-services process:

 

<--- Last few GCs --->

 

[21872:01C025781F40]  1263533 ms: Scavenge (reduce) 4086.8 (4101.3) -> 
4086.3 (4102.3) MB, 8.4 / 0.0 ms  (average mu = 0.129, current mu = 0.006) 
allocation failure 

[21872:01C025781F40]  1263896 ms: Scavenge (reduce) 4086.8 (4101.3) -> 
4086.3 (4102.8) MB, 22.9 / 0.0 ms  (average mu = 0.129, current mu = 0.006) 
allocation failure 

 

 

<--- JS stacktrace --->

 

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - 
JavaScript heap out of memory

1: 7FF7E3B31DDF napi_wrap+109135

2: 7FF7E3AD6D06 
v8::internal::OrderedHashTable::NumberOfElementsOffset+33350

3: 7FF7E3AD7AD6 node::OnFatalError+294

4: 7FF7E43A64CE v8::Isolate::ReportExternalAllocationLimitReached+94

5: 7FF7E438B31D v8::SharedArrayBuffer::Externalize+781

6: 7FF7E423574C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516

7: 7FF7E4240AAA v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258

[Exit status 134]

 

Close project and reopen to retry.



(Alt-Enter shows hints)

 

Now, I’ve closed and reopened the project several times and found that it’s 
still displaying this error.

 

I’d like to know if this is just Netbeans or something more sinister in the 
code?

 

It runs fine and the tests work.

 

But I’m concerned with this error.

 

Thank you.

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

-Original Message-
From: Neil C Smith  
Sent: Friday, December 11, 2020 10:46 AM
To: Eric J. Schwarzenbach ; NetBeans Mailing 
List 
Subject: Re: phishing emails?

 

On Fri, 11 Dec 2020 at 02:41, Eric J. Schwarzenbach < 
<mailto:eric.schwarzenb...@wrycan.com> eric.schwarzenb...@wrycan.com> wrote:

> Today I received an email (to my address directly I think, not via 

> this

> list) in the form of a reply to an old message of mine in a thread on 

> this list. ...

> It was a google docs link, and I'm not really sure what it did, 

> nothing as far as I can tell, but I believe it must have been some 

> kind of phishing or other malware attempt.

 

Yes, I got the same thing yesterday as a private, direct response to an old 
thread here.

 

Best wishes,

 

Neil

 

-

To unsubscribe, e-mail:  <mailto:users-unsubscr...@netbeans.apache.org> 
users-unsubscr...@netbeans.apache.org

For additional commands, e-mail:  <mailto:users-h...@netbeans.apache.org> 
users-h...@netbeans.apache.org

 

For further information about the NetBeans mailing lists, visit:

 <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists> 
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

 



Re: Netbeans 11.3 - can't push to remote

2021-01-19 Thread Peter Hull
On Tue, 19 Jan 2021 at 21:56, Thomas Wolf  wrote:

> On Jan 19, 2021 at 4:26:08 PM, Thomas Wolf  wrote:
>
>> Hey everyone,
>> I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local
>> changes to a recently created remote git repository.  But NB keeps telling
>> me about invalid credentials (I used ssh private key) and when I look into
>> the IDE log, I see this:
>> …
>
> I *think* I had the same problem and the solution turned out to be the
permissions on the ~/.ssh directory. (not sure because it was a while ago
and I did something and then forgot about it!)
Try removing all permissions from group and other (command: chmod
g-rwx,o-rwx ~/.ssh)
On my mac,
$ ls -ld ~/.ssh
drwx--  17 peterhull  501  544 10 Oct 16:55 /Users/peterhull/.ssh


> Not sure how com.jcraft and org.eclipse packages are in the picture - are
> those just libs NB uses?
>

 Yes, it uses jgit from the Eclipse project.

Hope that helps


Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Peter Hull
On Sat, 19 Dec 2020 at 22:42, Christopher C. Lanz
 wrote:
>
>  I have changed the netbeans.conf and app.conf files to include
>
> -J-Xms512m -J-Xmx2048m

As far as I know, that's the right way to increase Netbeans heap. Maybe
check in the IDE log (just after the line that starts "Input arguments:")
to see if those options have truly been applied.
Maybe NB has another limit that causes it to print that message,
independent of the heap size. Hopefully someone who knows can answer that.
Whenever I get that warning I just ignore it to be honest!


Re: print before take Scanner input not working

2020-12-18 Thread Peter
This was introduced sometime after Maven 3.3.9 (after Netbeans 11.1). Running 
Netbeans 12.1 with Maven from Netbeans 11.1 is a work around.

On 2020/12/16 18:11:31, "Christopher C. Lanz"  
wrote: 
> Hello,
> 
> For many years, and both with NetBeans and with just a terminal, I have used 
> methods like this, to prompt the user to enter (say) an integer:
> 
> public static int inkeyInteger( String message ){
> 
> System.out.print( message );
> Scanner console = new Scanner(System.in);
> return console.nextInt();
> 
> }
> 
> Now in NetBeans 12, this code fails - the message is not printed until after 
> the user supplies data to the Scanner.
> 
> I have tried all the possible orderings of these 3 lines of code, and passing 
> the Scanner, etc. etc. I have searched StackOverflow.
> 
> It can be worked around if I print the message before calling a method 
> containing the scanner definition and next() call. This will require changing 
> hundreds of method calls throughout a large program.
> 
> Is there a workaround or patch etc.?
> 
> 
> Chris Lanz
> 
> Department of Computer Science
> 
> 340 Dunn Hall, SUNY Potsdam
> 
> lan...@potsdam.edu
> 
> 315 267 2407
> 
> 315 268 1547
> 
> 
> Nature and nature's laws lay hid in night:
> God said, Let Newton be! and all was light. (Pope)
> 
> It did not last: the Devil howling "Ho!
> Let Einstein be!" restored the status quo. (Squire)
> 
> 

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

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



Re: Java - System.out.print("Command: "); problem

2020-12-18 Thread Peter
I started this without knowing how to access or reply.

This was introduced sometime after Maven 3.3.9 (after Netbeans 11.1). Running 
Netbeans 12.1 with Maven from Netbeans 11.1 is a work around.

On 2020/09/18 14:36:33, Peter Ream  wrote: 
>  I had a java program that worked in mood.fi’s plugin in netbeans. I tried
> it in Netbeans 12.0, but it would not work. Here is an example that does
> not work in Netbeans 12:
> 
> import java.util.Scanner;
> 
> public class Main {
> 
> public static void main(String[] args) {
> 
> Scanner scanner = new Scanner(System.in);
> while (true) {
> System.out.print("Command: ");
> String command = scanner.nextLine();
> System.out.println("Bye bye!");
> break;
> }
> }
> }
> }
> 
> I have prior versions of Netbeans lying around. I found this works up
> through 11.1, but does not work in 11.3.
> 
> Any ideas?
> 
> Thank you.
> 
> Peter
> 

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

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



Re: Netbeans 12.2 nb-javac can't parse correct java code (works with 12.1 and before)

2020-12-17 Thread Peter Hull
On Thu, 17 Dec 2020 at 11:52, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

>
> Yup, we’ve mailed back and forth on this and it’s clear this is the
> problem.
>
> While we're on the subject, do you know how an updated nb-javac will be
released (I assume it's still under Oracle's control?) given that the issue
seems to have been fixed just yesterday?


Re: Netbeans 12.2 nb-javac can't parse correct java code (works with 12.1 and before)

2020-12-17 Thread Peter Hull
 I think it's the use of the variable name 'permits' that is causing the
error. The new sealed classes (see http://openjdk.java.net/jeps/360) thing
uses permits as part of the class definition. I think it ought to be
treated as a normal identifier when it's not part of class definition, but
maybe nb-javac is wrongly treating it as a keyword?
Anyway, as a work-around,  if you rename 'permits' to something else the
error squiggles go away.


Re: Mouse quirks

2020-12-08 Thread Peter
I can add a little to this. I am a beginner at java and dabble a little in 
swing. My environment is Mac OS 10.15.7, Netbeans 12.1. I have had problems 
setting breakpoints in Netbeans debug like everyone else in all releases. I 
have also found mouse clicks in swing applications I have dabbled in get 
dropped also. It appears to be minor movement between click and release of 
mouse. I installed a swing app and Netbeans  on Windows 10. They both 
experience the same problem, but only if click, move mouse, and release mouse. 
Normal click and release works fine. Never thought to suspect swing until I 
read this thread. This seems to be either swing or java related. I know it is 
exaggerated on Mac OS and does not occur in Intellij. 

On 2020/05/01 23:53:39, Scott Palmer  wrote: 
> The phenomenon that I observed on macOS is specific to NetBeans, though it 
> could be all swing apps. (NetBeans is the only Swing UI I’m aware of running.)
> Clicks in other applications are fine, so it doesn’t appear to be fixable 
> with OS adjustments to the input device sensitivity. 
> Clicks in the gutter to set a breakpoint or look at a hint seem to be where 
> it is most frustrating.
> 
> 
> Scott
> 
> > On May 1, 2020, at 3:09 PM, Eric J. Schwarzenbach 
> >  wrote:
> > 
> > 
> > I'd offer one suggestion for anyone suffering from double-click problems: 
> > you can configure the click delay that determines whether a second click 
> > constitutes a double click or a second single-click. I remember this being 
> > a setting in the control panel from my Windows days, no idea about Macs, 
> > and in Linux you may have to dig into a config file depending on your 
> > desktop manager. I'm not positive that the OS setting affects Netbeans, but 
> > it might be worth a try.
> > 
> > 
> > 
> > On 5/1/20 2:00 AM, James Ostrowick wrote:
> >> I’m so glad someone else is having this problem! I thought it was just me.
> >> 
> >> It drives me nuts trying to create a debug breakpoint as well, sometimes I 
> >> have to click several times to get it to acknowledge the breakpoint 
> >> insertion.
> >> 
> >> What I have noticed is that it if you click, pause for about a second and 
> >> then click again it acknowledges the second click better. (When creating 
> >> breakpoints)
> >> I’ve also found that the external mouse is less accurate than the trackpad 
> >> for some very strange reason, possibly something to do with the resolution 
> >> of the mouse being lower than the trackpad?
> >> So, bluetooth apple mouse clicks tend NOT to be recognised as easily as 
> >> the trackpad. 
> >> 
> >> I first noticed this irritation in NB 10, but its persisted into 11 as 
> >> well 
> >> 
> >> This is on MacOS X Catalina 10.15.4, NB 11.3
> >> 
> >> 
> >> 
> >>> On 01 May 2020, at 07:51, Alan  wrote:
> >>> 
> >>> I think Scott is onto something. I've run 20 or so tests where I 
> >>> experienced this by leaving my external mouse still and using the button 
> >>> on the laptop touchpad to do the clicking, and there were no 
> >>> "missed/ignored" clicks. Same story for a similar problem with opening 
> >>> files via double-click.
> >>> 
> >>> On 2020-04-30 18:39, Alan wrote:
>  That's a definite possibility... I'm a "drive by clicker", notorious for 
>  small mouse shifts between down and up. I'll try testing that out.
>  
>  On 2020-04-30 16:11, Scott Palmer wrote:
> > Same on macOS. It seems if the mouse moves a single pixel between mouse 
> > down and mouse up then it may not count as a click.
> > 
> > Scott
> > 
> >> On Apr 30, 2020, at 11:59 AM, Darin Miller  
> >> wrote:
> >> 
> >> 
> >> I also observe the "ultra precise" mouse behavior. Both on win7 and 
> >> win10 desktops.
> >> 
> >>  o__
> >>   >/  
> >> ( )\( ) Darin | 208-991-4421
> >> 
> >> 
> >> On Thu, Apr 30, 2020 at 9:52 AM Alan  
> >> wrote:
> >>> Hi Eirik,
> >>> 
> >>> No display scaling, everything is 100%. It's also 
> >>> monitor-independent. The problem is inconsistent, although it's more 
> >>> prevalent with breakpoints than with the document close. The 
> >>> highlight box is a good indication that the mouse position is getting 
> >>> read right, it's the click event that seems to be problematic.
> >>> 
> >>> At this point I'm waiting for a time when I have the presence of mind 
> >>> to start screen captures. Then maybe I can better characterize the 
> >>> problem. It doesn't appear to be a consistent shift. I suspect the 
> >>> location of the actual hostspot is dependent on screen coordinates. 
> >>> I've had this experience with all the 11.x series, can't recall if it 
> >>> was there in 10.x or not, but it's new since 8.2. If it's not "just 
> >>> me" with this problem I'll see if I can set aside some time to get 
> >>> some more actionable information.
> >>> 
> >>> This is an older machine, ASUS G75 laptop, 

Re: New 12.2 install, can't change netbeans.conf

2020-12-07 Thread Peter Toye
Dear Brenden,

Well, on  my machine (Windows 10 Home 64-bit) I don't have write access to the 
directory of the file, but Admin does.

I assume you've looked at the effective permissions part of the file properties 
to check.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, December 7, 2020, 5:41:57 PM, you wrote:



Sorry about that, I just asked about this on Superuser and I just forgot to 
include the details since I had just explained them. (Yall always check 
Superuser every time yall get an email, right? :-) )

Yes, I don't have permission.  The entire directory tree including all files is 
marked as "Read Only" and all the files are owned by "Administrators" (and no 
group set, group is "None").  The read-only bit seems to be the main problem, 
but I suspect that the file ownership will also figure in to there somewhere as 
well.  Trying to edit this as text file (Gvim) doesn't allow me to change the 
file even with :w!  And even if I run Explorer with Admin permissions it would 
let me change the read only status.  It runs and doesn't report an error, but 
the read only status remains.

At minimum this is really inconvenient.  At worst I guess I might have to wait 
for a fix and then re-install.

I think I'd be happier with a configuration file under my users directory, say 
in a .netbeans directory or something, that I owned and I could just change as 
needed.



On 12/7/2020 9:27 AM, Geertjan Wielenga wrote:

Failing how? Maybe you don’t have permissions on the file?
Gj

On Mon, 7 Dec 2020 at 18:21, Brenden Towey  wrote:

I have a brand new 12.2 installation under Windows 10, and so far I've 
spent a fair amount of time trying to make changes to nebeans.conf and 
failing.  Windows UAC doesn't seem to like your configuration file very 
much.  I'd like to see changes to the installer to specifically permit 
easier editing of that file, and maybe a review to identify other files 
that the user might reasonably need make changes to.

Corollary: does anyone know how to change netbeans.conf under windows 
10?  I'd appreciate the help.


-
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: New 12.2 install, can't change netbeans.conf

2020-12-07 Thread peter
Everyone,

 

I wrote a bug in JIRA about Netbeans 11.3 and 12.1 starting but the UI never 
launches on my laptop which is fine on my desktop.

 

This all started when I updated JAVA.

 

Please, no one is responding to my ticket and I’m sorry I’m writing you all 
here.

 

Thank you for anything you can do.

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

 <http://webparity.net/> WebParity.net

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: Peter Toye  
Sent: Monday, December 7, 2020 9:36 AM
To: Brenden Towey ; users@netbeans.apache.org
Subject: Re: New 12.2 install, can't change netbeans.conf

 

Dear Brenden,

You have to run Wordpad (or whatever editor you're using) as an administrator. 
And don't forget to save a copy first!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com <http://www.ptoye.com> 

-
Monday, December 7, 2020, 5:20:47 PM, you wrote:

> I have a brand new 12.2 installation under Windows 10, and so far I've spent 
> a fair amount of time trying to make changes to nebeans.conf and failing.  
> Windows UAC doesn't seem to like your configuration file very much.  I'd like 
> to see changes to the installer to specifically permit easier editing of that 
> file, and maybe a review to identify other files that the user might 
> reasonably need make changes to.

> Corollary: does anyone know how to change netbeans.conf under windows 10?  
> I'd appreciate the help.


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

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



Re: New 12.2 install, can't change netbeans.conf

2020-12-07 Thread Peter Toye
Dear Brenden,

You have to run Wordpad (or whatever editor you're using) as an administrator. 
And don't forget to save a copy first!

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Monday, December 7, 2020, 5:20:47 PM, you wrote:

> I have a brand new 12.2 installation under Windows 10, and so far I've spent 
> a fair amount of time trying to make changes to nebeans.conf and failing.  
> Windows UAC doesn't seem to like your configuration file very much.  I'd like 
> to see changes to the installer to specifically permit easier editing of that 
> file, and maybe a review to identify other files that the user might 
> reasonably need make changes to.

> Corollary: does anyone know how to change netbeans.conf under windows 10?  
> I'd appreciate the help.


> -
> 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: How to reset/remove the stored Git password?

2020-12-03 Thread Peter Hull
On Thu, 3 Dec 2020 at 09:49, Peter Hull  wrote:

>
> I can see implementations for Gnome, KWallet and Mac, not sure about
> Windows. There is a class called FallbackProvider which is maybe used for
> windows?
>
Sorry, last one. Specifically on Windows it does use the FallbackProvider
and the passwords are stored encrypted in
%USERPROFILE%\AppData\Roaming\NetBeans\[VERSION]\config\Preferences\org\netbeans\modules\keyring
where [VERSION] is 12.2 or whatever.

>


Re: How to reset/remove the stored Git password?

2020-12-03 Thread Peter Hull
On Thu, 3 Dec 2020 at 09:49, Peter Hull  wrote:

> On Thu, 3 Dec 2020 at 09:25, Thomas Kellerer  wrote:
>
>> It would still be interesting where NetBeans stores that password.
>>
>> Ultimately NetBeans uses the Keyring class which delegates to a
> platform-dependent KeyringProvider.
>
> While it's in my mind (I checked up on this) the important
classes/interfaces are:

* org.eclipse.jgit.transport.CredentialsProvider (need to implement this
and pass an instance to JGit so it can do its work)
* org.netbeans.libs.git.jgit.JGitCredentialsProvider (implements
CredentialsProvider, gets credentials from a GitClientCallback)
* org.netbeans.modules.git.client.CredentialsCallback (gets credentials
from GitModuleConfig, implements GitClientCallback)
* org.netbeans.modules.git.GitModuleConfig (stores/retrieves
ConnectionSettings via KeyringSupport)
* org.netbeans.modules.versioning.util.KeyringSupport (helper class between
GitModuleConfig and Keyring)
* org.netbeans.api.keyring.Keyring (delegates to platform dependent
provider)

Phew!


Re: How to reset/remove the stored Git password?

2020-12-03 Thread Peter Hull
On Thu, 3 Dec 2020 at 09:25, Thomas Kellerer  wrote:

> It would still be interesting where NetBeans stores that password.
>
> Ultimately NetBeans uses the Keyring class which delegates to a
platform-dependent KeyringProvider.
https://github.com/apache/netbeans/blob/abe93502d5010781955ad22102893d03326c72e2/platform/keyring/src/org/netbeans/api/keyring/Keyring.java
https://github.com/apache/netbeans/blob/abe93502d5010781955ad22102893d03326c72e2/platform/keyring/src/org/netbeans/spi/keyring/KeyringProvider.java
I can see implementations for Gnome, KWallet and Mac, not sure about
Windows. There is a class called FallbackProvider which is maybe used for
windows?

You will be able to see the provider if you enable logging for "
org.netbeans.modules.keyring" at the FINE level.
https://github.com/apache/netbeans/blob/abe93502d5010781955ad22102893d03326c72e2/platform/keyring/src/org/netbeans/api/keyring/Keyring.java#L75

Pete


Re: Netbeans 12.1: Cannot access java.lang?

2020-11-30 Thread Peter Hull
I would check:
1. Does your Java platform setup look reasonable? (in Tools | Java
Platforms )
2. Does this error occur for a new project or just existing ones? (e.g. set
up a new "Java with Ant" application)
I think I've seen something like this before and it was down to the Java
platform configuration.


RE: Web application templates

2020-11-23 Thread peter
Yes, sorry, on JIRA?

 

Can you send the link please?

 

V/r

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: HRH  
Sent: Monday, November 23, 2020 8:49 AM
To: 'NetBeans Mailing List' ; pe...@webparity.net
Subject: Re: Web application templates

 

Peter,

 

You may need to re-post your question again since it came (inadvertently of 
course) as a reply to my post on a different issue.

 

On Monday, November 23, 2020, 8:12:39 PM GMT+3:30, mailto:pe...@webparity.net> > wrote: 

 

 

Hi everyone, 


I’m using NB 12 and every time I do something, all these hundreds of message 
boxes open and they open rapidly blocking my access to the IDE, but the OK 
button is hidden in most cases because the message is “WHITE” and therefore, 
I’m forced to KILL the program through task manager.

 

Do I need to update? I’m forced to used NB 11 because it’s more stable.

 

V/r

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: HRH mailto:hrh...@yahoo.com.INVALID> > 
Sent: Monday, November 23, 2020 3:29 AM
To: NetBeans Mailing List mailto:users@netbeans.apache.org> >
Subject: Web application templates

 

Hi,

 

I have created a web application project using Netbeans 12.0 on Windows 10 (JDK 
14.0). I have configured the IDE with Glassfish server 5.0.1. The generated 
web.xml file by Netbeans automatically sets the , 
which causes the web application to fail when it tries to discover the back-end 
managed bean referenced by the JSF page. As a workaround, I have been manually 
setting the version back to 3.1 (i.e.  ) inside the 
IDE generated web.xml. According to the Glassfish server 5.0.1 release notes, 
the web container supports servlet 4.0 specification, so do I need to configure 
anything else  in the IDE to make the application work without modifying the 
web.xml?

 

Thanks



RE: Web application templates

2020-11-23 Thread peter
Hi everyone, 


I’m using NB 12 and every time I do something, all these hundreds of message 
boxes open and they open rapidly blocking my access to the IDE, but the OK 
button is hidden in most cases because the message is “WHITE” and therefore, 
I’m forced to KILL the program through task manager.

 

Do I need to update? I’m forced to used NB 11 because it’s more stable.

 

V/r

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

 <http://webparity.net/> WebParity.net

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: HRH  
Sent: Monday, November 23, 2020 3:29 AM
To: NetBeans Mailing List 
Subject: Web application templates

 

Hi,

 

I have created a web application project using Netbeans 12.0 on Windows 10 (JDK 
14.0). I have configured the IDE with Glassfish server 5.0.1. The generated 
web.xml file by Netbeans automatically sets the , 
which causes the web application to fail when it tries to discover the back-end 
managed bean referenced by the JSF page. As a workaround, I have been manually 
setting the version back to 3.1 (i.e.  ) inside the 
IDE generated web.xml. According to the Glassfish server 5.0.1 release notes, 
the web container supports servlet 4.0 specification, so do I need to configure 
anything else  in the IDE to make the application work without modifying the 
web.xml?

 

Thanks



RE: Apache NetBeans 11.1-beta1 Is Available for Testing!

2020-11-06 Thread peter
Geertjan,

 

I keep sending to the users email, for which I’m now registered, and get no 
response.

 

12.x does the same thing.

 

I still cannot get 11 or 12 to come up on my laptop even after I did what was 
suggested by ‘uninstalling’ and reinstalling 12.  I’ve installed JAVA’s latest 
version.

 

Still, Netbeans launches the splash screen, then no UI. In task manager, it’s 
running but not in the upper part of processes.

 

Thank you and I’m sorry to be emailing everyone, but I just need to know if 
anyone has any answers.

 

V/r

 

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net <http://webparity.net/> 

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

From: Geertjan Wielenga  
Sent: Friday, November 6, 2020 11:03 AM
To: pe...@webparity.net
Cc: Luca Mambretti ; Neil C Smith 
; dev ; netcat 
; NetBeans Mailing List 
; users-h...@netbeans.apache.org
Subject: Re: Apache NetBeans 11.1-beta1 Is Available for Testing!

 

You shouldn't be using 11.3 anymore and 12.3 doesn't exist.

 

Can you pick one mailing list to write to, from this point onwards, please?

 

Gj

 

On Fri, Nov 6, 2020 at 7:44 PM mailto:pe...@webparity.net> > wrote:

All, 

 

I have a real issue with existing Angular apps in Netbeans 11.3 and 12.3. 
Notice the error at the bottom for a "VALID" closed curly but look where the 
upper bracket is attaching itself, thus rending EVERYTHING below the 
constructor, null and void. What's weird is that this is generated by Angular's 
CLI on a brand new application

 



 

 

I don’t understand…. I need to get this fixed. I finally got NODE JS installed. 
 It was a chore but it worked.

 

Peter Borreggine

Owner and Developer

Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO

WebParity.net

A Service Connected Disabled Veteran Owned Business

WA State License: 603-501-609

360-830-8926 C

 

“Lead, Follow or Get Out of the Way…”

Was a coined phrase (Moto) of the 3701 BMT Squadron in Lakeland AFB long before 
Lee Iacocca ever used it.

 

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

 

-Original Message-
From: Luca Mambretti mailto:luca.mambre...@bizeta.net> > 
Sent: Tuesday, June 18, 2019 6:41 AM
To: Neil C Smith mailto:neilcsm...@apache.org> >
Cc: dev mailto:d...@netbeans.apache.org> >; netcat 
mailto:net...@netbeans.apache.org> >
Subject: Re: Apache NetBeans 11.1-beta1 Is Available for Testing!

 

Hi everyone,

 

I've downloaded the beta to give it a shot and immediately faced an issue, 
probably not blocking but still annoying at least for me, while installing the 
JIRA support I got the attached error, it seems to me that a required component 
that was hosted on an external maven repository is no longer accessible due to 
invalid/incomplete certificates.

 

It would be nice if JIRA support was bundled like BugZilla with no need to 
download it separately, since apache itself actually runs on JIRA (I'm not sure 
thou that all the components are acceptable for an apache distribution, since 
it's an atlassian repository and atlassian is not really open source).

 

 

 

On a side note the only way to actually get the JIRA download to work is to 
manually add to the enabled update centers the old 8.2 Oracle powered UC at:  
<http://updates.netbeans.org/netbeans/updates/8.2/uc/final/certified/catalog.xml.gz>
 
http://updates.netbeans.org/netbeans/updates/8.2/uc/final/certified/catalog.xml.gz

 

Otherwise the download JIRA plugin button that appears when trying to setup a 
JIRA powered task repository will simply not work.

 

Regards,

Luca.

- Messaggio originale -

Da: "Neil C Smith" < <mailto:neilcsm...@apache.org> neilcsm...@apache.org>

A: "dev" < <mailto:d...@netbeans.apache.org> d...@netbeans.apache.org>, 
"netcat" < <mailto:net...@netbeans.apache.org> net...@netbeans.apache.org>

Inviato: Martedì, 18 giugno 2019 13:24:04

Oggetto: Apache NetBeans 11.1-beta1 Is Available for Testing!

 

Dear Community,

 

I'd lik

Re: NB doesn't want to update

2020-11-03 Thread Peter Toye
Dear Neil,

Thanks. I'd assumed that the 'check for updates' would look for new versions.  
It looks like I have to get the latest (12.1 I think) version by hand.

Best regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.com

-
Tuesday, November 3, 2020, 11:50:19 AM, you wrote:

> On Tue, 3 Nov 2020 at 11:46, Peter Toye  wrote:
>> But when I ask NB to check for updates it tells me that 'your IDE is up to 
>> date!' which is obviously not the case.
>>
>> Anyone any idea what's going on?

> Actually, expected behaviour - there are no updates for 11.1 there.
> That's different to saying that 11.2+ don't exist!

> There should have been a notice about 11.2 at some point, but it shows
> only once I think.

> It's come up before that the current behaviour for notifying of
> patches is confusing in terms of notifying of new releases.

> Best wishes,

> Neil

Java - System.out.print("Command: "); problem

2020-09-18 Thread Peter Ream
 I had a java program that worked in mood.fi’s plugin in netbeans. I tried
it in Netbeans 12.0, but it would not work. Here is an example that does
not work in Netbeans 12:

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print("Command: ");
String command = scanner.nextLine();
System.out.println("Bye bye!");
break;
}
}
}
}

I have prior versions of Netbeans lying around. I found this works up
through 11.1, but does not work in 11.3.

Any ideas?

Thank you.

Peter


wither Docker support in Netbeans?

2020-09-15 Thread Peter L. Berghold
Hi folks,

Just asking where the status of Docker support in Netbeans lies.   Is
it going to happen or is it on the long "wish list" along with all the
other stuff the very busy developers are trying to get to. 

In particular I'm looking for support for creating images from Netbeans
as well as deploying projects to a Netbeans container.  A "would be
nice" feature would add integration with Docker Hub. 


Just curious...
-- 
Peter L. Berghold 
Blog:  http://cowdawgkitchens.com
Passions include: Dogs, Beer, Beer Making, Food and 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



_remote.repositories FileLockInterruptionException NB 12.0

2020-08-27 Thread Peter Ream
I'm having a problem on Netbeans 12.0 using maven. I have an internal class
Icontils that I use in several projects. Everytime I try to delete or move
a project with this dependency, I get the error below. If I do the move or
delete from Netbeans 11.3, no problem. I am using maven bundled with both.
I have maven 3.6.1 installed and tried it. Works on 11.3, but not on 12.0.
The permissions for _remote.repositories look fine.

Mac OSX 10.15.6.

[exec_Delete Project_1] WARNING
org.eclipse.aether.internal.impl.TrackingFileManager - Failed to read
tracking file
/Users/USER/.m2/repository/org/todivefor/IconUtils/1.0/_remote.repositories
java.nio.channels.FileLockInterruptionException
at sun.nio.ch.FileChannelImpl.lock (FileChannelImpl.java:1138)
at org.eclipse.aether.internal.impl.TrackingFileManager.lock
(TrackingFileManager.java:207)
at org.eclipse.aether.internal.impl.TrackingFileManager.read
(TrackingFileManager.java:61)
at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.readRepos
(EnhancedLocalRepositoryManager.java:169)
at org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.find
(EnhancedLocalRepositoryManager.java:93)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:317)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
(DefaultArtifactResolver.java:229)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact
(DefaultArtifactResolver.java:207)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom
(DefaultArtifactDescriptorReader.java:240)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor
(DefaultArtifactDescriptorReader.java:171)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.resolveCachedArtifactDescriptor
(DefaultDependencyCollector.java:541)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.getArtifactDescriptorResult
(DefaultDependencyCollector.java:524)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.processDependency
(DefaultDependencyCollector.java:412)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.processDependency
(DefaultDependencyCollector.java:365)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.process
(DefaultDependencyCollector.java:352)
at
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.collectDependencies
(DefaultDependencyCollector.java:254)
at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies
(DefaultRepositorySystem.java:284)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve
(DefaultProjectDependenciesResolver.java:169)
at org.apache.maven.project.DefaultProjectBuilder.resolveDependencies
(DefaultProjectBuilder.java:227)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:200)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:124)
at
org.netbeans.modules.maven.embedder.MavenEmbedder.readProjectWithDependencies
(MavenEmbedder.java:240)
at org.netbeans.modules.maven.NbMavenProjectImpl.loadMavenProject
(NbMavenProjectImpl.java:302)
at org.netbeans.modules.maven.execute.BeanRunConfig.getMavenProject
(BeanRunConfig.java:153)
at
org.netbeans.modules.maven.execute.MavenCommandLineExecutor$ExecuteMaven$1.taskFinished
(MavenCommandLineExecutor.java:152)
at org.openide.util.Task.notifyFinished (Task.java:215)
at org.netbeans.core.execution.ExecutorTaskImpl.finished
(ExecutorTaskImpl.java:64)
at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:150)

Thank you.

Peter


Re: Output window displaying ansi colors

2020-08-18 Thread Peter Steele
Nikolas

Thanks, I use gradle and it produces the right colored output on the
command line. Intellij also has support straight out of the box.

Regards

Peter

On Tue, 18 Aug 2020, 13:12 Niklas Matthies,  wrote:

> This is probably a bit late, however the general answer is yes. For
> Ant-based projects it seems to work out-of-the-box. If you use Maven,
> you have to pass "-Djansi.passthrough=true" to Maven, e.g. by adding
> it to MAVEN_OPTS. You can also add it to a particular action by
> specifying "Env.MAVEN_OPTS=-Djansi.passthrough=true" in Project
> Properties > Actions > Set Properties.
>
> Niklas
>
>
> On Sun 2020-05-24 at 19:49h, Peter Steele wrote on users:
> >Hi
> >
> >Does the output window support the ability to display ansi colors? (it
> >doesn't work by default, just wondering if there is a setting used to turn
> >it on, the window can def display color as it already does).
> >
> >https://en.wikipedia.org/wiki/ANSI_escape_code
> >
> >Example
> >
> >System.out.println("\u001B[91m" + "This text is red!" + "\u001B[0m");
>
> -
> 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: Font scaling on High Res displays

2020-06-27 Thread Peter Steele
I have hdpi working ok on Linux with jdk 11 and netbeans 12. The only issue
I have is the icons are small and the splash screen is small. I believe
there is a Jira for the icons (migrate to SVG ones)

I use the flatui theme, the theme you use is pretty important.

FlatUI does not need any special OS settings to work

Nimbus and Metal both need an OS settings to trigger any scaling. On Linux
you can set the gtk scale env variable and it will work although you will
need to adjust the font size as TTF fonts are typically hard coded to 96dpi
so won't change automatically with hdpi monitor.


On Sat, 27 Jun 2020, 03:31 Kevin Caravaggio,  wrote:

> On a Linux desktop, HiDPI doesn't seem supported by NB 11. I configured
> editor settings to use very large font sizes so I can read source files
> though. The menus and window options are quite small though, so I just
> guess from memory when running things.
>
> On Fri, Jun 26, 2020, 7:16 PM Eirik Bakke  wrote:
>
>> Lots of HiDPI improvements on Windows 10 have been made in recent
>> NetBeans and Java versions, so as others have suggested, just get the
>> latest versions of both, and it should work fine.
>>
>>
>>
>> And see Laszlo's point here--you can still compile and run your projects
>> with JDK 8, even though the IDE itself is running on a more recent Java
>> version.
>>
>>
>>
>> -- Eirik
>>
>>
>>
>> *From:* Laszlo Kishalmi 
>> *Sent:* Friday, June 26, 2020 1:35 PM
>> *To:* users@netbeans.apache.org
>> *Subject:* Re: Font scaling on High Res displays
>>
>>
>>
>> You can run NetBeans on JDK 11 13 or 14 and still be able to work on Java
>> 8 projects., just add the Java 8 platform into Tools > Java Platforms.
>>
>> On 6/26/20 6:36 AM, Jeff wrote:
>>
>> I'm running netbeans 11.3 or 12.0 but still using Oracle Java 8.  I'll
>> try upgrading to a newer open JDK version since we're going to head that
>> direction anyway soon.
>>
>>
>>
>> I'll try the other suggestions if that doesn't work but I'd prefer not to
>> hard code anything if possible since I connect various external displays of
>> varying sizes as well and hard coding any settings including forcing the
>> font size doesn't translate automatically with other displays.
>>
>>
>>
>> On Fri, Jun 26, 2020, 6:37 AM Joseph Huber  wrote:
>>
>> I have a Dell Precision 7720 laptop with the same issue.  In Windows 10,
>> you can adjust the scaling behavior for individual apps.  Right-click on
>> the shortcut for the app, select the “Compatibility” tab, and then click
>> “Change high DPI settings” and switch between “System” and “Application”.
>> See the screenshot below.   I’m still running NB 8.2, and this is how I
>> deal with the scaling issue when I travel and am using the laptop display
>> instead of external monitors.  See the screenshot below.
>>
>>
>>
>>
>>
>> Thank You!
>>
>>
>>
>> Joe Huber
>>
>> Standard Refrigeration LLC
>>
>> 2005 Reverchon Dr
>>
>> Arlington, TX  76017
>>
>> Desk: 608-855-5808
>>
>> Cell: 682-777-8374
>>
>> jhu...@stanref.com
>>
>>
>>
>> *From:* Jeff 
>> *Sent:* Thursday, June 25, 2020 11:48 PM
>> *To:* users@netbeans.apache.org
>> *Subject:* Font scaling on High Res displays
>>
>>
>>
>> I got a new Dell Precision 5540 laptop through work that is running a
>> native resolution of 3840 x 2160 on a 15" screen.  Windows defaults to 250%
>> scaling to make text and icons readable at this resolution.
>>
>>
>>
>> However, Netbeans project/source views don't seem to detect/honor the
>> scaling settings and it is literally unreadable except with a magnifying
>> glass.   The tool bar seems to honor the system scaling/font settings.  I
>> can also change the editor text size but it does nothing for the
>> project/Files/Services view nor the output/debug windows.
>>
>>
>>
>> Enabling "Maximize use of native look and feel" didn't help.  Is there
>> another setting I'm missing or do I just need to change the resolution?
>>
>>
>>
>> Thanks!
>>
>>


Output window prints garbage

2020-06-15 Thread Peter Steele
Hi

Not sure if this is 12 related or not (snap package auto updated). When I
print out a very long line of text to the output and I have wrap turned off
I get a line of text which bizarrely looks like it is multiple lines super
imposed on each other. (So looks like garbage but I can make out underlying
text of what should have been printed). I used to get something saying the
line was too long but that doesn't happen in my case. If you select wrap
everything displays fine, and when you select in wrap it shows the garbage
text again.

Regards

Peter


Netbeans and malware article

2020-05-29 Thread Peter Steele
Hi

Saw this

https://www.zdnet.com/article/github-warns-java-developers-of-new-malware-poisoning-netbeans-projects/

Do we know anything more about this?


Re: Source line numbers

2020-05-28 Thread Peter Steele
I had this, it seems to be to do with the jdk version. I had jdk 11 working
fine but jdk 13 having the issue.

On Thu, 28 May 2020, 17:02 HRH,  wrote:

> Hi,
>
> Today, I noticed that the line numbers in the source code pane of the IDE
> suddenly had disappeared, even though View->Show Line numbers were checked.
> Closed and re-opened the source, the line numbering re-appeared. There
> might be an intermittent bug somewhere in NB 12 Beta 4. As I reported
> yesterday, the spell-checking functionality does not prompt correct
> spelling either (I thought Alt+Enter was supposed to prompt suggested
> correct spellings).
>
> Thanks
>


Output window displaying ansi colors

2020-05-24 Thread Peter Steele
Hi

Does the output window support the ability to display ansi colors? (it
doesn't work by default, just wondering if there is a setting used to turn
it on, the window can def display color as it already does).

https://en.wikipedia.org/wiki/ANSI_escape_code

Example

System.out.println("\u001B[91m" + "This text is red!" + "\u001B[0m");


Re: Not able to find Sudoku Game by Peter Kriens ?

2020-05-15 Thread Peter Steele
Alan

I meant open source, typo on my part. I understand the difference between
the old and new setup.

Geertjan

See here

https://www.apache.org/foundation/how-it-works.html

Specifically look at the roles section, the user and developer role are
posted below. This is what I meant when I was talking about the differences
between users and developers.

USER¶ <https://www.apache.org/foundation/how-it-works.html#users>

A *user* is someone that uses our software. They contribute to the Apache
projects by providing feedback to developers in the form of bug reports and
feature suggestions. Users participate in the Apache community by helping
other users on mailing lists and user support forums.
DEVELOPER <https://www.apache.org/foundation/how-it-works.html#developers>

A *developer* is a user who contributes to a project in the form of code or
documentation. They take extra steps to participate in a project, are
active on the developer mailing list, participate in discussions, provide
patches, documentation, suggestions, and criticism. Developers are also
known as *contributors*



On Fri, 15 May 2020, 19:14 Alan,  wrote:

> I think the confusion here might be between Oracle Netbeans, which
> presumably had the support of salaried contributors and Apache Netbeans,
> which is supported by the people who use it. It's no longer an "outsource"
> project.
> On 2020-05-15 14:09, Geertjan Wielenga wrote:
>
>
> I disagree. :-)
>
> In a community project, there are no users. Everyone is a contributor —
> there are many very small and simple ways to contribute requiring little
> time or knowledge.
>
> When you use technology, you either contribute money, for commercial
> projects, or you contribute time, for free projects. It’s never the case
> that you contribute nothing at all.
>
> Gj
>
> On Fri, 15 May 2020 at 19:57, Peter Steele  wrote:
>
>> Geertjan
>>
>> I personally have no interest in whether the page is up-to-date or not. I
>> was just pointing out the fact the links are out of date.
>>
>> Typically in an outsource project there are maintainers of that project
>> who actively develop / improve the product  and users of that projects who
>> don't usually develop but raise issues and highlight things to the
>> maintainers. This mailing list is the users mailing list so expect a lot
>> questions to the maintainers here. I see your default answer to a lot of
>> questions about changes in the user list is basically "where is your pull
>> request" but you are giving this to the wrong audience.
>>
>>
>> On Fri, 15 May 2020, 14:46 Geertjan Wielenga, 
>> wrote:
>>
>>>
>>> Your pull request is welcome, bottom of each page there’s a link
>>> directly to the GitHub of each page on netbeans.apache.org
>>>
>>> Gj
>>>
>>> On Fri, 15 May 2020 at 15:39, Peter Steele  wrote:
>>>
>>>> Quite a few of those links don't work, maybe worth removing the or
>>>> updating them.
>>>>
>>>> On Fri, 15 May 2020, 14:35 Geertjan Wielenga, 
>>>> wrote:
>>>>
>>>>> Do you think you can look up Peter Kriens on LinkedIn and just ask him
>>>>> yourself?
>>>>>
>>>>> Gj
>>>>>
>>>>> On Fri, 15 May 2020 at 15:31, Joel Craig 
>>>>> wrote:
>>>>>
>>>>>> Try here
>>>>>> https://github.com/apache/netbeans-website-cleanup/blob/master/src/content/platform/tutorials/80/nbm-osgi-quickstart.html
>>>>>>
>>>>>> On Thu, May 14, 2020 at 11:04 PM Varuna Seneviratna <
>>>>>> varunasenevira...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>Not able to find Sudoku Game by Peter Kriens by the link given at
>>>>>>>  NetBeans Platform Quick Start Using OSGi
>>>>>>> <https://t.co/YXSJ6SCNZH?amp=1>, Can you help, please.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Varuna
>>>>>>>
>>>>>>


Re: Not able to find Sudoku Game by Peter Kriens ?

2020-05-15 Thread Peter Steele
Geertjan

I personally have no interest in whether the page is up-to-date or not. I
was just pointing out the fact the links are out of date.

Typically in an outsource project there are maintainers of that project who
actively develop / improve the product  and users of that projects who
don't usually develop but raise issues and highlight things to the
maintainers. This mailing list is the users mailing list so expect a lot
questions to the maintainers here. I see your default answer to a lot of
questions about changes in the user list is basically "where is your pull
request" but you are giving this to the wrong audience.


On Fri, 15 May 2020, 14:46 Geertjan Wielenga,  wrote:

>
> Your pull request is welcome, bottom of each page there’s a link directly
> to the GitHub of each page on netbeans.apache.org
>
> Gj
>
> On Fri, 15 May 2020 at 15:39, Peter Steele  wrote:
>
>> Quite a few of those links don't work, maybe worth removing the or
>> updating them.
>>
>> On Fri, 15 May 2020, 14:35 Geertjan Wielenga, 
>> wrote:
>>
>>> Do you think you can look up Peter Kriens on LinkedIn and just ask him
>>> yourself?
>>>
>>> Gj
>>>
>>> On Fri, 15 May 2020 at 15:31, Joel Craig  wrote:
>>>
>>>> Try here
>>>> https://github.com/apache/netbeans-website-cleanup/blob/master/src/content/platform/tutorials/80/nbm-osgi-quickstart.html
>>>>
>>>> On Thu, May 14, 2020 at 11:04 PM Varuna Seneviratna <
>>>> varunasenevira...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>Not able to find Sudoku Game by Peter Kriens by the link given at 
>>>>> NetBeans
>>>>> Platform Quick Start Using OSGi <https://t.co/YXSJ6SCNZH?amp=1>, Can
>>>>> you help, please.
>>>>>
>>>>>
>>>>>
>>>>> Varuna
>>>>>
>>>>


Re: Not able to find Sudoku Game by Peter Kriens ?

2020-05-15 Thread Peter Steele
Quite a few of those links don't work, maybe worth removing the or updating
them.

On Fri, 15 May 2020, 14:35 Geertjan Wielenga,  wrote:

> Do you think you can look up Peter Kriens on LinkedIn and just ask him
> yourself?
>
> Gj
>
> On Fri, 15 May 2020 at 15:31, Joel Craig  wrote:
>
>> Try here
>> https://github.com/apache/netbeans-website-cleanup/blob/master/src/content/platform/tutorials/80/nbm-osgi-quickstart.html
>>
>> On Thu, May 14, 2020 at 11:04 PM Varuna Seneviratna <
>> varunasenevira...@gmail.com> wrote:
>>
>>> Hi,
>>>Not able to find Sudoku Game by Peter Kriens by the link given at 
>>> NetBeans
>>> Platform Quick Start Using OSGi <https://t.co/YXSJ6SCNZH?amp=1>, Can
>>> you help, please.
>>>
>>>
>>>
>>> Varuna
>>>
>>


Re: Error badge on the correct code

2020-05-08 Thread Peter Steele
I get this from time to time, clearing cache makes no difference, I
normally delete the .netbeans directory. This fixes it every time.

Can be quite annoying when it happens.

On Thu, 7 May 2020, 21:30 Greenberg, Gary, 
wrote:

> I have in one of my projects JSON file.
> At some point in time, while I was still editing it, it had errors.
> However, these errors were fixed long time ago, but in project file marked
> with the red error badge.
>
> Netbeans was restarted several times and my laptop was rebooted recently.
> The badge is still there.
> How can I get rid of it, short of removing userdir?
>
> I am working on several projects and have over 30 files open. Hate to
> reload everything.
>
> My environment: NB 11.1, Java 8, Win 10pro.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>


Re: Quirks when running Netbeans 11.3 on a laptop

2020-05-01 Thread Peter Steele
I rolled back to jdk 11 after upgrading Ubuntu to 20.04 (11 is now the
highest openjdk that is packaged) and the issue no longer occurs.

Like with another issue I had it looks like jdk 13 was the issue.

I will be avoiding jdk 13 with netbeans until it works better



On Thu, 30 Apr 2020, 05:35 Peter Steele,  wrote:

> I'm running Ubuntu 19.10, 16 GB ram, hp Spectre x360 (integrated Intel
> graphics), open jdk 13, netbeans 11.3 (downloaded not snap) with no extra
> packages, I use gradle as part of standard package.
>
> On Thu, 30 Apr 2020, 04:43 Laszlo Kishalmi, 
> wrote:
>
>> I think it would be good if you could provide some details of your
>> laptop, like make, video card, OS, RAM, DISK, used JVM used NetBeans
>> package, etc.
>>
>> I myself running NetBeans on my Laptop, which is a System76 GalagoPro,
>> Intel internal and AMD external GPU, using Ubuntu 18.04, 32Gb RAM, have an
>> NVME and a spinning disk.
>>
>> I'm using the Snap distribution of NetBeans. I usually put the Laptop
>> into sleep for overnight and resume it in the morning. Udually I restart
>> NetBeans 1-2 times a week. So far never had such issues.
>> On 4/28/20 11:29 PM, John Brice wrote:
>>
>> I’ve had similar problems on Windows 10, netbeans 11.0 – 11.3 and JDK
>> 12/13. Line numbers disappear and nodes in the Projects pane go missing or
>> become unresponsive.
>>
>>
>>
>> I’ve changed my power settings to ‘never sleep’ but I still get the same
>> issues if I leave netbeans for a long time (1 – 2 hours or more); not every
>> time but often enough. If I use netbeans constantly all day there is no
>> problem.
>>
>>
>>
>> There is nothing obvious (to me) in the IDE log. I’ve cleared cache and
>> user dirs, doesn’t make a difference.
>>
>>
>>
>> John
>>
>>
>>
>>
>>
>> Hi
>>
>>
>>
>> I just wanted to know if people had noticed the following when running
>> netbeans 11.3 on their laptop (not sure if it happens on earlier versions
>> or not)
>>
>>
>>
>> I'm running on Ubuntu and using java 13
>>
>>
>>
>> 1. After closing the laptop lid and letting it suspend (or hibernate,
>> same thing), the line numbers disappear when I re open the laptop and it
>> resumes.
>>
>>
>>
>> 2. After closing the laptop and letting it suspend (or hibernate, same
>> thing), you can't search or search and replace after it resumes. The short
>> cut keys don't work and the menu items are Grey's out.
>>
>>
>>
>> Both the above two are fixed with a netbeans restart.
>>
>>
>>
>> 3. After changing to tablet mode on my laptop, netbeans sometimes gets in
>> to bad state where one window always has the focus no matter which window I
>> try and click in. I can put the mouse pointer in another windows and click
>> and hold to select text but it always does the actions in the window where
>> the focus is stuck
>>
>>
>>
>> This is fixed only by restarting the whole laptop, the problem persists
>> on a restart of netbeans.
>>
>>
>>
>>
>>
>> I appreciate these could be java issues (the last one definitely happened
>> on earlier versions of java and netbeans), but I don't know 100%
>>
>>
>>
>> Thanks
>>
>>
>>
>> Peter
>>
>>
>>
>>


Re: location file which saves compole errors

2020-04-30 Thread Peter Steele
Hi

Quick update, I down graded from java 13 to java 11 and the problem has
gone away so it looks like it is linked to Java 13.

Regards

Peter

On Sun, Apr 5, 2020 at 2:15 PM Peter Steele  wrote:

> Hi
>
> Netbeans seems to cache compile errors and on startup immediate flags
> those compile errors with a red underline and red marker.
>
> I am assuming to be the case if it's wrong then the question will have to
> change slightly.
>
> I am getting incorrect compile errors highlighted in red which persist
> restarts. My program compiles and runs successfully but the code keeps
> getting highlighted as if it was in error. This started off with one error
> but has exploded to a lot of classes having this issue now.
>
> I have had this before and previously deleted the netbeans .netbeans
> folder but I would rather just delete the file necessary to make netbeans
> clear it's cache.
>
> Any help would be appreciated
>
> Thanks
>
> Peter
>
> p.s. this issue isn't easily replicatable as it just happens all of a
> sudden
>
> P.p.s I am on 11.3 but this has happened on all previous netbeans versions
> (can remember if it happened on an oracle version or not though)
>


Re: Quirks when running Netbeans 11.3 on a laptop

2020-04-29 Thread Peter Steele
I'm running Ubuntu 19.10, 16 GB ram, hp Spectre x360 (integrated Intel
graphics), open jdk 13, netbeans 11.3 (downloaded not snap) with no extra
packages, I use gradle as part of standard package.

On Thu, 30 Apr 2020, 04:43 Laszlo Kishalmi, 
wrote:

> I think it would be good if you could provide some details of your laptop,
> like make, video card, OS, RAM, DISK, used JVM used NetBeans package, etc.
>
> I myself running NetBeans on my Laptop, which is a System76 GalagoPro,
> Intel internal and AMD external GPU, using Ubuntu 18.04, 32Gb RAM, have an
> NVME and a spinning disk.
>
> I'm using the Snap distribution of NetBeans. I usually put the Laptop into
> sleep for overnight and resume it in the morning. Udually I restart
> NetBeans 1-2 times a week. So far never had such issues.
> On 4/28/20 11:29 PM, John Brice wrote:
>
> I’ve had similar problems on Windows 10, netbeans 11.0 – 11.3 and JDK
> 12/13. Line numbers disappear and nodes in the Projects pane go missing or
> become unresponsive.
>
>
>
> I’ve changed my power settings to ‘never sleep’ but I still get the same
> issues if I leave netbeans for a long time (1 – 2 hours or more); not every
> time but often enough. If I use netbeans constantly all day there is no
> problem.
>
>
>
> There is nothing obvious (to me) in the IDE log. I’ve cleared cache and
> user dirs, doesn’t make a difference.
>
>
>
> John
>
>
>
>
>
> Hi
>
>
>
> I just wanted to know if people had noticed the following when running
> netbeans 11.3 on their laptop (not sure if it happens on earlier versions
> or not)
>
>
>
> I'm running on Ubuntu and using java 13
>
>
>
> 1. After closing the laptop lid and letting it suspend (or hibernate, same
> thing), the line numbers disappear when I re open the laptop and it resumes.
>
>
>
> 2. After closing the laptop and letting it suspend (or hibernate, same
> thing), you can't search or search and replace after it resumes. The short
> cut keys don't work and the menu items are Grey's out.
>
>
>
> Both the above two are fixed with a netbeans restart.
>
>
>
> 3. After changing to tablet mode on my laptop, netbeans sometimes gets in
> to bad state where one window always has the focus no matter which window I
> try and click in. I can put the mouse pointer in another windows and click
> and hold to select text but it always does the actions in the window where
> the focus is stuck
>
>
>
> This is fixed only by restarting the whole laptop, the problem persists on
> a restart of netbeans.
>
>
>
>
>
> I appreciate these could be java issues (the last one definitely happened
> on earlier versions of java and netbeans), but I don't know 100%
>
>
>
> Thanks
>
>
>
> Peter
>
>
>
>


Re: Gradle based project won't load. How to investigate it or see compiler output?

2020-04-29 Thread Peter Steele
Run the build on the command line to see if it's a netbeans issue, if it is
then run with With --info or --debug (logging levels) or with --stacktrace
to get the stack trace info of the build failure.

If it works on the command line then you need to setup gradle properly in
netbeans.

On Wed, 29 Apr 2020, 07:30 Emilian Bold,  wrote:

> Hello,
>
> I have a Gradle based project that won't load in any version of
> NetBeans, including the 12 beta. The notification shown says:
>
> > Compilation failed; see the compiler output for details.
> > Execution failed for task: ''
> > Execution failed for task: ''
> > Could not run build action using Gradle installation ' wrapper dists/ folder>'
>
> How does one go about investigating this problem?
>
> For starters, I don't see anything in the output window or messages.log.
>
> Where is the compiler output with the details?
>
> A minor issue: the notification itself (being a Swing component) doesn't
> allow you to copy-paste the error message.
>
> --emi
>


Quirks when running Netbeans 11.3 on a laptop

2020-04-27 Thread Peter Steele
Hi

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

I'm running on Ubuntu and using java 13

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

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

Both the above two are fixed with a netbeans restart.

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

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


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

Thanks

Peter


Re: How to Alt + Enter on mac?

2020-04-22 Thread Peter Ford
On a Mac keyboard option-enter is the magic you need: on my keyboards options 
is also labelled alt

Pete

> On 22 Apr 2020, at 12:57, Geertjan Wielenga  wrote:
> 
> Probably the Apple keyboard key CMD and then Enter — or just click the 
> lightbulb.
> 
> Gj
> 
> On Wed, 22 Apr 2020 at 13:54, Ewan Slater  > wrote:
> Hi,
> 
> Could somebody please tell me how to do Alt+Enter on Mac (and yes, I
> have googled and looked at "help > keyboard shortcuts card" but to no
> avail).
> 
> Context: netbeans is suggesting I hit Alt Enter for hints.
> 
> Cheers,
> 
> Ewan
> 



Re: Git status difference between build and command line

2020-04-17 Thread Peter Hull
On Thu, 16 Apr 2020 at 22:47, George Brooks  wrote:
> org.eclipse.jgit [5.5.0 5.5.0.201909110433-r] remains in 12.0-beta3, and so 
> do the icons indicating modified files despite what git status says at the 
> command line.
Correct. There is a PR to update it:
https://github.com/apache/netbeans/pull/2026

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

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



Re: NB 11.3 – Can not open old projects

2020-04-16 Thread Peter Nabbefeld



Hello Ulf,

just to make sure: Did You add JDK 1.7 as a Java Platform in 11.3?

Kind regards,
Peter



Am 14.04.20 um 20:26 schrieb Ulf Zibis:

Thanks for the hint, Laszlo.

Surprise: After starting the IDE again to view the logs, the projects
were opened automatically.
Anyway in the logs I find:
Even though the source level of /home/ich/Projects/Palm/jUSB/src is
set to: 1.7, java.lang.AssertionError cannot be found on the
bootclasspath:
Changing source level to 1.3

Not sure if this is expected, but is there anything wrong with the
bootclasspath?

-Ulf

Am 14.04.20 um 19:39 schrieb Laszlo Kishalmi:

See more in the: View > IDE Log

On 4/14/20 10:37 AM, Ulf Zibis wrote:

Hi,

when trying to open old projects from NB 8 and before, I see:


Which plugin may be missing?

-Ulf


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

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



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

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




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

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




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

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



Re: Git status difference between build and command line

2020-04-11 Thread Peter Hull
Hi George,
I think it is this: https://issues.apache.org/jira/browse/NETBEANS-4005
Can you see if that matches up to your situation?
Pete

On Thu, 9 Apr 2020 at 16:24, George Brooks  wrote:
>
> A PHP project in Netbeans 11.1 shows git status as "- nothing to commit, 
> working directory clean". After building 
> NetBeans-dev-20200408-f9b9f0698fa3-release, Netbeans Team->Diff->Diff to HEAD 
> shows a set of files claimed to be modified. At the command line, however, 
> git status continues to show "- nothing to commit, working directory clean."
>
> System is Windows 10, build 18363.720. Build created in a Ubuntu 18 VM, 
> openjdk 11.0.6.
>
> Is this a bug or a configuration error on my part?
>
> g

-
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: location file which saves compile errors

2020-04-05 Thread Peter Steele
Hi

I tried this, I thought it had worked but it didn't. I still have a couple
of classes that have this issue (it fixed a lot though).

The errors are all to do with return types (thinking they are object) or
incorrectly saying a method doesn't exist on a class

Peter

On Sun, 5 Apr 2020, 14:46 Boris Heithecker, 
wrote:

> I'm encountering this too at times. I think it's a caching issue.
> This works for me:
> Go to the NetBeans cache directory, which is platform specific. On Linux
> it's in .cache/netbeans/VERSION
> Clear everything but not mavenindex and mavencachedirs. I'm sure that not
> all files and folder must be deleted, so one try to find out which file
> oder folder exactly must be removed.
> Restart the IDE
>
> Hope it helps,
> Boris
>
> On Sun, 5 Apr 2020 at 15:15, Peter Steele  wrote:
>
>> Hi
>>
>> Netbeans seems to cache compile errors and on startup immediate flags
>> those compile errors with a red underline and red marker.
>>
>> I am assuming to be the case if it's wrong then the question will have to
>> change slightly.
>>
>> I am getting incorrect compile errors highlighted in red which persist
>> restarts. My program compiles and runs successfully but the code keeps
>> getting highlighted as if it was in error. This started off with one error
>> but has exploded to a lot of classes having this issue now.
>>
>> I have had this before and previously deleted the netbeans .netbeans
>> folder but I would rather just delete the file necessary to make netbeans
>> clear it's cache.
>>
>> Any help would be appreciated
>>
>> Thanks
>>
>> Peter
>>
>> p.s. this issue isn't easily replicatable as it just happens all of a
>> sudden
>>
>> P.p.s I am on 11.3 but this has happened on all previous netbeans
>> versions (can remember if it happened on an oracle version or not though)
>>
>
>
> --
> Boris Heithecker
>
>
> Dr. Boris Heithecker
> Lüneburger Str. 30
> 28870 Ottersberg
> Festnetz: +49 4205 315834
> Mobil: +49 170 6137015
>


location file which saves compole errors

2020-04-05 Thread Peter Steele
Hi

Netbeans seems to cache compile errors and on startup immediate flags those
compile errors with a red underline and red marker.

I am assuming to be the case if it's wrong then the question will have to
change slightly.

I am getting incorrect compile errors highlighted in red which persist
restarts. My program compiles and runs successfully but the code keeps
getting highlighted as if it was in error. This started off with one error
but has exploded to a lot of classes having this issue now.

I have had this before and previously deleted the netbeans .netbeans folder
but I would rather just delete the file necessary to make netbeans clear
it's cache.

Any help would be appreciated

Thanks

Peter

p.s. this issue isn't easily replicatable as it just happens all of a sudden

P.p.s I am on 11.3 but this has happened on all previous netbeans versions
(can remember if it happened on an oracle version or not though)


Re: Best strategy to solve JavaHelp issue

2020-03-17 Thread Peter Hull
Jaroslav Tulach was asking a couple of years ago whether it was also
licensed CDDL. What happened to this line of thinking?
https://github.com/javaee/javahelp/issues/45

On Tue, 17 Mar 2020 at 13:27, Geertjan Wielenga  wrote:
>
> Here's the related issues, one of the very first: 
> https://issues.apache.org/jira/browse/NETBEANS-3
>
> Gj
>
> On Tue, Mar 17, 2020 at 2:24 PM Geertjan Wielenga  wrote:
>>
>> JavaHelp is not included in Apache NetBeans GitHub because it is GPL 
>> licensed, which is against Apache policy, and therefore is also not part of 
>> Apache NetBeans, it never has been and never will be unless it is licensed, 
>> which seems unlikely to happen. It is something you'll need to add yourself 
>> somehow -- someone who figures out how should share that with this mailing 
>> list.
>>
>> Gj
>>
>> On Tue, Mar 17, 2020 at 2:22 PM Tim Mullé  wrote:
>>>
>>> Hi,
>>>
>>> Is there documentation somewhere that says JavaHelp is not available? I 
>>> don’t see any mention of JavaHelp missing in 11.x on this link: 
>>> https://netbeans.apache.org/wiki/DevFaqHelpGuidelines.asciidoc
>>>
>>>
>>> The reason I ask is that in 11.3 I can happily create a ‘Java Help Set’ for 
>>> my module and the wizard creates all the necessary files and 
>>> module..leading me to believe everything is ok.
>>>
>>> However, when I try to build the module I get the following exception when 
>>> building using NetBeans 11.3 with OpenJDK 11.
>>>
>>>
>>> An annotation processor threw an uncaught exception.
>>> Consult the following stack trace for details.
>>> java.lang.NoClassDefFoundError: com/sun/java/help/search/Indexer
>>> at 
>>> org.netbeans.modules.javahelp.HelpSetRegistrationProcessor.handleProcess(HelpSetRegistrationProcessor.java:142)
>>> at 
>>> org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:104)
>>> at 
>>> com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)
>>> at 
>>> com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896)
>>> at 
>>> com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)
>>> at 
>>> com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1334)
>>> at 
>>> com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
>>> at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
>>> at com.sun.tools.javac.main.Main.compile(Main.java:311)
>>> at com.sun.tools.javac.main.Main.compile(Main.java:170)
>>> at com.sun.tools.javac.Main.compile(Main.java:57)
>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>>> Method)
>>> at 
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at 
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>>> at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
>>> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1404)
>>> at org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:102)
>>> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133)
>>> at org.netbeans.nbbuild.CustomJavac.execute(CustomJavac.java:83)
>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>>> at jdk.internal.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
>>> at 
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>>> at 
>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
>>> at org.apache.tools.ant.Task.perform(Task.java:350)
>>> at org.apache.tools.ant.Target.execute(Target.java:449)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:470)
>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
>>> at 
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>>> at 
>>> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
>>> at 
>>> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574)
>>> at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
>>> Caused by: java.lang.ClassNotFoundException: 
>>> com.sun.java.help.search.Indexer
>>> at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
>>> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
>>> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
>>> ... 35 more
>>>
>>>
>>> Thanks,
>>> - Tim
>>>
>>> On Mar 17, 2020, at 2:32 AM, 

  1   2   3   >