Re: Duplicate Entry in the ListBox

2022-01-13 Thread Zulfi Khan
 
Hi Peter Van den hombergh,I added model.clear in :
private void btnDispAllActionPerformed(java.awt.event.ActionEvent evt) {
   
    // TODO add your handling code here:
    model.clear();
    model.addElement(" " + acc1.getBalance() + " " + acc1.getNumber() + 
acc1.name+ acc1.accType);
    model.addElement(" " + acc2.getBalance() + " " + acc2.getNumber() + 
acc2.name+ acc2.accType);
    model.addElement(" " + acc3.getBalance() + " " + acc3.getNumber() + 
acc3.name+ acc3.accType);
    model.addElement(" " + acc4.getBalance() + " " + acc4.getNumber() + 
acc4.name+ acc4.accType);
    model.addElement(" " + acc5.getBalance() + " " + acc5.getNumber() + 
acc5.name+ acc5.accType);
    jList1.setModel(model);
    }    

and the above code is working fine now but I also added model.clear in the 
following code but it is not working:
private void btnDispSavCurrActionPerformed(java.awt.event.ActionEvent evt) {
   
    // TODO add your handling code here:
    storeAllAccountInfoinArrayList();
    boolean iscurrAccRBSelected = currAccRadBtn.isSelected();
    boolean issavAccRBSelected = savAccRadBtn.isSelected();
    model.clear();
    if(iscurrAccRBSelected){    //Why in case of current Acc it is storing 
acc4 and acc5 twice?
    for (Account acc: al_allAcc) {
   //System.out.println("AccountTitle: "+acc.name+", balance 
"+acc.getBalance()+ "and mnumber is "+acc.getNumber());
   if (acc.accType == 'c' )
  model.addElement(" " + acc.getBalance() + " " + 
acc.getNumber() + acc.name+ acc.accType);  
  jList1.setModel(model);
    }
    //code it
    //ask why we creat rbgroup if we are not using the grp var
    
    }
    else if(issavAccRBSelected){
    for (Account acc: al_allAcc) {
   //System.out.println("AccountTitle: "+acc.name+", balance 
"+acc.getBalance()+ "and mnumber is "+acc.getNumber());
   if (acc.accType == 's' )
  model.addElement(" " + acc.getBalance() + " " + 
acc.getNumber() + acc.name+ acc.accType);    
  jList1.setModel(model);
    }
    }
    }    

Somebody please guide me.
Zulfi.
On Thursday, January 13, 2022, 08:34:42 AM CST, Pieter van den Hombergh 
 wrote:  
 
 Zulfi,
That is because you add the items every time when the display all accounts 
buttons is pressed.A list has now problems containing duplicate accounts, so 
expect no help from the list.You might want to update the model only when 
needed, not on each display.

On Thu, Jan 13, 2022 at 3:33 AM Zulfi Khan  wrote:


Hi,

I have created a java swing application using NetBeans 12.6but when I am 
storing data in the ListBox, I am getting repeated data. I storethe data on the 
listBox by clicking on the “Display Info Saving or CurrentButton” and by 
selecting “Current Account” radio Button as shown in theattached image. My 
Jframe class code is given below:

package com.mycompany.inher2rbuttarrlist2;

 

import java.util.ArrayList;

import javax.swing.ButtonGroup;

import javax.swing.DefaultListModel;

 

/**

 *

 * @author zulfi

 */

public class RButtArrListJFrame extends javax.swing.JFrame {

   ArrayList al_allAcc = new ArrayList<>();

   //ArrayList al_sav = new ArrayList();

    DefaultListModel model = new DefaultListModel();

    Account acc1 = newAccount(200.0, 100, "SSUET1", 's');

    Account acc2 = newAccount(300.0, 101, "SSUET2", 's');

    Account acc3 = newAccount(400.0, 102, "SSUET3", 's');

    Account acc4 = newAccount(500.0, 103, "SSUET4", 'c');

    Account acc5 = new Account(600.0,104, "SSUET5", 'c');

    ButtonGroup group =new ButtonGroup();

    /**

 * Creates new formRButtArrListJFrame

 */

    publicRButtArrListJFrame() {

   initComponents();

   group.add(currAccRadBtn);

    group.add(savAccRadBtn);

    }

    

    voidstoreAllAccountInfoinArrayList(){

   //https://www.delftstack.com/howto/java/adding-objects-to-arraylist/

   al_allAcc.add(acc1);

   al_allAcc.add(acc2);

   al_allAcc.add(acc3);

   al_allAcc.add(acc4);

   al_allAcc.add(acc5);

    }

    /**

 * This method iscalled from within the constructor to initialize the form.

 * WARNING: Do NOTmodify this code. The content of this method is always

 * regenerated bythe Form Editor.

 */

    @SuppressWarnings("unchecked")

    //   
    

