Re: Help understanding error message.

2023-10-20 Thread Antonio

Dear Ann,

I have tested your "index.html" file in a recent version of NetBeans and 
reproduced your problem. I regret having to say that you have found a 
bug in the "NetBeans Connector". I have filled issue #6601 (see [1]) for 
you.


In order to communicate with the Chrome web browser, NetBeans uses a 
"browser plugin" called the "NetBeans Connector" that is published in 
the Chrome Web Store (see [2]).


As you can see, this plugin has not been updated since 2015, two years 
before NetBeans was donated by Oracle to the Apache Software Foundation.


Since then, web browsers have evolved rapidly, and I suspect this 
"browser plugin" from 2015 doesn't work in recent versions of Chrome. We 
must review the source code of this "browser plugin" ([3]).


As an immediate aid, you may want to explore the so called "Chrome 
DevTools" (see https://developer.chrome.com/docs/devtools/ for more 
details and videos), that are installed by default and that allow you to 
inspect and modify the HTML DOM and to debug JavaScript within the 
browser itself. Note that modifying the HTML DOM in the browser itself 
does not allow you to save changes to disk.


Finally let me tell you, Ann, that I think the entire NetBeans Team 
envies your curiosity and desire to learn. Let us know if we can be of 
further help.


Our best wishes,
Antonio


[1]
https://github.com/apache/netbeans/issues/6601

[2]
https://chrome.google.com/webstore/detail/netbeans-connector/hafdlehgocfcodbgjnpecfajgkeejnaa

[3]
https://github.com/apache/netbeans/tree/master/webcommon/extbrowser.chrome/plugins

On 20/10/23 1:04, Ann Maybury wrote:

  i am 85 and have over 50 years experience in producing software.
For about 5 years, I have not tried though.

I want to find out if I can use javascript, html, css to create a 
browser program to process a whole bunch of images in an sophisticated 
directory structure.    When I try to run Netbeans (8 or 12) with the 
Chrome connector, I get an error dialog.   If /  I double click on the 
index.html I get an error dialog. As shown below and also attached./

image.png
/The program runs.   What can I do to gert rid of 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


-
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



macOS, caches, and NoClassDefFoundError

2023-10-20 Thread Thad Humphries
I am running macOS Ventura 13.6, NetBeans 19, and OpenJDK 11 (Amazon
Corretto).

>From time to time while running my webapp with Tomcat though NetBeans I hit
a NoClassDefFoundError on a particular class in one of my dependencies.
It's always the same class. Checking StackOverflow, this sort of problem
goes back at least 10 years (
https://stackoverflow.com/questions/16942574/netbeans-noclassdeffounderror).

I've found I can clear the error by closing NetBeans and removing the
contents of /Users/[username]/Library/Caches/NetBeans/. Running "Clean and
Build" and "Build with Dependencies" did not fix the problem. I prefer
running with "Save on Compile", which seems to save me more problems than
this NoClassDefFoundError.

My question: Is there a simpler way, like through the UI, to clear the
cache?

-- 
"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, *Doctor Faustus* (v. 111-13)