    private voidinitComponents() {

 

    btnDispSavCurr= new javax.swing.JButton();

    btnDispAll =new javax.swing.JButton();

    jScrollPane1 =new javax.swing.JScrollPane();

    jList1 = newjavax.swing.JList<>();

    savAccRadBtn =new javax.swing.JRadioButton();

    currAccRadBtn =new javax.swing.JRadioButton();

 

    setDefaultCloseOperation(javax.swing.WindowConst

Re:Re: Netbeans IDE 12.6/JavaFX 17/Java 11

2022-01-13 Thread 王东华
I have added javafx-graphics jar into the wrapper jars.
In fact, only Netbeans Platform Application will throw this runtime exception.
The JavaFX is correct for Ant Java Application of Netbeans.


And in Eclipse, it is ok when I add vm parameters: --module-path 
"lib/javafx\lib" --add-modules 
javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web
I try to add these following parameter in Netbeans, but it throws same runtime 
exception
run.args.extra=-J-D--module-path\=$JAVAFX_PATH 
-J-D--add-modules\="javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web"

















At 2022-01-13 17:32:52, "Mark Eggers"  wrote:
>First of all, when I do development it's for Java EE web containers.
>Second of all, I use Maven, so if you're using Ant or Gradle I will have 
>even less of a clue.
>
>That being said, I did a quick search for:
>
>Error initializing QuantumRenderer: no suitable pipeline found a 
>StackOverflow discussion here:
>
>https://stackoverflow.com/questions/65737055/javafx-web-11-error-initializing-quantumrenderer-no-suitable-pipeline-found
>
>In it, there is a reference to a classifier for the javafx-graphics 
>artifact. The resulting dependency snippet is:
>
> 
> org.openjfx
> javafx-graphics
> 17
> mac
> 
>
>And substitute win or linux as the classifier if you're targeting those 
>systems.
>
>Another discussion on this can be found on the read-only github site:
>
>https://github.com/javafxports/openjdk-jfx/issues/237
>
>While the Java version is different, it appears that there are 
>instructions for including the correct modules. I don't know if 
>something similar will work with Java 17.
>
>Again, I'm a web applications developer (when I develop - I'm mostly a 
>systems / software architect at this point) and not a desktop developer.
>
>Maybe this will point you in the correct direction at least?
>
>. . . just my two cents
>/mde/
>
>On 1/13/2022 12:25 AM, 王东华 wrote:
>> Dear,
>> Our development environment: Netbeans IDE 12.6, JavaFX 17, Java 11
>> I have create a Netbeans Platform Application and want to use JavaFX,
>> I have add JavaFX jar into the wrapped jars, and there are no compile error 
>> for JavaFX in Netbeans IDE,
>> However, when I run the application, IDE will show following exception:
>> java.lang.RuntimeException: No toolkit found
>> at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
>> at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
>> at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
>> at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
>> [catch] at java.base/java.lang.Thread.run(Thread.java:829)
>> And I don't know how to add -module-path and --add-modules for Netbeans 
>> Platform Application
>


Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread David Green
I used the MacOSX installer.   I do see the files in the
/Applications/NetBeans/Apache\ NetBeans\
12.6.app/Contents/Resources/NetBeans/netbeans/ide/bin/nativeexecution

and also don’t have any arm/m1 arch files.  There is also a hosting.sh file
there which also does not have any ARM info/logic.

I have Rosetta installed although I strive to use native code when possible.

On Jan 13, 2022 at 5:27:42 PM, Tim Mullé  wrote:

> I did more searching in my netbeans installation folder and found the list
> of files the Terminal was looking for, but I noticed that there is no ARM
> or AARCH files mentioned for any OS.
>
> My `uname -a` reports: Darwin mars.fios-router.home 21.2.0 Darwin Kernel
> Version 21.2.0: Sun Nov 28 20:28:41 PST 2021;
> root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64
>
> And I’m running a M1 native JDK from Temurin 17.0.1+12 and tried Azul
> 11.0.13+8 both arm ARM64 JDKs
>
>
> more ./ide/update_tracking/org-netbeans-modules-dlight-nativeexecution.xml
>
>  codename="org.netbeans.modules.dlight.nativeexecution">
> origin="installer" specification_version="1.53.0.1">
> name="bin/nativeexecution/Linux-sparc_64/killall"/>
> name="bin/nativeexecution/Linux-sparc_64/process_start"/>
> name="bin/nativeexecution/Linux-sparc_64/pty"/>
> name="bin/nativeexecution/Linux-sparc_64/pty_open"/>
> name="bin/nativeexecution/Linux-sparc_64/sigqueue"/>
> name="bin/nativeexecution/Linux-sparc_64/stat"/>
> name="bin/nativeexecution/Linux-sparc_64/unbuffer.so"/>
> name="bin/nativeexecution/Linux-x86/killall"/>
> name="bin/nativeexecution/Linux-x86/process_start"/>
>
> name="bin/nativeexecution/Linux-x86/pty_open"/>
> name="bin/nativeexecution/Linux-x86/sigqueue"/>
>
> name="bin/nativeexecution/Linux-x86/unbuffer.so"/>
> name="bin/nativeexecution/Linux-x86_64/killall"/>
> name="bin/nativeexecution/Linux-x86_64/process_start"/>
>
> name="bin/nativeexecution/Linux-x86_64/pty_open"/>
> name="bin/nativeexecution/Linux-x86_64/sigqueue"/>
> name="bin/nativeexecution/Linux-x86_64/stat"/>
> name="bin/nativeexecution/Linux-x86_64/unbuffer.so"/>
> name="bin/nativeexecution/MacOSX-x86/killall"/>
> name="bin/nativeexecution/MacOSX-x86/process_start"/>
>
> name="bin/nativeexecution/MacOSX-x86/pty_open"/>
>
> name="bin/nativeexecution/MacOSX-x86/unbuffer.dylib"/>
> name="bin/nativeexecution/MacOSX-x86_64/killall"/>
> name="bin/nativeexecution/MacOSX-x86_64/process_start"/>
> name="bin/nativeexecution/MacOSX-x86_64/pty"/>
> name="bin/nativeexecution/MacOSX-x86_64/pty_open"/>
> name="bin/nativeexecution/MacOSX-x86_64/stat"/>
> name="bin/nativeexecution/MacOSX-x86_64/unbuffer.dylib"/>
> name="bin/nativeexecution/SunOS-sparc_64/killall"/>
> name="bin/nativeexecution/SunOS-sparc_64/privp"/>
> name="bin/nativeexecution/SunOS-sparc_64/process_start"/>
> name="bin/nativeexecution/SunOS-sparc_64/pty"/>
> name="bin/nativeexecution/SunOS-sparc_64/pty_open"/>
> name="bin/nativeexecution/SunOS-sparc_64/sigqueue"/>
> name="bin/nativeexecution/SunOS-sparc_64/stat"/>
> name="bin/nativeexecution/SunOS-sparc_64/unbuffer.so"/>
> name="bin/nativeexecution/SunOS-x86/killall"/>
>
> name="bin/nativeexecution/SunOS-x86/process_start"/>
>
> name="bin/nativeexecution/SunOS-x86/pty_open"/>
> name="bin/nativeexecution/SunOS-x86/sigqueue"/>
>
> name="bin/nativeexecution/SunOS-x86/unbuffer.so"/>
> name="bin/nativeexecution/SunOS-x86_64/killall"/>
> name="bin/nativeexecution/SunOS-x86_64/process_start"/>
>
> name="bin/nativeexecution/SunOS-x86_64/pty_open"/>
> name="bin/nativeexecution/SunOS-x86_64/sigqueue"/>
> name="bin/nativeexecution/SunOS-x86_64/stat"/>
> name="bin/nativeexecution/SunOS-x86_64/unbuffer.so"/>
> name="bin/nativeexecution/Windows-x86/killall"/>
> name="bin/nativeexecution/Windows-x86/process_start"/>
>
> name="bin/nativeexecution/Windows-x86/pty_open"/>
> name="bin/nativeexecution/Windows-x86/sigqueue"/>
> name="bin/nativeexecution/Windows-x86/unbuffer.dll"/>
> name="bin/nativeexecution/Windows-x86_64/killall"/>
> name="bin/nativeexecution/Windows-x86_64/process_start"/>
> name="bin/nativeexecution/Windows-x86_64/pty"/>
> name="bin/nativeexecution/Windows-x86_64/pty_open"/>
> name="bin/nativeexecution/Windows-x86_64/sigqueue"/>
> name="bin/nativeexecution/Windows-x86_64/unbuffer.dll"/>
>
>
> name="config/Modules/org-netbeans-modules-dlight-nativeexecution.xml"/>
> name="modules/org-netbeans-modules-dlight-nativeexecution.jar"/>
>
> 
>
> On Jan 13, 2022, at 4:43 PM, Tim 

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

2022-01-13 Thread Michael Bien

this is fixing it as far as i can tell:

https://github.com/apache/netbeans/pull/3455

since you are good at finding bugs (:-)) - maybe you could give it a try

-michael


On 13.01.22 23:01, Thomas Wolf wrote:

Done:
https://issues.apache.org/jira/browse/NETBEANS-6388

Tom


On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga 
 wrote:
Can you report it with steps, would be happy to try to reproduce it. 
And I think we need to remove all FindBugs support since it's broken 
and no longer supported.


Something that looks like a big 'ole bug is welcome to be turned into 
an issue.


Gj

On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:

Hi Michael,
All my projects use “IDE-wide” in the project property hints as
that seems to be the default.  The problem I’m having isn’t that
Netbeans can’t find “Netbeans Java Hints”.  The problem is that
when I try to define a configuration via the Source-Inspect…
dialog, it lets me define it and hit the “Inspect” button, but
the results tab simply shows “Required Plugin Missing” even when
the configuration I’ve defined and run uses the built-in
“Netbeans Java Hints". As a matter of fact, you don’t even have
to define a configuration - just select the “Default” one - which
uses the “Netbeans Java Hints” analyzer from the drop-down and
hit “Inspect”.  You’ll still see (at least I do) the result of
“Required Plugin Missing”.

Sure looks like a big ‘ole bug to me.

I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
relevant here.

Thanks,
Tom


On Jan 13, 2022 at 3:03:49 PM, Michael Bien 
wrote:

Hi Tom,

"NetBeans Java Hints" should be there out of the box. Its the same
system which is responsible for the in-editor hints. Difficult
to say
what is going on there. But in general:

There are two configs, one is global which is applied to all
projects by
default, and the per-project config which can replace the global
default
if so configured.

You can find the settings in the project properties -> hints
section.
The global config is also replicated again in tools -> options
-> editor
-> hints.

You can run a custom set of rules via refactor -> inspect and
transform

Additionally to all that you can also write your own hint rules.
Some
example are here:

https://github.com/mbien/jackpot-inspections

(read the readme)

regards,

michael

On 2022/01/11 20:17:01 Thomas Wolf wrote:
> Geertjan,
> How do I create a configuration that uses simply the Netbeans
Java Hints"
> analyzer? Under “Configuration” one can pick “Default” and
then “Manage…”
> button becomes active. I then create a custom configuration
using the
> “Netbeans Java Hints” analyzer. But after doing so, if I hit
“Inspect”,
> the dialog disappears as if everything is cool, but the
“Inspector” tab
> show “Required Plugins Missing”. Is “Netbeans Java Hints” a
plugin? If
> so, which one? I looked into the available plugins dialog and
don’t see
> one named that.
>
> Thinking that I might need to click the “Install” button with
my custom
> configuration selected, I try it - but it still looks for
“FindBugs”
- even
> though my configuration doesn’t use it.
>
> Is the answer “You’re just not holding it right”?
>
> Any advice appreciated,
> Tom
>
>
> On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
> > Yes, FindBugs is no longer supported and that reference to
it should be
> > removed.
> >
> > Gj
> >
> > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf 
wrote:
> >
> >> Hi,
> >> Sorry if this has been asked before, but...
> >> I just downloaded/installed 12.6. When going to
Source->Inspect and
> >> clicking on “Install” next to “Additional plugins required
for the
selected
> >> configuration.”, it fails to do so (see screenshots) after
searching for
> >> “FindBugs Integration” module on NetBeans plugin portal…
> >>
> >> I’m not actually sure whether this is a 12.6 specific
problem. Is
there
> >> a known problem with the plugin portal?
> >>
> >> Any suggestions are appreciated,
> >> Tom
> >>
> >>
> >>
-
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists,
visit:
> >>
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
>

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For addition

Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Tim Mullé
I did more searching in my netbeans installation folder and found the list of 
files the Terminal was looking for, but I noticed that there is no ARM or AARCH 
files mentioned for any OS.

My `uname -a` reports: Darwin mars.fios-router.home 21.2.0 Darwin Kernel 
Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; 
root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

And I’m running a M1 native JDK from Temurin 17.0.1+12 and tried Azul 11.0.13+8 
both arm ARM64 JDKs


> more ./ide/update_tracking/org-netbeans-modules-dlight-nativeexecution.xml













































































> On Jan 13, 2022, at 4:43 PM, Tim Mullé  wrote:
> 
> So, I did some digging in the debugger of the Netbeans source (12.6) and I 
> think I found where the issue is happening, just not sure why.
> 
> One weird thing is that the HostInfo doesn’t know what `platform` my M1 Pro 
> Mac is..
> 
> Then later on in 
> ‘org.netbeans.modules.nativeexecution.api.util.HelperUtility.getLocalFile()’ 
> it throws a MissingResourceException because it’s trying to find 
> "bin/nativeexecution/MacOSX-unknown_64/pty” on the local file system..and 
> that’s not correct because of the `-unknown`
> 
> A ’null’ is then returned and that then gets set into the ‘Info” variable 
> which then ultimately causes the exception, in PtyNativeProcess.create() it 
> then calls `LocalNativeProcess.createAndStart()` and
> That fails because the `info.setExecutable(String path)` has been set to NULL 
> because of the previous errors.
> 
> Ultimately failing on line 163 in 
> `org.netbeans.modules.nativeexecution.AbstractNativeProcess.java’ and then 
> the error DOES get logged but at the FINE level..which doesn’t appear in the 
> IDE LOG
> 
> Hope this helps, I don’t know enough of the code to try to fix it.. looks 
> like it is missing a file at first glance?
> 
> - Tim
> 
> *** CODE ***
> 'protected File getLocalFile(final ExecutionEnvironment env)
> throws ParseException, MissingResourceException {
> 
> InstalledFileLocator fl = InstalledFileLocatorProvider.getDefault();
> MacroExpander expander = MacroExpanderFactory.getExpander(env);
> String path = expander.expandPredefinedMacros(pattern);
> 
> File file = fl.locate(path, codeNameBase, false);
> 
> if (file == null || !file.exists()) {
> throw new MissingResourceException(path, null, null); //NOI18N
> }
> 
> return file;
> }
> '
> 
> 
> 
> 
>> On Jan 13, 2022, at 4:23 PM, Malcolm Fitzgerald 
>>  wrote:
>> 
>> Has anyone picked up on Emilian's idea and checked the settings for Full 
>> Disk Access and for Files and Folders in System Preferences -> Security and 
>> Privacy -> Privacy? There may be a terminal icon labelled "java" that is 
>> waiting to be checked. 
>> 
>> 
>> Malcolm
>> 
>> 
>> 
>> 
>> 
>> Tim Mullé wrote on 14/01/22 8:44 AM:
>> 
>>> I too am running an M1 Pro Mac with Monterey
>>> 
>>> I’m using 17.0.1-tem java install from SDKMAN and I’ve tried 11.0.13-zulu 
>>> and same issue.
>>> 
>>> I don’t see java in my Files and Folders privacy
>>> 
>>> 
 On Jan 13, 2022, at 2:41 PM, Tim Mullé  wrote:
 
 Sadly, that didn’t fix it for me. I do have Xcode and the command line 
 tools installed as well.
 
 I just deleted my /Library/Application Support/NetBeans folder and 
 restarted Netbeans and I still get the same error posted below.
 
 Oddly, the REMOTE terminal works and I connected to another machine via 
 the ssh and the terminal works
 
 It’s just the local terminal that is crashing with the error
 
 
 
> On Jan 13, 2022, at 12:16 PM, David Green  wrote:
> 
> Works for me on M1 Pro with JDK 17 (and NB 12.4/12.5/12.6)
> 
> Looking at System Preferences | Privacy > Files and Folders 
> 
> I note that java has access to Download Folders, Document Folders, and 
> Desktop Folders but this is it (Java and NetBeans not listed elsewhere) 
> and I don’t think these settings would only impact the terminal.
> 
> I do have XCode and its command line support code loaded.
> 
> I installed JDK 17 with JavaFX from Azul that was built for the M1.
> 
> Installed NB 12.6.  I am running the zsh shell.
> 
> Not a direct answer but a bit of info that might be helpful.
> 
> Dave
> 
> On Jan 13, 202

unsubscribe

2022-01-13 Thread Louis King




Lou
Say what you will about Sisyphus.
He always has work.


-
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 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Thomas Wolf
 Just looking briefly at the Project->Inspect and Transform and the
Source->Inspect… the main difference I see is that the latter allows the
scope to be “Current Folder” - which the former doesn’t have.  So it
doesn’t look like one is a strict superset of the other.

tom

On Jan 13, 2022 at 4:38:46 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> If the one does similar plus more and works. maybe we should simply hide
> the other.
>
> Gj
>
> On Thu, 13 Jan 2022 at 22:34, Michael Bien  wrote:
>
>> ah interesting i can reproduce it too.
>>
>> try using refactor -> "inspect and transform" instead. It has similar
>> functionality + it can refactor after inspection.
>>
>> Don't know why inspect behaves differently. Inspect and transform uses
>> jackpot, while "inspect" can use other plugins too - there might be
>> something wrong in the check whats available and what is not.
>>
>> -mbien
>>
>> On 13.01.22 22:16, Thomas Wolf wrote:
>>
>> Hi Michael,
>> All my projects use “IDE-wide” in the project property hints as that
>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>> the “Inspect” button, but the results tab simply shows “Required Plugin
>> Missing” even when the configuration I’ve defined and run uses the built-in
>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>> a configuration - just select the “Default” one - which uses the “Netbeans
>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>> see (at least I do) the result of “Required Plugin Missing”.
>>
>> Sure looks like a big ‘ole bug to me.
>>
>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>> relevant here.
>>
>> Thanks,
>> Tom
>>
>>
>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>
>>> Hi Tom,
>>>
>>> "NetBeans Java Hints" should be there out of the box. Its the same
>>> system which is responsible for the in-editor hints. Difficult to say
>>> what is going on there. But in general:
>>>
>>> There are two configs, one is global which is applied to all projects by
>>> default, and the per-project config which can replace the global default
>>> if so configured.
>>>
>>> You can find the settings in the project properties -> hints section.
>>> The global config is also replicated again in tools -> options -> editor
>>> -> hints.
>>>
>>> You can run a custom set of rules via refactor -> inspect and transform
>>>
>>> Additionally to all that you can also write your own hint rules. Some
>>> example are here:
>>>
>>> https://github.com/mbien/jackpot-inspections
>>>
>>> (read the readme)
>>>
>>> regards,
>>>
>>> michael
>>>
>>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>>> > Geertjan,
>>> > How do I create a configuration that uses simply the Netbeans Java
>>> Hints"
>>> > analyzer? Under “Configuration” one can pick “Default” and then
>>> “Manage…”
>>> > button becomes active. I then create a custom configuration using the
>>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>>> > so, which one? I looked into the available plugins dialog and don’t see
>>> > one named that.
>>> >
>>> > Thinking that I might need to click the “Install” button with my custom
>>> > configuration selected, I try it - but it still looks for “FindBugs”
>>> - even
>>> > though my configuration doesn’t use it.
>>> >
>>> > Is the answer “You’re just not holding it right”?
>>> >
>>> > Any advice appreciated,
>>> > Tom
>>> >
>>> >
>>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>>> > geertjan.wiele...@googlemail.com> wrote:
>>> >
>>> > > Yes, FindBugs is no longer supported and that reference to it should
>>> be
>>> > > removed.
>>> > >
>>> > > Gj
>>> > >
>>> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>>> > >
>>> > >> Hi,
>>> > >> Sorry if this has been asked before, but...
>>> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
>>> > >> clicking on “Install” next to “Additional plugins required for the
>>> selected
>>> > >> configuration.”, it fails to do so (see screenshots) after
>>> searching for
>>> > >> “FindBugs Integration” module on NetBeans plugin portal…
>>> > >>
>>> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
>>> there
>>> > >> a known problem with the plugin portal?
>>> > >>
>>> > >> Any suggestions are appreciated,
>>> > >> Tom
>>> > >>
>>> > >>
>>> > >>
>>> -
>>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>>> > >>
>>> > >> For further information about the NetBeans mailing lists, visit:
>>

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

2022-01-13 Thread Thomas Wolf
 Yes, " Project->Inspect and Transform” seems to work.
Tom


On Jan 13, 2022 at 5:03:52 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Can you try the other one and see if it does what you need?
>
> Gj
>
> On Thu, 13 Jan 2022 at 23:01, Thomas Wolf  wrote:
>
>> Done:
>> https://issues.apache.org/jira/browse/NETBEANS-6388
>>
>> Tom
>>
>>
>> On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com> wrote:
>>
>>> Can you report it with steps, would be happy to try to reproduce it. And
>>> I think we need to remove all FindBugs support since it's broken and no
>>> longer supported.
>>>
>>> Something that looks like a big 'ole bug is welcome to be turned into an
>>> issue.
>>>
>>> Gj
>>>
>>> On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:
>>>
 Hi Michael,
 All my projects use “IDE-wide” in the project property hints as that
 seems to be the default.  The problem I’m having isn’t that Netbeans can’t
 find “Netbeans Java Hints”.  The problem is that when I try to define a
 configuration via the Source-Inspect… dialog, it lets me define it and hit
 the “Inspect” button, but the results tab simply shows “Required Plugin
 Missing” even when the configuration I’ve defined and run uses the built-in
 “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
 a configuration - just select the “Default” one - which uses the “Netbeans
 Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
 see (at least I do) the result of “Required Plugin Missing”.

 Sure looks like a big ‘ole bug to me.

 I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
 relevant here.

 Thanks,
 Tom


 On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:

> Hi Tom,
>
> "NetBeans Java Hints" should be there out of the box. Its the same
> system which is responsible for the in-editor hints. Difficult to say
> what is going on there. But in general:
>
> There are two configs, one is global which is applied to all projects
> by
> default, and the per-project config which can replace the global
> default
> if so configured.
>
> You can find the settings in the project properties -> hints section.
> The global config is also replicated again in tools -> options ->
> editor
> -> hints.
>
> You can run a custom set of rules via refactor -> inspect and transform
>
> Additionally to all that you can also write your own hint rules. Some
> example are here:
>
> https://github.com/mbien/jackpot-inspections
>
> (read the readme)
>
> regards,
>
> michael
>
> On 2022/01/11 20:17:01 Thomas Wolf wrote:
> > Geertjan,
> > How do I create a configuration that uses simply the Netbeans Java
> Hints"
> > analyzer? Under “Configuration” one can pick “Default” and then
> “Manage…”
> > button becomes active. I then create a custom configuration using the
> > “Netbeans Java Hints” analyzer. But after doing so, if I hit
> “Inspect”,
> > the dialog disappears as if everything is cool, but the “Inspector”
> tab
> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin?
> If
> > so, which one? I looked into the available plugins dialog and don’t
> see
> > one named that.
> >
> > Thinking that I might need to click the “Install” button with my
> custom
> > configuration selected, I try it - but it still looks for “FindBugs”
> - even
> > though my configuration doesn’t use it.
> >
> > Is the answer “You’re just not holding it right”?
> >
> > Any advice appreciated,
> > Tom
> >
> >
> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> > geertjan.wiele...@googlemail.com> wrote:
> >
> > > Yes, FindBugs is no longer supported and that reference to it
> should be
> > > removed.
> > >
> > > Gj
> > >
> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
> > >
> > >> Hi,
> > >> Sorry if this has been asked before, but...
> > >> I just downloaded/installed 12.6. When going to Source->Inspect
> and
> > >> clicking on “Install” next to “Additional plugins required for
> the
> selected
> > >> configuration.”, it fails to do so (see screenshots) after
> searching for
> > >> “FindBugs Integration” module on NetBeans plugin portal…
> > >>
> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
> there
> > >> a known problem with the plugin portal?
> > >>
> > >> Any suggestions are appreciated,
> > >> Tom
> > >>
> > >>
> > >>
> -
> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > >> For additional commands, e-mail: use

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

2022-01-13 Thread Geertjan Wielenga
Can you try the other one and see if it does what you need?

Gj

On Thu, 13 Jan 2022 at 23:01, Thomas Wolf  wrote:

> Done:
> https://issues.apache.org/jira/browse/NETBEANS-6388
>
> Tom
>
>
> On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> Can you report it with steps, would be happy to try to reproduce it. And
>> I think we need to remove all FindBugs support since it's broken and no
>> longer supported.
>>
>> Something that looks like a big 'ole bug is welcome to be turned into an
>> issue.
>>
>> Gj
>>
>> On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:
>>
>>> Hi Michael,
>>> All my projects use “IDE-wide” in the project property hints as that
>>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>>> the “Inspect” button, but the results tab simply shows “Required Plugin
>>> Missing” even when the configuration I’ve defined and run uses the built-in
>>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>>> a configuration - just select the “Default” one - which uses the “Netbeans
>>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>>> see (at least I do) the result of “Required Plugin Missing”.
>>>
>>> Sure looks like a big ‘ole bug to me.
>>>
>>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>>> relevant here.
>>>
>>> Thanks,
>>> Tom
>>>
>>>
>>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>>
 Hi Tom,

 "NetBeans Java Hints" should be there out of the box. Its the same
 system which is responsible for the in-editor hints. Difficult to say
 what is going on there. But in general:

 There are two configs, one is global which is applied to all projects
 by
 default, and the per-project config which can replace the global
 default
 if so configured.

 You can find the settings in the project properties -> hints section.
 The global config is also replicated again in tools -> options ->
 editor
 -> hints.

 You can run a custom set of rules via refactor -> inspect and transform

 Additionally to all that you can also write your own hint rules. Some
 example are here:

 https://github.com/mbien/jackpot-inspections

 (read the readme)

 regards,

 michael

 On 2022/01/11 20:17:01 Thomas Wolf wrote:
 > Geertjan,
 > How do I create a configuration that uses simply the Netbeans Java
 Hints"
 > analyzer? Under “Configuration” one can pick “Default” and then
 “Manage…”
 > button becomes active. I then create a custom configuration using the
 > “Netbeans Java Hints” analyzer. But after doing so, if I hit
 “Inspect”,
 > the dialog disappears as if everything is cool, but the “Inspector”
 tab
 > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
 > so, which one? I looked into the available plugins dialog and don’t
 see
 > one named that.
 >
 > Thinking that I might need to click the “Install” button with my
 custom
 > configuration selected, I try it - but it still looks for “FindBugs”
 - even
 > though my configuration doesn’t use it.
 >
 > Is the answer “You’re just not holding it right”?
 >
 > Any advice appreciated,
 > Tom
 >
 >
 > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
 > geertjan.wiele...@googlemail.com> wrote:
 >
 > > Yes, FindBugs is no longer supported and that reference to it
 should be
 > > removed.
 > >
 > > Gj
 > >
 > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
 > >
 > >> Hi,
 > >> Sorry if this has been asked before, but...
 > >> I just downloaded/installed 12.6. When going to Source->Inspect and
 > >> clicking on “Install” next to “Additional plugins required for the
 selected
 > >> configuration.”, it fails to do so (see screenshots) after
 searching for
 > >> “FindBugs Integration” module on NetBeans plugin portal…
 > >>
 > >> I’m not actually sure whether this is a 12.6 specific problem. Is
 there
 > >> a known problem with the plugin portal?
 > >>
 > >> Any suggestions are appreciated,
 > >> Tom
 > >>
 > >>
 > >>
 -
 > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
 > >> For additional commands, e-mail: users-h...@netbeans.apache.org
 > >>
 > >> For further information about the NetBeans mailing lists, visit:
 > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
 > >
 > >
 >

 -
 To unsubscribe

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

2022-01-13 Thread Thomas Wolf
 Done:
https://issues.apache.org/jira/browse/NETBEANS-6388

Tom


On Jan 13, 2022 at 4:23:06 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Can you report it with steps, would be happy to try to reproduce it. And I
> think we need to remove all FindBugs support since it's broken and no
> longer supported.
>
> Something that looks like a big 'ole bug is welcome to be turned into an
> issue.
>
> Gj
>
> On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:
>
>> Hi Michael,
>> All my projects use “IDE-wide” in the project property hints as that
>> seems to be the default.  The problem I’m having isn’t that Netbeans can’t
>> find “Netbeans Java Hints”.  The problem is that when I try to define a
>> configuration via the Source-Inspect… dialog, it lets me define it and hit
>> the “Inspect” button, but the results tab simply shows “Required Plugin
>> Missing” even when the configuration I’ve defined and run uses the built-in
>> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
>> a configuration - just select the “Default” one - which uses the “Netbeans
>> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
>> see (at least I do) the result of “Required Plugin Missing”.
>>
>> Sure looks like a big ‘ole bug to me.
>>
>> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s
>> relevant here.
>>
>> Thanks,
>> Tom
>>
>>
>> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>>
>>> Hi Tom,
>>>
>>> "NetBeans Java Hints" should be there out of the box. Its the same
>>> system which is responsible for the in-editor hints. Difficult to say
>>> what is going on there. But in general:
>>>
>>> There are two configs, one is global which is applied to all projects by
>>> default, and the per-project config which can replace the global default
>>> if so configured.
>>>
>>> You can find the settings in the project properties -> hints section.
>>> The global config is also replicated again in tools -> options -> editor
>>> -> hints.
>>>
>>> You can run a custom set of rules via refactor -> inspect and transform
>>>
>>> Additionally to all that you can also write your own hint rules. Some
>>> example are here:
>>>
>>> https://github.com/mbien/jackpot-inspections
>>>
>>> (read the readme)
>>>
>>> regards,
>>>
>>> michael
>>>
>>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>>> > Geertjan,
>>> > How do I create a configuration that uses simply the Netbeans Java
>>> Hints"
>>> > analyzer? Under “Configuration” one can pick “Default” and then
>>> “Manage…”
>>> > button becomes active. I then create a custom configuration using the
>>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>>> > so, which one? I looked into the available plugins dialog and don’t see
>>> > one named that.
>>> >
>>> > Thinking that I might need to click the “Install” button with my custom
>>> > configuration selected, I try it - but it still looks for “FindBugs”
>>> - even
>>> > though my configuration doesn’t use it.
>>> >
>>> > Is the answer “You’re just not holding it right”?
>>> >
>>> > Any advice appreciated,
>>> > Tom
>>> >
>>> >
>>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>>> > geertjan.wiele...@googlemail.com> wrote:
>>> >
>>> > > Yes, FindBugs is no longer supported and that reference to it should
>>> be
>>> > > removed.
>>> > >
>>> > > Gj
>>> > >
>>> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>>> > >
>>> > >> Hi,
>>> > >> Sorry if this has been asked before, but...
>>> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
>>> > >> clicking on “Install” next to “Additional plugins required for the
>>> selected
>>> > >> configuration.”, it fails to do so (see screenshots) after
>>> searching for
>>> > >> “FindBugs Integration” module on NetBeans plugin portal…
>>> > >>
>>> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
>>> there
>>> > >> a known problem with the plugin portal?
>>> > >>
>>> > >> Any suggestions are appreciated,
>>> > >> Tom
>>> > >>
>>> > >>
>>> > >>
>>> -
>>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>>> > >>
>>> > >> For further information about the NetBeans mailing lists, visit:
>>> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> > >
>>> > >
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>


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

2022-01-13 Thread Geertjan Wielenga
If the one does similar plus more and works. maybe we should simply hide
the other.

Gj

On Thu, 13 Jan 2022 at 22:34, Michael Bien  wrote:

> ah interesting i can reproduce it too.
>
> try using refactor -> "inspect and transform" instead. It has similar
> functionality + it can refactor after inspection.
>
> Don't know why inspect behaves differently. Inspect and transform uses
> jackpot, while "inspect" can use other plugins too - there might be
> something wrong in the check whats available and what is not.
>
> -mbien
>
> On 13.01.22 22:16, Thomas Wolf wrote:
>
> Hi Michael,
> All my projects use “IDE-wide” in the project property hints as that seems
> to be the default.  The problem I’m having isn’t that Netbeans can’t find
> “Netbeans Java Hints”.  The problem is that when I try to define a
> configuration via the Source-Inspect… dialog, it lets me define it and hit
> the “Inspect” button, but the results tab simply shows “Required Plugin
> Missing” even when the configuration I’ve defined and run uses the built-in
> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
> a configuration - just select the “Default” one - which uses the “Netbeans
> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
> see (at least I do) the result of “Required Plugin Missing”.
>
> Sure looks like a big ‘ole bug to me.
>
> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s relevant
> here.
>
> Thanks,
> Tom
>
>
> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>
>> Hi Tom,
>>
>> "NetBeans Java Hints" should be there out of the box. Its the same
>> system which is responsible for the in-editor hints. Difficult to say
>> what is going on there. But in general:
>>
>> There are two configs, one is global which is applied to all projects by
>> default, and the per-project config which can replace the global default
>> if so configured.
>>
>> You can find the settings in the project properties -> hints section.
>> The global config is also replicated again in tools -> options -> editor
>> -> hints.
>>
>> You can run a custom set of rules via refactor -> inspect and transform
>>
>> Additionally to all that you can also write your own hint rules. Some
>> example are here:
>>
>> https://github.com/mbien/jackpot-inspections
>>
>> (read the readme)
>>
>> regards,
>>
>> michael
>>
>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>> > Geertjan,
>> > How do I create a configuration that uses simply the Netbeans Java
>> Hints"
>> > analyzer? Under “Configuration” one can pick “Default” and then
>> “Manage…”
>> > button becomes active. I then create a custom configuration using the
>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>> > so, which one? I looked into the available plugins dialog and don’t see
>> > one named that.
>> >
>> > Thinking that I might need to click the “Install” button with my custom
>> > configuration selected, I try it - but it still looks for “FindBugs”
>> - even
>> > though my configuration doesn’t use it.
>> >
>> > Is the answer “You’re just not holding it right”?
>> >
>> > Any advice appreciated,
>> > Tom
>> >
>> >
>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>> > geertjan.wiele...@googlemail.com> wrote:
>> >
>> > > Yes, FindBugs is no longer supported and that reference to it should
>> be
>> > > removed.
>> > >
>> > > Gj
>> > >
>> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>> > >
>> > >> Hi,
>> > >> Sorry if this has been asked before, but...
>> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
>> > >> clicking on “Install” next to “Additional plugins required for the
>> selected
>> > >> configuration.”, it fails to do so (see screenshots) after
>> searching for
>> > >> “FindBugs Integration” module on NetBeans plugin portal…
>> > >>
>> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
>> there
>> > >> a known problem with the plugin portal?
>> > >>
>> > >> Any suggestions are appreciated,
>> > >> Tom
>> > >>
>> > >>
>> > >> -
>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>> > >>
>> > >> For further information about the NetBeans mailing lists, visit:
>> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> > >
>> > >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>


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

2022-01-13 Thread Michael Bien

ah interesting i can reproduce it too.

try using refactor -> "inspect and transform" instead. It has similar 
functionality + it can refactor after inspection.


Don't know why inspect behaves differently. Inspect and transform uses 
jackpot, while "inspect" can use other plugins too - there might be 
something wrong in the check whats available and what is not.


-mbien

On 13.01.22 22:16, Thomas Wolf wrote:

Hi Michael,
All my projects use “IDE-wide” in the project property hints as that 
seems to be the default.  The problem I’m having isn’t that Netbeans 
can’t find “Netbeans Java Hints”.  The problem is that when I try to 
define a configuration via the Source-Inspect… dialog, it lets me 
define it and hit the “Inspect” button, but the results tab simply 
shows “Required Plugin Missing” even when the configuration I’ve 
defined and run uses the built-in “Netbeans Java Hints".  As a matter 
of fact, you don’t even have to define a configuration - just select 
the “Default” one - which uses the “Netbeans Java Hints” analyzer from 
the drop-down and hit “Inspect”.  You’ll still see (at least I do) the 
result of “Required Plugin Missing”.


Sure looks like a big ‘ole bug to me.

I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s 
relevant here.


Thanks,
Tom


On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:

Hi Tom,

"NetBeans Java Hints" should be there out of the box. Its the same
system which is responsible for the in-editor hints. Difficult to say
what is going on there. But in general:

There are two configs, one is global which is applied to all projects by
default, and the per-project config which can replace the global default
if so configured.

You can find the settings in the project properties -> hints section.
The global config is also replicated again in tools -> options -> editor
-> hints.

You can run a custom set of rules via refactor -> inspect and transform

Additionally to all that you can also write your own hint rules. Some
example are here:

https://github.com/mbien/jackpot-inspections

(read the readme)

regards,

michael

On 2022/01/11 20:17:01 Thomas Wolf wrote:
> Geertjan,
> How do I create a configuration that uses simply the Netbeans Java 
Hints"
> analyzer? Under “Configuration” one can pick “Default” and then 
“Manage…”

> button becomes active. I then create a custom configuration using the
> “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
> the dialog disappears as if everything is cool, but the “Inspector” tab
> show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
> so, which one? I looked into the available plugins dialog and don’t see
> one named that.
>
> Thinking that I might need to click the “Install” button with my custom
> configuration selected, I try it - but it still looks for “FindBugs”
- even
> though my configuration doesn’t use it.
>
> Is the answer “You’re just not holding it right”?
>
> Any advice appreciated,
> Tom
>
>
> On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
> > Yes, FindBugs is no longer supported and that reference to it 
should be

> > removed.
> >
> > Gj
> >
> > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
> >
> >> Hi,
> >> Sorry if this has been asked before, but...
> >> I just downloaded/installed 12.6. When going to Source->Inspect and
> >> clicking on “Install” next to “Additional plugins required for the
selected
> >> configuration.”, it fails to do so (see screenshots) after
searching for
> >> “FindBugs Integration” module on NetBeans plugin portal…
> >>
> >> I’m not actually sure whether this is a 12.6 specific problem. Is
there
> >> a known problem with the plugin portal?
> >>
> >> Any suggestions are appreciated,
> >> Tom
> >>
> >>
> >> 
-

> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
>

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

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



Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Malcolm Fitzgerald
Has anyone picked up on Emilian's idea and checked the settings for Full 
Disk Access and for Files and Folders in System Preferences -> Security 
and Privacy -> Privacy? There may be a terminal icon labelled "java" 
that is waiting to be checked.



Malcolm





Tim Mullé wrote on 14/01/22 8:44 AM:


I too am running an M1 Pro Mac with Monterey

I’m using 17.0.1-tem java install from SDKMAN and I’ve tried 
11.0.13-zulu and same issue.


I don’t see java in my Files and Folders privacy


On Jan 13, 2022, at 2:41 PM, Tim Mullé > wrote:


Sadly, that didn’t fix it for me. I do have Xcode and the command 
line tools installed as well.


I just deleted my /Library/Application Support/NetBeans folder and 
restarted Netbeans and I still get the same error posted below.


Oddly, the REMOTE terminal works and I connected to another machine 
via the ssh and the terminal works


It’s just the local terminal that is crashing with the error



On Jan 13, 2022, at 12:16 PM, David Green > wrote:


Works for me on M1 Pro with JDK 17 (and NB 12.4/12.5/12.6)

Looking at System Preferences | Privacy > Files and Folders

I note that java has access to Download Folders, Document Folders, 
and Desktop Folders but this is it (Java and NetBeans not listed 
elsewhere) and I don’t think these settings would only impact the 
terminal.


I do have XCode and its command line support code loaded.

I installed JDK 17 with JavaFX from Azul that was built for the M1.

Installed NB 12.6.  I am running the zsh shell.

Not a direct answer but a bit of info that might be helpful.

Dave

On Jan 13, 2022 at 10:44:50 AM, Tim Mullé > wrote:

Any ideas on how to fix or troubleshoot this?

This happens on both 12.5 and 12.6 with JDK11 and JDK17 on my M1 Mac




On Dec 14, 2021, at 2:50 PM, Tim Mullé > wrote:


Still having this issue with 12.5 and 12.6 on M1 Mac.

The error that briefly flashes in the terminal window is:

Cannot invoke “java.util.List.toArray(Object[])” because 
org.netbeans.modules.nativeexecution.NativeProcessInfo.getCommand 
is null


I had to keep clicking on the “New Terminal” button and try to 
read the message since the screen goes black then clears and stays 
empty grey.


Nothing shows up on the command line terminal or the IDE Log 
showing this error.




> On Nov 12, 2021, at 3:34 PM, 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: Re: NB 12.6 - how to get static analyzer plugins to install

2022-01-13 Thread Geertjan Wielenga
Can you report it with steps, would be happy to try to reproduce it. And I
think we need to remove all FindBugs support since it's broken and no
longer supported.

Something that looks like a big 'ole bug is welcome to be turned into an
issue.

Gj

On Thu, Jan 13, 2022 at 10:16 PM Thomas Wolf  wrote:

> Hi Michael,
> All my projects use “IDE-wide” in the project property hints as that seems
> to be the default.  The problem I’m having isn’t that Netbeans can’t find
> “Netbeans Java Hints”.  The problem is that when I try to define a
> configuration via the Source-Inspect… dialog, it lets me define it and hit
> the “Inspect” button, but the results tab simply shows “Required Plugin
> Missing” even when the configuration I’ve defined and run uses the built-in
> “Netbeans Java Hints".  As a matter of fact, you don’t even have to define
> a configuration - just select the “Default” one - which uses the “Netbeans
> Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
> see (at least I do) the result of “Required Plugin Missing”.
>
> Sure looks like a big ‘ole bug to me.
>
> I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s relevant
> here.
>
> Thanks,
> Tom
>
>
> On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:
>
>> Hi Tom,
>>
>> "NetBeans Java Hints" should be there out of the box. Its the same
>> system which is responsible for the in-editor hints. Difficult to say
>> what is going on there. But in general:
>>
>> There are two configs, one is global which is applied to all projects by
>> default, and the per-project config which can replace the global default
>> if so configured.
>>
>> You can find the settings in the project properties -> hints section.
>> The global config is also replicated again in tools -> options -> editor
>> -> hints.
>>
>> You can run a custom set of rules via refactor -> inspect and transform
>>
>> Additionally to all that you can also write your own hint rules. Some
>> example are here:
>>
>> https://github.com/mbien/jackpot-inspections
>>
>> (read the readme)
>>
>> regards,
>>
>> michael
>>
>> On 2022/01/11 20:17:01 Thomas Wolf wrote:
>> > Geertjan,
>> > How do I create a configuration that uses simply the Netbeans Java
>> Hints"
>> > analyzer? Under “Configuration” one can pick “Default” and then
>> “Manage…”
>> > button becomes active. I then create a custom configuration using the
>> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
>> > the dialog disappears as if everything is cool, but the “Inspector” tab
>> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
>> > so, which one? I looked into the available plugins dialog and don’t see
>> > one named that.
>> >
>> > Thinking that I might need to click the “Install” button with my custom
>> > configuration selected, I try it - but it still looks for “FindBugs”
>> - even
>> > though my configuration doesn’t use it.
>> >
>> > Is the answer “You’re just not holding it right”?
>> >
>> > Any advice appreciated,
>> > Tom
>> >
>> >
>> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
>> > geertjan.wiele...@googlemail.com> wrote:
>> >
>> > > Yes, FindBugs is no longer supported and that reference to it should
>> be
>> > > removed.
>> > >
>> > > Gj
>> > >
>> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
>> > >
>> > >> Hi,
>> > >> Sorry if this has been asked before, but...
>> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
>> > >> clicking on “Install” next to “Additional plugins required for the
>> selected
>> > >> configuration.”, it fails to do so (see screenshots) after
>> searching for
>> > >> “FindBugs Integration” module on NetBeans plugin portal…
>> > >>
>> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
>> there
>> > >> a known problem with the plugin portal?
>> > >>
>> > >> Any suggestions are appreciated,
>> > >> Tom
>> > >>
>> > >>
>> > >> -
>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>> > >>
>> > >> For further information about the NetBeans mailing lists, visit:
>> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> > >
>> > >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


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

2022-01-13 Thread Thomas Wolf
 Hi Michael,
All my projects use “IDE-wide” in the project property hints as that seems
to be the default.  The problem I’m having isn’t that Netbeans can’t find
“Netbeans Java Hints”.  The problem is that when I try to define a
configuration via the Source-Inspect… dialog, it lets me define it and hit
the “Inspect” button, but the results tab simply shows “Required Plugin
Missing” even when the configuration I’ve defined and run uses the built-in
“Netbeans Java Hints".  As a matter of fact, you don’t even have to define
a configuration - just select the “Default” one - which uses the “Netbeans
Java Hints” analyzer from the drop-down and hit “Inspect”.  You’ll still
see (at least I do) the result of “Required Plugin Missing”.

Sure looks like a big ‘ole bug to me.

I’m running NB 12.6 w. Java 17 on macOS, but I don’t think that’s relevant
here.

Thanks,
Tom


On Jan 13, 2022 at 3:03:49 PM, Michael Bien  wrote:

> Hi Tom,
>
> "NetBeans Java Hints" should be there out of the box. Its the same
> system which is responsible for the in-editor hints. Difficult to say
> what is going on there. But in general:
>
> There are two configs, one is global which is applied to all projects by
> default, and the per-project config which can replace the global default
> if so configured.
>
> You can find the settings in the project properties -> hints section.
> The global config is also replicated again in tools -> options -> editor
> -> hints.
>
> You can run a custom set of rules via refactor -> inspect and transform
>
> Additionally to all that you can also write your own hint rules. Some
> example are here:
>
> https://github.com/mbien/jackpot-inspections
>
> (read the readme)
>
> regards,
>
> michael
>
> On 2022/01/11 20:17:01 Thomas Wolf wrote:
> > Geertjan,
> > How do I create a configuration that uses simply the Netbeans Java Hints"
> > analyzer? Under “Configuration” one can pick “Default” and then “Manage…”
> > button becomes active. I then create a custom configuration using the
> > “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
> > the dialog disappears as if everything is cool, but the “Inspector” tab
> > show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
> > so, which one? I looked into the available plugins dialog and don’t see
> > one named that.
> >
> > Thinking that I might need to click the “Install” button with my custom
> > configuration selected, I try it - but it still looks for “FindBugs”
> - even
> > though my configuration doesn’t use it.
> >
> > Is the answer “You’re just not holding it right”?
> >
> > Any advice appreciated,
> > Tom
> >
> >
> > On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> > geertjan.wiele...@googlemail.com> wrote:
> >
> > > Yes, FindBugs is no longer supported and that reference to it should be
> > > removed.
> > >
> > > Gj
> > >
> > > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
> > >
> > >> Hi,
> > >> Sorry if this has been asked before, but...
> > >> I just downloaded/installed 12.6. When going to Source->Inspect and
> > >> clicking on “Install” next to “Additional plugins required for the
> selected
> > >> configuration.”, it fails to do so (see screenshots) after
> searching for
> > >> “FindBugs Integration” module on NetBeans plugin portal…
> > >>
> > >> I’m not actually sure whether this is a 12.6 specific problem. Is
> there
> > >> a known problem with the plugin portal?
> > >>
> > >> Any suggestions are appreciated,
> > >> Tom
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
> > >>
> > >> For further information about the NetBeans mailing lists, visit:
> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


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

2022-01-13 Thread Michael Bien

Hi Tom,

"NetBeans Java Hints" should be there out of the box. Its the same 
system which is responsible for the in-editor hints. Difficult to say 
what is going on there. But in general:


There are two configs, one is global which is applied to all projects by 
default, and the per-project config which can replace the global default 
if so configured.


You can find the settings in the project properties -> hints section. 
The global config is also replicated again in tools -> options -> editor 
-> hints.


You can run a custom set of rules via refactor -> inspect and transform

Additionally to all that you can also write your own hint rules. Some 
example are here:


https://github.com/mbien/jackpot-inspections

(read the readme)

regards,

michael

On 2022/01/11 20:17:01 Thomas Wolf wrote:
> Geertjan,
> How do I create a configuration that uses simply the Netbeans Java Hints"
> analyzer? Under “Configuration” one can pick “Default” and then “Manage…”
> button becomes active. I then create a custom configuration using the
> “Netbeans Java Hints” analyzer. But after doing so, if I hit “Inspect”,
> the dialog disappears as if everything is cool, but the “Inspector” tab
> show “Required Plugins Missing”. Is “Netbeans Java Hints” a plugin? If
> so, which one? I looked into the available plugins dialog and don’t see
> one named that.
>
> Thinking that I might need to click the “Install” button with my custom
> configuration selected, I try it - but it still looks for “FindBugs” 
- even

> though my configuration doesn’t use it.
>
> Is the answer “You’re just not holding it right”?
>
> Any advice appreciated,
> Tom
>
>
> On Jan 11, 2022 at 3:01:21 PM, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
> > Yes, FindBugs is no longer supported and that reference to it should be
> > removed.
> >
> > Gj
> >
> > On Tue, 11 Jan 2022 at 20:32, Thomas Wolf  wrote:
> >
> >> Hi,
> >> Sorry if this has been asked before, but...
> >> I just downloaded/installed 12.6. When going to Source->Inspect and
> >> clicking on “Install” next to “Additional plugins required for the 
selected
> >> configuration.”, it fails to do so (see screenshots) after 
searching for

> >> “FindBugs Integration” module on NetBeans plugin portal…
> >>
> >> I’m not actually sure whether this is a 12.6 specific problem. Is 
there

> >> a known problem with the plugin portal?
> >>
> >> Any suggestions are appreciated,
> >> Tom
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
>

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

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



Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Tim Mullé
I too am running an M1 Pro Mac with Monterey

I’m using 17.0.1-tem java install from SDKMAN and I’ve tried 11.0.13-zulu and 
same issue.

I don’t see java in my Files and Folders privacy


> On Jan 13, 2022, at 2:41 PM, Tim Mullé  wrote:
> 
> Sadly, that didn’t fix it for me. I do have Xcode and the command line tools 
> installed as well.
> 
> I just deleted my /Library/Application Support/NetBeans folder and restarted 
> Netbeans and I still get the same error posted below.
> 
> Oddly, the REMOTE terminal works and I connected to another machine via the 
> ssh and the terminal works
> 
> It’s just the local terminal that is crashing with the error
> 
> 
> 
>> On Jan 13, 2022, at 12:16 PM, David Green > > wrote:
>> 
>> Works for me on M1 Pro with JDK 17 (and NB 12.4/12.5/12.6)
>> 
>> Looking at System Preferences | Privacy > Files and Folders 
>> 
>> I note that java has access to Download Folders, Document Folders, and 
>> Desktop Folders but this is it (Java and NetBeans not listed elsewhere) and 
>> I don’t think these settings would only impact the terminal.
>> 
>> I do have XCode and its command line support code loaded.
>> 
>> I installed JDK 17 with JavaFX from Azul that was built for the M1.
>> 
>> Installed NB 12.6.  I am running the zsh shell.
>> 
>> Not a direct answer but a bit of info that might be helpful.
>> 
>> Dave
>> 
>> On Jan 13, 2022 at 10:44:50 AM, Tim Mullé > > wrote:
>>> Any ideas on how to fix or troubleshoot this?
>>> 
>>> This happens on both 12.5 and 12.6 with JDK11 and JDK17 on my M1 Mac
>>> 
>>> 
>>> 
>>> 
 On Dec 14, 2021, at 2:50 PM, Tim Mullé >>> > wrote:
 
 Still having this issue with 12.5 and 12.6 on M1 Mac.
 
 The error that briefly flashes in the terminal window is:
 
 Cannot invoke “java.util.List.toArray(Object[])” because 
 org.netbeans.modules.nativeexecution.NativeProcessInfo.getCommand is null
 
 I had to keep clicking on the “New Terminal” button and try to read the 
 message since the screen goes black then clears and stays empty grey.
 
 Nothing shows up on the command line terminal or the IDE Log showing this 
 error.
 
 
 
 > On Nov 12, 2021, at 3:34 PM, 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: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Tim Mullé
Sadly, that didn’t fix it for me. I do have Xcode and the command line tools 
installed as well.

I just deleted my /Library/Application Support/NetBeans folder and restarted 
Netbeans and I still get the same error posted below.

Oddly, the REMOTE terminal works and I connected to another machine via the ssh 
and the terminal works

It’s just the local terminal that is crashing with the error



> On Jan 13, 2022, at 12:16 PM, David Green  wrote:
> 
> Works for me on M1 Pro with JDK 17 (and NB 12.4/12.5/12.6)
> 
> Looking at System Preferences | Privacy > Files and Folders 
> 
> I note that java has access to Download Folders, Document Folders, and 
> Desktop Folders but this is it (Java and NetBeans not listed elsewhere) and I 
> don’t think these settings would only impact the terminal.
> 
> I do have XCode and its command line support code loaded.
> 
> I installed JDK 17 with JavaFX from Azul that was built for the M1.
> 
> Installed NB 12.6.  I am running the zsh shell.
> 
> Not a direct answer but a bit of info that might be helpful.
> 
> Dave
> 
> On Jan 13, 2022 at 10:44:50 AM, Tim Mullé  > wrote:
>> Any ideas on how to fix or troubleshoot this?
>> 
>> This happens on both 12.5 and 12.6 with JDK11 and JDK17 on my M1 Mac
>> 
>> 
>> 
>> 
>>> On Dec 14, 2021, at 2:50 PM, Tim Mullé >> > wrote:
>>> 
>>> Still having this issue with 12.5 and 12.6 on M1 Mac.
>>> 
>>> The error that briefly flashes in the terminal window is:
>>> 
>>> Cannot invoke “java.util.List.toArray(Object[])” because 
>>> org.netbeans.modules.nativeexecution.NativeProcessInfo.getCommand is null
>>> 
>>> I had to keep clicking on the “New Terminal” button and try to read the 
>>> message since the screen goes black then clears and stays empty grey.
>>> 
>>> Nothing shows up on the command line terminal or the IDE Log showing this 
>>> error.
>>> 
>>> 
>>> 
>>> > On Nov 12, 2021, at 3:34 PM, 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: JavaFX warning when building NB RCP with Maven

2022-01-13 Thread Geertjan Wielenga
Or use an OpenJDK distro where that is true?

Gj

On Thu, Jan 13, 2022 at 6:46 PM Jean-Marc Borer  wrote:

> I checked the content of the manifest file of module
> org-netbeans-libs-javafx.jar
>
> And actually I found:
> 
> OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1
> Class-Path: %24%7Bjava.home%7D/lib/ext/jfxrt.jar
>
> Is this sequence someting that is expected? The Maven build seems to have
> issues with that.
>
> On Thu, Jan 13, 2022 at 5:39 PM Jean-Marc Borer  wrote:
>
>> zulu8.58.0.13-ca-fx-jdk8.0.312-win_x64\jre\lib\ext
>> where jfxrt.jar exists... and JFX works in the application later. Just
>> wondering why such warning is generated.
>>
>> On Thu, Jan 13, 2022 at 5:35 PM Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com> wrote:
>>
>>> Probably lib/ext/jfxrt.jar does not exist?
>>>
>>> Which JDK is it that you are using?
>>>
>>> Gj
>>>
>>> On Thu, Jan 13, 2022 at 6:32 PM Jean-Marc Borer 
>>> wrote:
>>>
 Hello,

 Does anyone know how to fix this warning when I build my RCP app?

 Could not resolve Class-Path item in
 org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path
 is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping

 Regards

>>>


Re: JavaFX warning when building NB RCP with Maven

2022-01-13 Thread Jean-Marc Borer
I checked the content of the manifest file of module
org-netbeans-libs-javafx.jar

And actually I found:

OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1
Class-Path: %24%7Bjava.home%7D/lib/ext/jfxrt.jar

Is this sequence someting that is expected? The Maven build seems to have
issues with that.

On Thu, Jan 13, 2022 at 5:39 PM Jean-Marc Borer  wrote:

> zulu8.58.0.13-ca-fx-jdk8.0.312-win_x64\jre\lib\ext
> where jfxrt.jar exists... and JFX works in the application later. Just
> wondering why such warning is generated.
>
> On Thu, Jan 13, 2022 at 5:35 PM Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> Probably lib/ext/jfxrt.jar does not exist?
>>
>> Which JDK is it that you are using?
>>
>> Gj
>>
>> On Thu, Jan 13, 2022 at 6:32 PM Jean-Marc Borer 
>> wrote:
>>
>>> Hello,
>>>
>>> Does anyone know how to fix this warning when I build my RCP app?
>>>
>>> Could not resolve Class-Path item in
>>> org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path
>>> is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping
>>>
>>> Regards
>>>
>>


Re: JavaFX warning when building NB RCP with Maven

2022-01-13 Thread Jean-Marc Borer
zulu8.58.0.13-ca-fx-jdk8.0.312-win_x64\jre\lib\ext
where jfxrt.jar exists... and JFX works in the application later. Just
wondering why such warning is generated.

On Thu, Jan 13, 2022 at 5:35 PM Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Probably lib/ext/jfxrt.jar does not exist?
>
> Which JDK is it that you are using?
>
> Gj
>
> On Thu, Jan 13, 2022 at 6:32 PM Jean-Marc Borer  wrote:
>
>> Hello,
>>
>> Does anyone know how to fix this warning when I build my RCP app?
>>
>> Could not resolve Class-Path item in
>> org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path
>> is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping
>>
>> Regards
>>
>


Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Jean-Marc Borer
I was facing kind of the same issue with the remote terminal.
Unfortunately, Terminal tries to execute some kind of "injected" code that
gets blocked by our RHEL 8.4 servers. It was working on CentOS 6.

On Thu, Jan 13, 2022 at 3:45 PM Tim Mullé  wrote:

> Any ideas on how to fix or troubleshoot this?
>
> This happens on both 12.5 and 12.6 with JDK11 and JDK17 on my M1 Mac
>
>
>
>
> > On Dec 14, 2021, at 2:50 PM, Tim Mullé  wrote:
> >
> > Still having this issue with 12.5 and 12.6 on M1 Mac.
> >
> > The error that briefly flashes in the terminal window is:
> >
> > Cannot invoke “java.util.List.toArray(Object[])” because
> org.netbeans.modules.nativeexecution.NativeProcessInfo.getCommand is null
> >
> > I had to keep clicking on the “New Terminal” button and try to read the
> message since the screen goes black then clears and stays empty grey.
> >
> > Nothing shows up on the command line terminal or the IDE Log showing
> this error.
> >
> >
> >
> >> On Nov 12, 2021, at 3:34 PM, 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: JavaFX warning when building NB RCP with Maven

2022-01-13 Thread Geertjan Wielenga
Probably lib/ext/jfxrt.jar does not exist?

Which JDK is it that you are using?

Gj

On Thu, Jan 13, 2022 at 6:32 PM Jean-Marc Borer  wrote:

> Hello,
>
> Does anyone know how to fix this warning when I build my RCP app?
>
> Could not resolve Class-Path item in
> org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path
> is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping
>
> Regards
>


JavaFX warning when building NB RCP with Maven

2022-01-13 Thread Jean-Marc Borer
Hello,

Does anyone know how to fix this warning when I build my RCP app?

Could not resolve Class-Path item in
org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE124, path
is:%24%7Bjava.home%7D/lib/ext/jfxrt.jar, skipping

Regards


Re: Blank Terminal window on M1 Mac with Netbeans 12.5

2022-01-13 Thread Tim Mullé
Any ideas on how to fix or troubleshoot this?

This happens on both 12.5 and 12.6 with JDK11 and JDK17 on my M1 Mac




> On Dec 14, 2021, at 2:50 PM, Tim Mullé  wrote:
> 
> Still having this issue with 12.5 and 12.6 on M1 Mac.
> 
> The error that briefly flashes in the terminal window is:
> 
> Cannot invoke “java.util.List.toArray(Object[])” because 
> org.netbeans.modules.nativeexecution.NativeProcessInfo.getCommand is null
> 
> I had to keep clicking on the “New Terminal” button and try to read the 
> message since the screen goes black then clears and stays empty grey.
> 
> Nothing shows up on the command line terminal or the IDE Log showing this 
> error.
> 
> 
> 
>> On Nov 12, 2021, at 3:34 PM, 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: How to run/debug Integration Test class from contextual menu?

2022-01-13 Thread Arnaud bourree
Again thanks you William

I said that custom action cannot provide workaround : that's false

Here is workaround to run all tests from on integration test class:

   1. right click in editor of you integration test file
   2. select "Run Maven >" then "Goals..."
   3. as Goals, enter "integration-test" or "verify", I select verify
   because I expect post-integration-test to be run after test
   4. as Properties, enter like in integration-test default action:
   test=DummyToSkipUnitTests
   failIfNoTests=false
   it.test=${packageClassName}
   5. check "Remember as" and enter a name, I choose "Run IT test"

Et voila, tests of your integration test class run.
Thanks to point 5, now, you can run an integration test class by selectin
"Run IT test" at point 2.

At the end, you should have in nbactions.xml file in your project on action
likes:

CUSTOM-Run IT test
Run IT test
false

verify


DummyYoSkipUnitTests
false
${packageClassName}



Regards,

Arnaud

Le jeu. 13 janv. 2022 à 14:04, Arnaud bourree  a
écrit :

> Thank you William.
>
> I never use Gradle, I suppose you are right.
>
> With Maven's project, we can also add custom actions,That could be a good
> workaround.
> But actions are not contextual actions such as "Test File" or "Run Focused
> Test Method", they work at project level not file level, or I don't
> understand how they work.
>
> Regards,
>
> Arnaud
>
> Le jeu. 13 janv. 2022 à 00:48, * William  a
> écrit :
>
>> Hi Arnaud,
>>
>> I am able to run integration tests from the netbeans project tree using
>> Gradle, may be there is something similar with Maven.  Under each project
>> you want to use a Gradle task you can set-=up an entry in the project's "
>> gradle.properties" file, so:
>>
>> ##  Netbeans Actions
>> ##
>> ##* Gradle tasks
>> ##
>> action.custom-1=intTest
>> action.custom-1.args=--configure-on-demand -w -x check intTest
>> action.custom-2=intTest_debug
>> action.custom-2.args=--configure-on-demand -w -x check intTest
>> --debug-jvm
>>
>> I am not sure if there is a Gradle plugin required to achieve this
>> though, it just worked when I did it after reading a stackoverflow post.
>>
>> It is well worth checking for a Maven equivalent to the custom actions.
>> Another approach is to convert from Maven to Gradle which has a learning
>> curve of course.
>>
>> Good luck there.  I'm for any thing that advances testing.
>>
>> --
>> aloha,
>>  \_w_/
>>  ___
>>
>> On Tue, 4 Jan 2022 at 23:44, Arnaud bourree 
>> wrote:
>>
>>> Hello,
>>>
>>> I use Netbeans 12.6 on Windows server 2016 with OpenJDK 11 and Maven
>>> 3.6.3
>>>
>>> I've some integration tests written with JUnit that Maven knows how to
>>> launch with failsafe.
>>> I'd like to run integration tests like unitary tests from Netbeans.
>>> I saw that there are project actions "Integration test file" and "Debug
>>> integration test".
>>> I expect Netbeans to propose to me something like "Test Integration
>>> File" instead of "Test File" on JUnit tests matching failsafe configuration
>>> : it doesn't.
>>>
>>> I didn't find any web pages explaining how to nor any limitation?
>>>
>>> Any idea how to?
>>>
>>> Regards,
>>>
>>> Arnaud
>>>
>>
>>


Re: Duplicate Entry in the ListBox

2022-01-13 Thread Pieter van den Hombergh
Zulfi,

That is because you add the items every time when the display all accounts
buttons is pressed.
A list has now problems containing duplicate accounts, so expect no help
from the list.
You might want to update the model only when needed, not on each display.

On Thu, Jan 13, 2022 at 3:33 AM Zulfi Khan 
wrote:

> Hi,
>
> I have created a java swing application using NetBeans 12.6 but when I am
> storing data in the ListBox, I am getting repeated data. I store the data
> on the listBox by clicking on the “Display Info Saving or Current Button”
> and by selecting “Current Account” radio Button as shown in the attached
> image. My Jframe class code is given below:
>
> package com.mycompany.inher2rbuttarrlist2;
>
>
>
> import java.util.ArrayList;
>
> import javax.swing.ButtonGroup;
>
> import javax.swing.DefaultListModel;
>
>
>
> /**
>
>  *
>
>  * @author zulfi
>
>  */
>
> public class RButtArrListJFrame extends javax.swing.JFrame {
>
> ArrayList al_allAcc = new ArrayList<>();
>
> //ArrayList al_sav = new ArrayList();
>
> DefaultListModel  model = new DefaultListModel();
>
> Account acc1 = new Account(200.0, 100, "SSUET1", 's');
>
> Account acc2 = new Account(300.0, 101, "SSUET2", 's');
>
> Account acc3 = new Account(400.0, 102, "SSUET3", 's');
>
> Account acc4 = new Account(500.0, 103, "SSUET4", 'c');
>
> Account acc5 = new Account(600.0, 104, "SSUET5", 'c');
>
> ButtonGroup group = new ButtonGroup();
>
> /**
>
>  * Creates new form RButtArrListJFrame
>
>  */
>
> public RButtArrListJFrame() {
>
> initComponents();
>
> group.add(currAccRadBtn);
>
> group.add(savAccRadBtn);
>
> }
>
>
>
> void storeAllAccountInfoinArrayList(){
>
> //
> https://www.delftstack.com/howto/java/adding-objects-to-arraylist/
>
> al_allAcc.add(acc1);
>
> al_allAcc.add(acc2);
>
> al_allAcc.add(acc3);
>
> al_allAcc.add(acc4);
>
> al_allAcc.add(acc5);
>
> }
>
> /**
>
>  * This method is called from within the constructor to initialize
> the form.
>
>  * WARNING: Do NOT modify this code. The content of this method is
> always
>
>  * regenerated by the Form Editor.
>
>  */
>
> @SuppressWarnings("unchecked")
>
> // 
>
>
> private void initComponents() {
>
>
>
> btnDispSavCurr = new javax.swing.JButton();
>
> btnDispAll = new javax.swing.JButton();
>
> jScrollPane1 = new javax.swing.JScrollPane();
>
> jList1 = new javax.swing.JList<>();
>
> savAccRadBtn = new javax.swing.JRadioButton();
>
> currAccRadBtn = new javax.swing.JRadioButton();
>
>
>
>
> setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
>
>
>
> btnDispSavCurr.setText("Display Info Saving or Current");
>
> btnDispSavCurr.addActionListener(new
> java.awt.event.ActionListener() {
>
> public void actionPerformed(java.awt.event.ActionEvent evt) {
>
> btnDispSavCurrActionPerformed(evt);
>
> }
>
> });
>
>
>
> btnDispAll.setText("Display All Accounts");
>
> btnDispAll.addActionListener(new java.awt.event.ActionListener() {
>
> public void actionPerformed(java.awt.event.ActionEvent evt) {
>
> btnDispAllActionPerformed(evt);
>
> }
>
> });
>
>
>
> jScrollPane1.setViewportView(jList1);
>
>
>
> savAccRadBtn.setText("Saving Account");
>
>
>
> currAccRadBtn.setText("Current Account");
>
>
>
> javax.swing.GroupLayout layout = new
> javax.swing.GroupLayout(getContentPane());
>
> getContentPane().setLayout(layout);
>
> layout.setHorizontalGroup(
>
>
> layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
>
> .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
> layout.createSequentialGroup()
>
>
> .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
>
> .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
> layout.createSequentialGroup()
>
> .addGap(81, 81, 81)
>
> .addComponent(btnDispSavCurr)
>
> 
> .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
> 143, Short.MAX_VALUE)
>
> .addComponent(btnDispAll,
> javax.swing.GroupLayout.PREFERRED_SIZE, 144,
> javax.swing.GroupLayout.PREFERRED_SIZE))
>
> .addGroup(layout.createSequentialGroup()
>
> .addGap(64, 64, 64)
>
>
> .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
>
> .addComponent(savAccRadBtn)
>
> .addComponent(currAccRadBtn))
>
> 
> .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
> javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
>
> .addComponent(jS

Re: How to run/debug Integration Test class from contextual menu?

2022-01-13 Thread Arnaud bourree
Thank you William.

I never use Gradle, I suppose you are right.

With Maven's project, we can also add custom actions,That could be a good
workaround.
But actions are not contextual actions such as "Test File" or "Run Focused
Test Method", they work at project level not file level, or I don't
understand how they work.

Regards,

Arnaud

Le jeu. 13 janv. 2022 à 00:48, * William  a
écrit :

> Hi Arnaud,
>
> I am able to run integration tests from the netbeans project tree using
> Gradle, may be there is something similar with Maven.  Under each project
> you want to use a Gradle task you can set-=up an entry in the project's "
> gradle.properties" file, so:
>
> ##  Netbeans Actions
> ##
> ##* Gradle tasks
> ##
> action.custom-1=intTest
> action.custom-1.args=--configure-on-demand -w -x check intTest
> action.custom-2=intTest_debug
> action.custom-2.args=--configure-on-demand -w -x check intTest
> --debug-jvm
>
> I am not sure if there is a Gradle plugin required to achieve this though,
> it just worked when I did it after reading a stackoverflow post.
>
> It is well worth checking for a Maven equivalent to the custom actions.
> Another approach is to convert from Maven to Gradle which has a learning
> curve of course.
>
> Good luck there.  I'm for any thing that advances testing.
>
> --
> aloha,
>  \_w_/
>  ___
>
> On Tue, 4 Jan 2022 at 23:44, Arnaud bourree 
> wrote:
>
>> Hello,
>>
>> I use Netbeans 12.6 on Windows server 2016 with OpenJDK 11 and Maven 3.6.3
>>
>> I've some integration tests written with JUnit that Maven knows how to
>> launch with failsafe.
>> I'd like to run integration tests like unitary tests from Netbeans.
>> I saw that there are project actions "Integration test file" and "Debug
>> integration test".
>> I expect Netbeans to propose to me something like "Test Integration File"
>> instead of "Test File" on JUnit tests matching failsafe configuration : it
>> doesn't.
>>
>> I didn't find any web pages explaining how to nor any limitation?
>>
>> Any idea how to?
>>
>> Regards,
>>
>> Arnaud
>>
>
>


Re: Netbeans IDE 12.6/JavaFX 17/Java 11

2022-01-13 Thread Mark Eggers

First of all, when I do development it's for Java EE web containers.
Second of all, I use Maven, so if you're using Ant or Gradle I will have 
even less of a clue.


That being said, I did a quick search for:

Error initializing QuantumRenderer: no suitable pipeline found a 
StackOverflow discussion here:


https://stackoverflow.com/questions/65737055/javafx-web-11-error-initializing-quantumrenderer-no-suitable-pipeline-found

In it, there is a reference to a classifier for the javafx-graphics 
artifact. The resulting dependency snippet is:



org.openjfx
javafx-graphics
17
mac


And substitute win or linux as the classifier if you're targeting those 
systems.


Another discussion on this can be found on the read-only github site:

https://github.com/javafxports/openjdk-jfx/issues/237

While the Java version is different, it appears that there are 
instructions for including the correct modules. I don't know if 
something similar will work with Java 17.


Again, I'm a web applications developer (when I develop - I'm mostly a 
systems / software architect at this point) and not a desktop developer.


Maybe this will point you in the correct direction at least?

. . . just my two cents
/mde/

On 1/13/2022 12:25 AM, 王东华 wrote:

Dear,
Our development environment: Netbeans IDE 12.6, JavaFX 17, Java 11
I have create a Netbeans Platform Application and want to use JavaFX,
I have add JavaFX jar into the wrapped jars, and there are no compile error for 
JavaFX in Netbeans IDE,
However, when I run the application, IDE will show following exception:
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
[catch] at java.base/java.lang.Thread.run(Thread.java:829)
And I don't know how to add -module-path and --add-modules for Netbeans 
Platform Application




OpenPGP_signature
Description: OpenPGP digital signature


Re:Netbeans IDE 12.6/JavaFX 17/Java 11

2022-01-13 Thread 王东华
Exception in message.log:
Graphics Device initialization failed for :  d3d, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing 
QuantumRenderer: no suitable pipeline found
at 
com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:283)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:254)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:264)
at 
com.sun.javafx.application.PlatformImpl.isFxApplicationThread(PlatformImpl.java:428)
at com.sun.javafx.application.PlatformImpl.checkIdle(PlatformImpl.java:547)
at 
com.sun.javafx.application.PlatformImpl.setImplicitExit(PlatformImpl.java:504)
at javafx.application.Platform.setImplicitExit(Platform.java:230)
at 
com.galileo.netbeans.module.LogoWebBrowserPanel.(LogoWebBrowserPanel.java:50)
at com.galileo.netbeans.module.MyTopComponent.(MyTopComponent.java:42)
at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at 
org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:75)
at 
org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603)
at 
org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:401)
at 
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:547)
at 
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:657)
at 
org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:453)
at 
org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:1002)
at 
org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:270)
at 
org.netbeans.core.windows.RecentViewList.getTopComponents(RecentViewList.java:67)
at 
org.netbeans.core.windows.WindowManagerImpl.getRecentViewList(WindowManagerImpl.java:1153)
at 
org.netbeans.core.windows.PersistenceHandler.getConfig(PersistenceHandler.java:619)
at 
org.netbeans.core.windows.PersistenceHandler.save(PersistenceHandler.java:289)
at org.netbeans.core.windows.WindowSystemImpl.save(WindowSystemImpl.java:68)
at org.netbeans.core.NbLifeExit.doStopInfra(NbLifeExit.java:130)
at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:75)
at org.netbeans.core.startup.ModuleSystem$2.run(ModuleSystem.java:340)
at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:2303)
at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:346)
at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:117)
at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:72)
at 
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:97)
at 
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:72)
at 
org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:66)
at org.openide.util.Mutex.readAccess(Mutex.java:241)
at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:209)
at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:115)
at 
org.netbeans.core.windows.view.ui.MainWindow$9.windowClosing(MainWindow.java:529)
at 
java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
INFO [null]: Last record repeated again.
at java.desktop/java.awt.Window.processWindowEvent(Window.java:2078)
at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
at java.desktop/java.awt.Window.processEvent(Window.java:2037)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.sec

Netbeans IDE 12.6/JavaFX 17/Java 11

2022-01-13 Thread 王东华
Dear,
Our development environment: Netbeans IDE 12.6, JavaFX 17, Java 11
I have create a Netbeans Platform Application and want to use JavaFX,
I have add JavaFX jar into the wrapped jars, and there are no compile error for 
JavaFX in Netbeans IDE,
However, when I run the application, IDE will show following exception:
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
[catch] at java.base/java.lang.Thread.run(Thread.java:829)
And I don't know how to add -module-path and --add-modules for Netbeans 
Platform Application