Re: Main class problem with Netbeans IDE 21

2024-04-15 Thread Helmut Leininger

Hi,

after adding the declarations (quick and dirty)

    public JTextField tfISfile;
    public JTextField tfIfile;
    public JTextField tfIPfile;
    public JTextArea tbISfileinfo;
    public JTextField tfRuns;

It runs ok for me. Manifest is ok, can be run by double-click on the .jar


NB 21, Windows 11

regards

Am 15.04.2024 um 02:49 schrieb Brian Allison (ISSRS):

I can build and run my jFrame project in Netbeans IDE 21.
If I go to the folder where my .jar file is and double click on it,
nothing happens.  If I go to a console and run it with the command
java -jar BFC.jar I get an error

no main manifest attribute, in BFC.jar

If I use the command java xf BFG.jar and look at the MANIFEST file,
there is no Main-Class line.  After I add the line with the main
class, I get this error.

Error: Could not find or load main class iss.batchfilegenerator.BFG
Caused by: java.lang.ClassNotFoundException: iss.batchfilegenerator.BFG


In net beans I have iss.batchfilegenerator.BFG. specified as the main
class under project|properties
|Run.


Here is the code

package iss.batchfilegenerator;

import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.io.File;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JOptionPane;
/**
 *
 * @author brianallison
 */
public class BFG extends javax.swing.JFrame {

    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //
        /* If Nimbus (introduced in Java SE 6) is not available, stay
with the default look and feel.
         * For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException |
IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(BFG.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        }
        //
        //

        /* Create and display the form */
java.awt.EventQueue.invokeLater(() -> {
            new BFG().setVisible(true);
        });

    }
    /**
     * Creates new form BFG
     */
    public BFG() {
        initComponents();
    }

    /**
     * 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() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        tfISfile = new javax.swing.JTextField();
        tfIfile = new javax.swing.JTextField();
        tfIPfile = new javax.swing.JTextField();
        btnISfile = new javax.swing.JButton();
        btnIfile = new javax.swing.JButton();
        btnIPfile = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbISfileinfo = new javax.swing.JTextArea();
        btnBatchfile = new javax.swing.JButton();
        btnSavedata = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        tfRuns = new javax.swing.JTextField();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("fBFG"); // NOI18N

        jLabel1.setFont(new java.awt.Font("Helvetica Neue", 1, 24));
// NOI18N
jLabel1.setText("Integrated Uncertainty Analysis");

        jLabel2.setFont(new java.awt.Font("Helvetica Neue", 1, 24));
// NOI18N
        jLabel2.setText("Batch File Creator");

        jLabel3.setText("Choose .IS File");
jLabel3.setToolTipText("");

        jLabel4.setText("Choose .i FIle");

        jLabel5.setText("Choose .ip File");

        btnISfile.setText("Choose File");
btnISfile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
btnISfileActionPerformed(evt);
            }
        });

        btnIfile.setText("Choose File");
btnIfile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
btnIfileActionPerformed(evt);
            }
        });

        btnIPfile.setText("Choose File");
btnIPfile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
btnIPfileActionPerformed(evt);
            }
        });

tbISfileinfo.setColumns(20);
        tbISfileinfo.setRows(5);

Re: Console: ascii characters not shown correctly

2023-05-21 Thread Helmut Leininger

Hi,

I did not follow the whole thread, but I could solve similar problems 
with outputr to stderr / stdout in Netbeans by adding these options in 
the project configuration / Run / VM Options:


 -Dstdout.encoding=utf-8 -Dstderr.encoding=utf-8

Netbeans 17, Java 19

Regards

Am 21.05.2023 um 15:44 schrieb Geert Vancompernolle:

Sorry for my late reply, just back from a business trip.

I looked into the referenced pages you gave, applied the 
System.setOut() method with UTF-8 as parameter for the PrintStream() 
method like so:


System.setOut(new PrintStream(System.out, true, "UTF8"));

but it doesn't help.  The only change I see is that one strange 
character is replaced with another strange character.


A pity, because I like this ASCII "graphics".  I applied them already 
back in the '80 to make splash screens at that time (the extended 
ASCII character set was the only option back in those days to create 
some "graphish" intro screens and menus).


I went back to "+---+" and "|" characters to draw my box.


--
Mit freundlichen Grüßen
Helmut Leininger
Email: h.leinin...@gmx.at



OpenPGP_signature
Description: OpenPGP digital signature


Re: Newbie help

2023-05-13 Thread Helmut Leininger

Peter,


this was more or less the idea. Branching in Git, so you have a Main 
branch and a development branch which you can test, compile and run. 
What remains is the inconvenience you described with checking out if you 
qant to switch between the versions.



But maybe (I did not try or test) you can create two projects in 
Netbeans coming from the same Git repository. One from the main branch, 
one from the development branch. If this works, you would have more or 
less what you want.




Am 12.05.2023 um 19:45 schrieb Peter Toye:


Dear Helmut,

Thank you - I already use GIT. But (as I mentioned in my reply to John 
Lavelle's comment) this doesn't seem to help separating the dev and 
release versions. I agree that it makes it easier to automate the 
workflow, but having to remember to checkout the release branch and 
recompile it at the end of each debugging session seems to me to be an 
unnecessary burden on the user. Is this what you were suggesting or 
have I missed something?



Best regards,

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

-
Friday, May 12, 2023, 1:45:38 PM, you wrote:

Peter,


Am 12.05.2023 um 14:14 schrieb John Lavelle:

snip
...

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

.

Maybe you should think about using a VCS (Version Control System)
like Git, Mercurial, Subversion which is useable by Netbeans.

Mit freundlichen Grüßen

Helmut Leininger
Email: h.leinin...@gmx.at <mailto:h.leinin...@gmx.at>




--
Mit freundlichen Grüßen
Helmut Leininger
Email:h.leinin...@gmx.at



OpenPGP_signature
Description: OpenPGP digital signature


Re: Newbie help

2023-05-12 Thread Helmut Leininger

Peter,


Am 12.05.2023 um 14:14 schrieb John Lavelle:

snip
...

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


.

Maybe you should think about using a VCS (Version Control System) like 
Git, Mercurial, Subversion which is useable by Netbeans.


Mit freundlichen Grüßen

Helmut Leininger
Email: h.leinin...@gmx.at



OpenPGP_signature
Description: OpenPGP digital signature


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

2023-01-02 Thread Helmut Leininger
It is in the windows tools / accessories. I do not know the English menu name, 
but you will find it

Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Am 2. Jänner 2023 20:00:46 MEZ schrieb "Christopher C. Lanz" 
:
>Hello,
>
>Thanks again. Unfortunately I can find no mention of "character map" in the 
>NetBeans documentation to which I have access. Would it be a Windows matter? I 
>have already ascertained that the usual Windows method for these characters 
>doesn't function in the Netbeans editor.
>
>
>Chris Lanz
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu
>
>315 268 1547
>
>
>
>
>
>From: Helmut Leininger
>Sent: Monday, January 2, 2023 11:27 AM
>To: users@netbeans.apache.org
>Subject: Re: [EXTERNAL] Re: accented characters in NB 16 IDE editor
>
>
>Hi,
>
>the Microsoft "recommendations" only work for MS Word or LibreOffice
>
>
>For other programs you have to use Arnaud's method:
>
>There is no compose character on Windows.
>If you want a character not available in your keyborad layout, you should:
>- use character map
>- or keep Alt key down and press the character code (avalaible in character 
>map): for example É (upper e accute) Alt+0201
>
>Make sure that NumLock is on before entering Alt+nnn (from numeric keyboard !)
>
>Regards
>Helmut
>
>Am 02.01.2023 um 15:35 schrieb Christopher C. Lanz:
>Hello,
>
>Yes, thanks, I have tried the Microsoft recommendations. They don't work in 
>the NetBeans 16 IDE editor.
>
>
>Chris Lanz, Assoc. Professor Emeritus
>
>Department of Computer Science
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu<mailto:lan...@potsdam.edu>
>
>315 268 1547
>
>
>
>
>
>From: Brett Ryan <mailto:brett.r...@gmail.com>
>Sent: Monday, January 2, 2023 12:49 AM
>To: Arnaud bourree <mailto:arnaud.bour...@gmail.com>
>Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org> 
><mailto:users@netbeans.apache.org>
>Subject: [EXTERNAL] Re: accented characters in NB 16 IDE editor
>
>This message did not originate from SUNY Potsdam or one of its trusted 
>senders. Do not open attachments, click on links, or provide your credentials 
>if the source is suspicious.
>
>According to Microsoft there is: 
>https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35
>
>On Mon, 2 Jan 2023 at 16:44, Arnaud bourree 
>mailto:arnaud.bour...@gmail.com>> wrote:
>Hi,
>
>There is no compose character on Windows.
>If you want a character not available in your keyborad layout, you should:
>- use character map
>- or keep Alt key down and press the character code (avalaible in character 
>map): for example É (upper e accute) Alt+0201
>
>Regardes,
>
>Arnaud
>
>Le lun. 2 janv. 2023, 02:25, Brett Ryan 
>mailto:brett.r...@gmail.com>> a écrit :
>I don't use windows but believe it should be similar but with CTRL. Try 
>pressing CTRL+`, release, then the key for the accent (e, u, a, ...)
>
>On Mon, 2 Jan 2023 at 07:57, Peter Holt mailto:pe...@holt.se>> 
>wrote:
>
>
>
>
>
>Från: Christopher C. Lanz 
><mailto:lan...@potsdam.edu.INVALID>
>Skickat: den 1 januari 2023 21:32
>Till: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
>Ämne: accented characters in NB 16 IDE editor
>
>
>
>Hello,
>
>I just switched from linux to windows 10, with Netbeans 16 installed. I need 
>to be able to type accented characters in the editor (java) - characters that 
>survive being saved in files. In the linux version, it was a matter of holding 
>AltGr and a key representing the desired accent, releasing those keys, and 
>then typing a letter. I can't seem to find mention of this function online in 
>stackoverflow etc., and the netbeans mailing list search gave no results 
>(although I could be using it incorrectly.)
>
>Thanks.
>
>
>
>Chris Lanz
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu<mailto:lan...@potsdam.edu>
>
>315 268 1547
>
>
>
>
>
>
>
>--
>Mit freundlichen Grüßen
>Helmut Leininger
>Email: h.leinin...@gmx.at<mailto:h.leinin...@gmx.at>


Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

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

2023-01-02 Thread Helmut Leininger
https://en.m.wikipedia.org/wiki/Character_Map_(Windows)

Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Am 2. Jänner 2023 20:00:46 MEZ schrieb "Christopher C. Lanz" 
:
>Hello,
>
>Thanks again. Unfortunately I can find no mention of "character map" in the 
>NetBeans documentation to which I have access. Would it be a Windows matter? I 
>have already ascertained that the usual Windows method for these characters 
>doesn't function in the Netbeans editor.
>
>
>Chris Lanz
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu
>
>315 268 1547
>
>
>
>
>
>From: Helmut Leininger
>Sent: Monday, January 2, 2023 11:27 AM
>To: users@netbeans.apache.org
>Subject: Re: [EXTERNAL] Re: accented characters in NB 16 IDE editor
>
>
>Hi,
>
>the Microsoft "recommendations" only work for MS Word or LibreOffice
>
>
>For other programs you have to use Arnaud's method:
>
>There is no compose character on Windows.
>If you want a character not available in your keyborad layout, you should:
>- use character map
>- or keep Alt key down and press the character code (avalaible in character 
>map): for example É (upper e accute) Alt+0201
>
>Make sure that NumLock is on before entering Alt+nnn (from numeric keyboard !)
>
>Regards
>Helmut
>
>Am 02.01.2023 um 15:35 schrieb Christopher C. Lanz:
>Hello,
>
>Yes, thanks, I have tried the Microsoft recommendations. They don't work in 
>the NetBeans 16 IDE editor.
>
>
>Chris Lanz, Assoc. Professor Emeritus
>
>Department of Computer Science
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu<mailto:lan...@potsdam.edu>
>
>315 268 1547
>
>
>
>
>
>From: Brett Ryan <mailto:brett.r...@gmail.com>
>Sent: Monday, January 2, 2023 12:49 AM
>To: Arnaud bourree <mailto:arnaud.bour...@gmail.com>
>Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org> 
><mailto:users@netbeans.apache.org>
>Subject: [EXTERNAL] Re: accented characters in NB 16 IDE editor
>
>This message did not originate from SUNY Potsdam or one of its trusted 
>senders. Do not open attachments, click on links, or provide your credentials 
>if the source is suspicious.
>
>According to Microsoft there is: 
>https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35
>
>On Mon, 2 Jan 2023 at 16:44, Arnaud bourree 
>mailto:arnaud.bour...@gmail.com>> wrote:
>Hi,
>
>There is no compose character on Windows.
>If you want a character not available in your keyborad layout, you should:
>- use character map
>- or keep Alt key down and press the character code (avalaible in character 
>map): for example É (upper e accute) Alt+0201
>
>Regardes,
>
>Arnaud
>
>Le lun. 2 janv. 2023, 02:25, Brett Ryan 
>mailto:brett.r...@gmail.com>> a écrit :
>I don't use windows but believe it should be similar but with CTRL. Try 
>pressing CTRL+`, release, then the key for the accent (e, u, a, ...)
>
>On Mon, 2 Jan 2023 at 07:57, Peter Holt mailto:pe...@holt.se>> 
>wrote:
>
>
>
>
>
>Från: Christopher C. Lanz 
><mailto:lan...@potsdam.edu.INVALID>
>Skickat: den 1 januari 2023 21:32
>Till: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
>Ämne: accented characters in NB 16 IDE editor
>
>
>
>Hello,
>
>I just switched from linux to windows 10, with Netbeans 16 installed. I need 
>to be able to type accented characters in the editor (java) - characters that 
>survive being saved in files. In the linux version, it was a matter of holding 
>AltGr and a key representing the desired accent, releasing those keys, and 
>then typing a letter. I can't seem to find mention of this function online in 
>stackoverflow etc., and the netbeans mailing list search gave no results 
>(although I could be using it incorrectly.)
>
>Thanks.
>
>
>
>Chris Lanz
>
>340 Dunn Hall, SUNY Potsdam
>
>lan...@potsdam.edu<mailto:lan...@potsdam.edu>
>
>315 268 1547
>
>
>
>
>
>
>
>--
>Mit freundlichen Grüßen
>Helmut Leininger
>Email: h.leinin...@gmx.at<mailto:h.leinin...@gmx.at>


Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

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

2023-01-02 Thread Helmut Leininger

Hi,

the Microsoft "recommendations" only work for MS Word or LibreOffice


For other programs you have to use Arnaud's method:


   There is no compose character on Windows.
   If you want a character not available in your keyborad layout, you
   should:
   - use character map
   - or keep Alt key down and press the character code (avalaible in
   character map): for example É (upper e accute) Alt+0201

Make sure that NumLock is on before entering Alt+nnn (from numeric 
keyboard !)


Regards
Helmut

Am 02.01.2023 um 15:35 schrieb Christopher C. Lanz:

Hello,

Yes, thanks, I have tried the Microsoft recommendations. They don't 
work in the NetBeans 16 IDE editor.


Chris Lanz, Assoc. Professor Emeritus

Department of Computer Science

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547





*From:* Brett Ryan 
*Sent:* Monday, January 2, 2023 12:49 AM
*To:* Arnaud bourree 
*Cc:* users@netbeans.apache.org 
*Subject:* [EXTERNAL] Re: accented characters in NB 16 IDE editor
This message did not originate from SUNY Potsdam or one of its trusted 
senders. Do not open attachments, click on links, or provide your 
credentials if the source is suspicious.


According to Microsoft there is: 
https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35


On Mon, 2 Jan 2023 at 16:44, Arnaud bourree  
wrote:


Hi,

There is no compose character on Windows.
If you want a character not available in your keyborad layout, you
should:
- use character map
- or keep Alt key down and press the character code (avalaible in
character map): for example É (upper e accute) Alt+0201

Regardes,

Arnaud

Le lun. 2 janv. 2023, 02:25, Brett Ryan  a
écrit :

I don't use windows but believe it should be similar but with
CTRL. Try pressing CTRL+`, release, then the key for the
accent (e, u, a, ...)

On Mon, 2 Jan 2023 at 07:57, Peter Holt  wrote:

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

Hello,

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

Thanks.

Chris Lanz

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547


--
Mit freundlichen Grüßen
Helmut Leininger
Email: h.leinin...@gmx.at


OpenPGP_signature
Description: OpenPGP digital signature


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

2023-01-02 Thread Helmut Leininger

Hi,

If you look at the Microsoft recommendations, they are valid only for 
Word (and LibreOffice).



For other programs, such as Netbeans, you have to use Arnaud's mthod:


   There is no compose character on Windows.
   If you want a character not available in your keyborad layout, you
   should:
   - use character map
   - or keep Alt key down and press the character code (avalaible in
   character map): for example É (upper e accute) Alt+0201

Be sure that NumLock is on to enter Alt+ from the numeric keyboard

Regards,
Helmut

Am 02.01.2023 um 15:35 schrieb Christopher C. Lanz:

Hello,

Yes, thanks, I have tried the Microsoft recommendations. They don't 
work in the NetBeans 16 IDE editor.


Chris Lanz, Assoc. Professor Emeritus

Department of Computer Science

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547





*From:* Brett Ryan 
*Sent:* Monday, January 2, 2023 12:49 AM
*To:* Arnaud bourree 
*Cc:* users@netbeans.apache.org 
*Subject:* [EXTERNAL] Re: accented characters in NB 16 IDE editor
This message did not originate from SUNY Potsdam or one of its trusted 
senders. Do not open attachments, click on links, or provide your 
credentials if the source is suspicious.


According to Microsoft there is: 
https://support.microsoft.com/en-au/topic/keyboard-shortcuts-for-international-characters-108fa0c1-fb8e-4aae-9db1-d60407d13c35


On Mon, 2 Jan 2023 at 16:44, Arnaud bourree  
wrote:


Hi,

There is no compose character on Windows.
If you want a character not available in your keyborad layout, you
should:
- use character map
- or keep Alt key down and press the character code (avalaible in
character map): for example É (upper e accute) Alt+0201

Regardes,

Arnaud

Le lun. 2 janv. 2023, 02:25, Brett Ryan  a
écrit :

I don't use windows but believe it should be similar but with
CTRL. Try pressing CTRL+`, release, then the key for the
accent (e, u, a, ...)

On Mon, 2 Jan 2023 at 07:57, Peter Holt  wrote:

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

Hello,

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

Thanks.

Chris Lanz

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547


--
Mit freundlichen Grüßen
Helmut Leininger
Email: h.leinin...@gmx.at


OpenPGP_signature
Description: OpenPGP digital signature


Re: createDirectory(....)

2022-10-31 Thread Helmut Leininger
Maybe you should use Files.createDirectories(dirpath) instead.


Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Am 1. November 2022 02:07:46 MEZ schrieb Amn :
>"*/Files.createDirectory(dir_path)/*" gives an error, such as, 
>"*/java.nio.file.NoSuchFileException/*" when I tried to create a directory 
>outside the NB15 project directory, i.e. 
>"//home/my_home/App_Home_Dir/Sub_App_Dir/db/DatabaseTest.db/". However, when 
>the dir_path is just the file name (/DatabaseTest.db/), NB15 has not problems 
>creating it in the project's home directory. I don't need the new file in the 
>project's home directory, I need it in the 
>"/home/my_home/App_Home_Dir/Sub_App_Dir/db". This might just be a matter of 
>setting a switch in NB15, which is what I am hoping for. So, any help would be 
>much appreciated.
>
>By the way, I am using a Debian 11 box.
>
>
>Thanks in advance.


Re: Presentation of non-english characters in the debugger

2022-10-31 Thread Helmut Leininger
Hi,
If you read using UTF-8 and then write specifying UTF-8 there should not be a 
problem.
But Windows does not use UTF-8 by standard I think it uses CP1252 or similar. 
And a command window (cmd) uses the windows setting. When you write a file in 
utf-8 an then display it in the command window you will see differencies as you 
described. 

Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Am 31. Oktober 2022 21:27:24 MEZ schrieb "Greenberg, Gary" 
:
>I have created an application that reads data from the CSV file, process it 
>and write it into another file.
>It is working fine except one thing. German characters are being replaced. For 
>example instead of leiüzig I see lei�zig
>Same replacement I see in debugger when I stop it after reading a line from 
>file.
>I do have in my code
>Reader rdr = BufferedReader(new InputStreamReader(new FileInputStream(file), 
>"UTF-8"));
>Later this Reader is used to build CSVReader (from OpenCsv library).
>
>I want to be sure that that problems are in my code and not how debugger 
>displays it.
>I haven’t delt with foreign characters encoding before, so please forgive my 
>ignorance.
>I would gladly accept advice on my code as well.
>
>I am running NB12.5 on OpenJDK 16 on Windows, but application is running in 
>Java 8 SE.
>
>Gary Greenberg
>Staff Software Engineer
>


Use jpackage in NB

2022-10-06 Thread Helmut Leininger

Hi,

since Java 14 the Java SDK contains jpackage to create deliverables that 
include necessary Java runtimes. Is it possible to use jpacke int 
Netbeans 15 (plugins, ant, ...) ?


Thanks
Hemut Leininger



OpenPGP_0x490D71A8776A6183.asc
Description: OpenPGP public key
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard



OpenPGP_signature
Description: OpenPGP digital signature


Re: Array of Object Error: ‘]’ expected, invalid method declaration return type required.

2022-01-30 Thread Helmut Leininger

Hi,

I do not see this problem. My config:
NetBeans 12.6
nb-javac not installed
Java 17.0.1
Windows 10

Maybe a problem of of the Java version or nb-javac ?

Regards
Helmut

Am 31.01.2022 um 04:54 schrieb Zulfi Khan:


Hi,

I am trying to create an array of Object of Account class:

public class RButtArrListJFrame extends javax.swing.JFrame {

ArrayList al_allAcc = new ArrayList<>();

//ArrayList al_sav = new ArrayList();

DefaultListModel  model = new DefaultListModel();

Account[] acc = new Account[5];

acc[0] = new Account(200.0, 100, "SSUET1", 's');//Error

acc[1] = new Account(300.0, 101, "SSUET2", 's');//Error
acc[2] = new Account(400.0, 102, "SSUET3", 's');//Error
acc[3] = new Account(500.0, 103, "SSUET4", 'c');//Error
acc[4] = new Account(600.0, 104, "SSUET5", 'c');//Error


I am getting the message:

‘]’ expected, invalid method declaration return type required. I have
attached the image and account class file. Account class is given below:

public class Account {

private double balance;

private int number;

String name;

char accType;

Account(){

balance = 0.0;

number = 0;

final String name = "0";

accType ='\0';

}

Account(double dBal, int iNum, String strName, char chAccType){

balance = dBal;

number = iNum;

name = strName;

accType = chAccType;

}

Account (Account accObj){

balance = accObj.balance;

number = accObj.number;

name = accObj.name;

accType = accObj.accType;

}

double getBalance(){

return balance;

}

int getNumber(){

return number;

}

char getAccType(){

return accType;

}

void setBalance(double b){

balance =b;

}

}



-
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
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


-
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: Package x is declared in module y which is not in the module graph

2022-01-15 Thread Helmut Leininger
Just a guess. Is there a module-info file? If yes, you may try to delete it



Mit freundlichen Grüßen 
Helmut Leininger 

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Am 15. Jänner 2022 23:00:46 MEZ schrieb "Jack W." :
>Not sure what's exporting to what, then.
>This is a one-file project.
>What is the brilliant idea here that I am missing by which Java imports
>work completely differently than they have for almost 30 years?
>
>On Sat, Jan 15, 2022 at 12:40 PM Mark A. Flacy 
>wrote:
>
>> Greetings,
>>
>> That's not a maven error message but one from javac.
>>
>> --
>> Mark A. Flacy
>> mfl...@verizon.net
>>
>> On 2022 M01 15, Sat 13:00:40 CST Jack W. wrote:
>> > Doesn't seem relevant, I'm not using Maven.
>> >
>> >
>> > On Sat, Jan 15, 2022 at 10:49 AM Mark A. Flacy
>> 
>> >
>> > wrote:
>> > > Greetings,
>> > >
>> > >
>> > >
>> https://stackoverflow.com/questions/57421537/java-11-package-is-declared-i
>> > > n-module-which-does-not-export-it
>> > >
>> > > --
>> > >
>> > > Mark A. Flacy
>> > >
>> > > mfl...@verizon.net
>> > >
>> > > On 2022 M01 15, Sat 10:53:21 CST Jack W. wrote:
>> > > > NB 12.6 downloaded today:
>> > > >
>> > > >
>> > > >
>> > > > I started a project and added the dependent jars to the libraries in
>> the
>> > > >
>> > > > Properties dialog.
>> > > >
>> > > >
>> > > >
>> > > > But when I do an import I get the message:
>> > > >
>> > > >
>> > > >
>> > > > Package *x* is declared in module *y* which is not in the module
>> graph
>> > > >
>> > > >
>> > > >
>> > > > I've been using NetBeans since Xelfi and have never seen this before.
>> > > >
>> > > > What is a "module graph"?
>> > > >
>> > > > How do I fix this?
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Jack Woehr   # If it doesn't work in Firefox,
>> > > >
>> > > > Box 51, Golden CO 80402  # it's broken.
>> > > >
>> > > > http://www.softwoehr.com # Just Say No to Chrome.
>> >
>> > --
>> > Jack Woehr   # If it doesn't work in Firefox,
>> > Box 51, Golden CO 80402  # it's broken.
>> > http://www.softwoehr.com # Just Say No to Chrome.
>>
>>
>>
>>
>>
>> -
>> 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
>>
>>
>
>-- 
>Jack Woehr   # If it doesn't work in Firefox,
>Box 51, Golden CO 80402  # it's broken.
>http://www.softwoehr.com # Just Say No to Chrome.


Re: Java modular project and libraries

2021-12-12 Thread Helmut Leininger

Hi Lisa,

this will most probably work. But there are some inconveniences

- In a non-modular Ant-driven project, if you add a libraries (defined
as Library in Netbeans, each may consist of one or more jar files) to
the project, during "Clean and Build" Netbeans creates a lib folder in
dist and copies the jar files into it automatically. Also, the proposed
comand to execute is adapted to this

- in a modular Ant-driven project, the libraries can be added as above
(to each module instead of the project) and can be seen in the Project
Properties/Libraries in the Modulepath.
During Clean and build, separate jar files are created in dist for each
module, but there is no lib fiolder created and the libraries' jar files
are not coped into it.

Of course, I could use your method, but this implies to address each jar
file of the referred libraries separately (they are in different
directories) and the list would not be updated automatically when new
libraries are added to the project.

Regards
Helmut

Am 13.12.2021 um 02:35 schrieb Lisa Ruby:

I use Ant, but my project is not modular, so don't know if what I do to
include jar files I need in my build will work for you, but this is what
works for me. This is an example using your jar file. You could probably
put the copy under the "-post-jar" target, rather than "-post-compile"
if you prefer:

      
          
          
      

Regards,
Lisa Ruby

On 12/12/2021 10:51 AM, Helmut Leininger wrote:

Hi,

I am using NB 12.6 and have created a Ant Java Modular project. Some
of the modules use libraries (e.g. access to databases, ...)
I can run the project from NetBeans without problems.

Clean and build suggests the following:

C:\OpenSourceTools\AdoptiumJava\jdk-17/bin/java --module-path
D:\Disk_D\Development\DivTools\ODFToolkit\simple-odf-0.8.2-incubating.jar;.
-m MeinStammbaum/mstb.GUI.MainWindow

i.e. absolute paths for the libraries used by the modules.

I would very much like to include these libraries to the distribution
(dist). Any help for how to integrate it into the build.xml would be
appreciated.

Regards
Helmut Leininger



begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


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

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

Java modular project and libraries

2021-12-12 Thread Helmut Leininger

Hi,

I am using NB 12.6 and have created a Ant Java Modular project. Some of
the modules use libraries (e.g. access to databases, ...)
I can run the project from NetBeans without problems.

Clean and build suggests the following:

C:\OpenSourceTools\AdoptiumJava\jdk-17/bin/java --module-path
D:\Disk_D\Development\DivTools\ODFToolkit\simple-odf-0.8.2-incubating.jar;.
-m MeinStammbaum/mstb.GUI.MainWindow

i.e. absolute paths for the libraries used by the modules.

I would very much like to include these libraries to the distribution
(dist). Any help for how to integrate it into the build.xml would be
appreciated.

Regards
Helmut Leininger
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


-
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

Netbeans 12.6 - nb-javac

2021-12-08 Thread Helmut Leininger

Hi,

I have seen there was (and is) some discussion about nb-javac. Is it
recommended to use it with NB 12.6 or should it be removed ?

Thanks
Helmut Leininger
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


-
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

Show Javadoc in Gradle project

2021-10-01 Thread Helmut Leininger

Hi,

in Netbeans, I can define a library with a .jar file and Javadoc (ZIP or
folder).

In an Ant-project, I can add the library and then use Show Javadoc or
Alt-F1 to get the documentation.

In a Gradle-project this does not work. How can this be achieved (given
that the jar is added in build - implementation files()).


Regards
Helmut Leininger
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


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

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

Re: Netbeans 12.3 - Gradle

2021-04-22 Thread Helmut Leininger

Thanks for the info.

Helmut

Am 22.04.2021 um 16:16 schrieb Geertjan Wielenga:

Neither Java 16 nor Gradle 7 are supported in 12.3.

But both are in 12.4, join the dev mailing list where we're currently
working on 12.4 and where we're also trying out a release candidate.

Gj

On Thu, Apr 22, 2021 at 4:14 PM Helmut Leininger 
wrote:

Hi,

I am running Netbeans 12.3 with Gradle 7.0 and Openjdk 16 on
Windows 10.

When running a Gradle task (like clean, build etc.) I get the
following error message:

Unable to watch the file system for changes
net.rubygrapefruit.platform.NativeException: Could not query file
systems: could not get volume information (errno 1005)
    at

net.rubygrapefruit.platform.internal.PosixFileSystems.getFileSystems(PosixFileSystems.java:32)

and the unterlying Java process does not seem to terminate (?).

Any ideas what I can do (besides not using one of the components) ?

Thanks and regards
Helmut Leininger


-
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

Netbeans 12.3 - Gradle

2021-04-22 Thread Helmut Leininger

Hi,

I am running Netbeans 12.3 with Gradle 7.0 and Openjdk 16 on Windows 10.

When running a Gradle task (like clean, build etc.) I get the following
error message:

Unable to watch the file system for changes
net.rubygrapefruit.platform.NativeException: Could not query file
systems: could not get volume information (errno 1005)
    at
net.rubygrapefruit.platform.internal.PosixFileSystems.getFileSystems(PosixFileSystems.java:32)

and the unterlying Java process does not seem to terminate (?).

Any ideas what I can do (besides not using one of the components) ?

Thanks and regards
Helmut Leininger
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Netbeans - Gradle - external jars

2020-08-23 Thread Helmut Leininger

Hi Laszlo,

Many thanks for hinting the right direction. I am new to Gradle and I
did not understand what I found in the internet and it did not describe
my probklem (at least what I thought).

Now, I have made these modifications in the build file:

run {
   classpath += files("${LO_HOME}/program/classes/libreoffice.jar",
"${LO_HOME}/program/classes/unoloader.jar")
}

application {
    mainClass = mainClassName

    startScripts {
    doLast {
    unixScript.text = unixScript.text
    .replace('CLASSPATH=$',
'CLASSPATH=$LO_HOME/program/classes/libreoffice.jar:$LO_HOME/program/classes/unoloader.jar:$')
    windowsScript.text = windowsScript.text
    .replace('set CLASSPATH=', 'set
CLASSPATH=%LO_HOME%\\program\\classes\\libreoffice.jar;%LO_HOME%\\program/classes\\unoloader.jar;')
    }
    }

}

It seems so simple if you have found the solution! I do not know if
there is a more elgant way, but it seems to work.

Regards
Helmut

Am 22.08.2020 um 22:53 schrieb Laszlo Kishalmi:


I guess you are using the application Gradle plugin.

1. Remove the runtimeOnly

2. Configure the run task in your Gradle script to add the required
jars only when the run task executed.

3. Use the distribution plugin (implicitly includes with application)
configuration
(https://docs.gradle.org/current/userguide/distribution_plugin.html)
to custumize your launcher scripts which could make use of the LO_HOME
environment variable. So your distribution with the scripts would be
executable as well.

On 8/22/20 9:39 AM, Helmut Leininger wrote:


Hi,

Hopefully, you can give mesome hints how to overcome my problem.

I am running Windows 10, Netbeans 12.1 with Gradle 6.6, Java 14.

I have a multi-module, multi-project application with Gradle. The
important parts of build.gradle:

...
apply plugin: 'application'
def LO_HOME = 'C:/Program Files/LibreOffice'


dependencies {
    implementation project(':Tools')
    compileOnly files("${LO_HOME}/program/classes/libreoffice.jar",
"${LO_HOME}/program/classes/unoloader.jar")
    runtimeOnly files("${LO_HOME}/program/classes/libreoffice.jar",
"${LO_HOME}/program/classes/unoloader.jar")
}


application {
    mainClass = 'LOTestsGradleMulti.Tests.SWriter'

}

The application runs ok if launched from within Netbeans. So far, so
good;
But I cannot be executed correctly from the build distribution, because:

- the LibreOffice  jars (libreoffice.jar, unoloader.jar) must reside
in their original location within LibreOffice (otherwise the LO
system cannot be found)
- for the distribution, the jars are copied into the lib fiolder
(where they cannot be used due to the above point)
- the classpath in the created execution script
set
CLASSPATH=%APP_HOME%\lib\Tests.jar;%APP_HOME%\lib\libreoffice.jar;%APP_HOME%\lib\unoloader.jar;%APP_HOME%\lib\Tools.jar

I can make it run if I change
%APP_HOME%\lib\libreoffice.jar;%APP_HOME%\lib\unoloader.jar; to refer
to the correct LibreOffice directory, either by introducing a new
variable or fixed path


What I would need:
- how can I avoid copying the jars to the lib folder ?
- how can the classpath created with the correct directory, even
better by using a variable ?
- still may be run from Netbeans

Note:
if I remove the runtimeOnly:
        - the jars are not copied to lib
        - the classpath still contains the above unusable value
        - it cannot be run from the IDE any more


Thanks in advance
Helmut Leininger


-
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: Dependent libraries don't get copied?

2019-11-04 Thread Helmut Leininger

I think it is solved in Netbeans 11.2

Helmut

Am 05.11.2019 um 03:57 schrieb Thomas Wolf:

I'm developing a pretty standard Swing application in Netbeans 11.1 on
a Mac, using Oracle Java 12.0.2+10.  While I was doing day-to-day
development, I told the IDE not to create a jar of the application
after every compile.  But now that I'm ready to give this code to
someone, I told Netbeans in Properties->Packaging to create the jar
and to copy dependent libraries.  The jar gets created in the dist/
directory, but the dependent libraries do not get copied over.  I
could have sworn that in NB 8 and older, a "lib/" directory would be
created and the dependent jars would be copied there.  Instead I get
the following build output:

Created dir: /Users/twolf/NetBeansProjects/SST/dist
Copying 1 file to /Users/twolf/NetBeansProjects/SST/build
Building jar: /Users/twolf/NetBeansProjects/SST/dist/SST.jar
To run this application from the command line without Ant, try:
/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/bin/java
-cp
/Users/twolf/java/jaxb-ri/lib/jaxb-api.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-core.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-impl.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-jxc.jar:/Users/twolf/java/jaxb-ri/lib/jaxb-xjc.jar:/Users/twolf/java/jaxb-ri/lib/javax.activation.jar:/Users/twolf/NetBeansProjects/SST/dist/SST.jar
com.spectare.sst.MainFrame
deploy:
jar:
BUILD SUCCESSFUL (total time: 3 seconds)

Is this a bug or what does "Properties->Packaging->Copy dependent
Jars" actually do?

Thanks,
tom
--
tjw...@gmail.com 
http://landofwolf.blogspot.com/ 
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Problem running application with --enable-preview

2019-10-09 Thread Helmut Leininger

Am 09.10.2019 um 20:03 schrieb Neil C Smith:
> On Wed, 9 Oct 2019 at 18:57, Helmut Leininger  wrote:
>> Setting Compile on Save to OFF did the trick.
> Great!  Think that's caused by the issue with shipping the right
> nb-javac that's delaying beta3.
>
>> User directory: C:\Users\hl\AppData\Roaming\NetBeans\11.0
>>
>> Even if I delete it and restart Netbeans, it is recreated (and not 
>> ...\11.2-beta2)
> Where did you get the beta from?  Installer, binary zip or source zip 
> download?
I do not remember exactly. But I found the download address in some of
the mailinglist archives, and itmust have been from Jenkins. A binary zip.
>
> What does the etc/netbeans.conf file say for userdir?
This will be the explanation for the wrong userdir. I did not overwrite
netbeans.conf when extracting beta-2
>
> Thanks,
>
> Neil
Helmut
<>

signature.asc
Description: OpenPGP digital signature


Re: Problem running application with --enable-preview

2019-10-09 Thread Helmut Leininger
Neil,

Setting Compile on Save to OFF did the trick.

> User directory: C:\Users\hl\AppData\Roaming\NetBeans\11.0

Even if I delete it and restart Netbeans, it is recreated (and not
...\11.2-beta2)

Regards


Am 09.10.2019 um 19:21 schrieb Neil C Smith:
> On Wed, 9 Oct 2019 at 14:57, Helmut Leininger  wrote:
>> java.lang.UnsupportedClassVersionError: testapachepoi/TestApachePOI 
>> (class file version 56.65535) was compiled with preview features that are 
>> unsupported. This version of the Java Runtime only recognizes preview 
>> features for class file version 57.65535
> This looks suspicious.  It looks like you're compiling with Java 12,
> which makes me think it's the fact that we don't in beta2 have
> complete Java 13 support still.  Or you've got it set to 12?
>
> Under project properties and Build / Compiling does making sure
> Compile on Save is off and Run Compilation in ExternalVM is on make
> any difference?
>
>> User directory: C:\Users\hl\AppData\Roaming\NetBeans\11.0
> Is 11.0 there by choice?  Or do we have a bug?  It should be using 11.2-beta2
>
> Best wishes,
>
> Neil
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
<>

signature.asc
Description: OpenPGP digital signature


Re: Problem running application with --enable-preview

2019-10-09 Thread Helmut Leininger
Unfortunately, it does not help too much.

I see two diferences with the video:
1) in the video netbeans is run on Java 1.8, I am running on Java 13
(and I don't know why I should change)
2) in the video it seems to use Maven, I am using Ant (which should not
make a difference)


Am 09.10.2019 um 16:02 schrieb Geertjan Wielenga:
> https://www.youtube.com/watch?v=ciK5qzJsSTc
>
> Hope it helps,
>
> Gj
>
> On Wed, Oct 9, 2019 at 3:57 PM Helmut Leininger  <mailto:h.leinin...@gmx.at>> wrote:
>
> Hi,
>
> I have a small test program using --enable-preview set for compile
> and run.
>
> The program compiles without error, but whun runnning it from
> within the IDE, it fails with this error message:
> Fehler: Beim Laden der Klasse testapachepoi.TestApachePOI ist ein
> LinkageError aufgetreten
>     java.lang.UnsupportedClassVersionError:
> testapachepoi/TestApachePOI (class file version 56.65535) was
> compiled with preview features that are unsupported. This version
> of the Java Runtime only recognizes preview features for class
> file version 57.65535
>
> My configuration:*
> Product Version:* Apache NetBeans IDE 11.2-beta2
>
> *Java:* 13; OpenJDK 64-Bit Server VM 13+33
>
> *Runtime:* OpenJDK Runtime Environment 13+33
>
> *System:* Windows 10 version 10.0 running on amd64; Cp1252; de_AT
> (nb)
>
> *User directory:* C:\Users\hl\AppData\Roaming\NetBeans\11.0
>
> *Cache directory:* C:\Users\hl\AppData\Local\NetBeans\Cache\11.0
>
>
> Remarks:
> - The only Java version installed is AdoptOpenJDK 13
> - the program can be launched from the command line without any
> problem.
>
>
> Regards
> Helmut
>
<>

signature.asc
Description: OpenPGP digital signature


Problem running application with --enable-preview

2019-10-09 Thread Helmut Leininger
Hi,

I have a small test program using --enable-preview set for compile and run.

The program compiles without error, but whun runnning it from within the
IDE, it fails with this error message:
Fehler: Beim Laden der Klasse testapachepoi.TestApachePOI ist ein
LinkageError aufgetreten
    java.lang.UnsupportedClassVersionError: testapachepoi/TestApachePOI
(class file version 56.65535) was compiled with preview features that
are unsupported. This version of the Java Runtime only recognizes
preview features for class file version 57.65535

My configuration:*
Product Version:* Apache NetBeans IDE 11.2-beta2

*Java:* 13; OpenJDK 64-Bit Server VM 13+33

*Runtime:* OpenJDK Runtime Environment 13+33

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

*User directory:* C:\Users\hl\AppData\Roaming\NetBeans\11.0

*Cache directory:* C:\Users\hl\AppData\Local\NetBeans\Cache\11.0


Remarks:
- The only Java version installed is AdoptOpenJDK 13
- the program can be launched from the command line without any problem.


Regards
Helmut



signature.asc
Description: OpenPGP digital signature


Gradle openjdk12 and --enable-preview

2019-08-01 Thread Helmut Leininger
Hi,

I want to use the preview features in the Gradle project.

in build.grdle I specified:

compileJava {
    options.compilerArgs << '--enable-preview'
}

run {
    jvmArgs(['--enable-preview'])
}

In the  program I am using the new swich format:

switch (string) {
    case"a123" -> System.out.println("a123");
    ...
}

It compiles and runs ok. But when I have the "old" switch format in the
source, I do not get the hint "convert to rule switch"

Can this be enabled, too ?

Regards
Helmut



<>

signature.asc
Description: OpenPGP digital signature


Re: Refactoring Error when moving/renaming class.

2019-07-05 Thread Helmut Leininger
see https://issues.apache.org/jira/browse/NETBEANS-2786?filter=-2


Am 05.07.2019 um 08:33 schrieb Mark J Koch:
> I found this log under Notifications tab in the IDE and it seems to have the 
> stack trace near the end.
>
>
>
>
>> On Jul 4, 2019, at 11:18 PM, Mark J Koch  wrote:
>>
>> On NB 10 and also 11.1. I get this popup error when attempting to rename a 
>> Java class or move it to a new package.   It tells me to look in var/logs 
>> for any error message but I’m not seeing any Java or NB related logs.   OSX 
>> Mohave does not seem to have a /var/log/messages at all on my system.
>>
>> If I let the move proceed,  I see some changes in some files, usually 
>> outside the package or module that refers to these name changes,  but the 
>> immediate package/module doesn’t make changes.
>>
>>
>>
>> Mark Koch
>>
>>
>> 
>
>
> -
> 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
<>

signature.asc
Description: OpenPGP digital signature


Re: JTable - Null Pointer - GUI editor

2019-06-27 Thread Helmut Leininger
Michael,

I can execute it without problems., initialize for PrescriptionTable is
executed when it is created (from the menu Display/Prescriptons)



What did you specifiy as Main Class? It should be PrescriptionDisplay

Rergards

Am 27.06.2019 um 18:20 schrieb mmo...@me.com:
> Here it is.
>
> Best Regards,
>
> Michael
> On Jun 27, 2019, 8:32 AM -0700, Helmut Leininger ,
> wrote:
>>
>> somewhere in the cloud (Dropbox, ) or zip it and send me.
>>
>>
>> Am 27.06.2019 um 17:26 schrieb mmo...@me.com:
>>> Debugger says different.
>>>
>>> Where can I upload it? 
>
>>>
>>> Best Regards,
>>>
>>> Michael
>>> On Jun 27, 2019, 8:24 AM -0700, Helmut Leininger
>>> , wrote:
>>>>
>>>> Michael,
>>>>
>>>> I am sorry, but I do not believe it. If you have "new NewJFrame()"
>>>> somewhere and you execute it, the constructor gets executed, too.
>>>> If not, You made an error (not calling new NewJFrame())
>>>>
>>>> Upload (or post) the whole program.
>>>>
>>>> Regards
>>>>
>>>> Am 27.06.2019 um 17:17 schrieb mmo...@me.com:
>>>>> All well in good but the problem is:
>>>>>
>>>>> initComponents(); is not being executed.
>>>>>
>>>>> The program goes right to my code bypassing the constructor and
>>>>> generated code.
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Michael
>>>>> On Jun 26, 2019, 11:50 PM -0700, Helmut Leininger
>>>>> , wrote:
>>>>>>
>>>>>> Michael,
>>>>>>
>>>>>> I assume you have created your GUI by New JFrame Form", right? At
>>>>>> least, I hope so.
>>>>>>
>>>>>> if you look at main() you will find something like:
>>>>>> new NewJFrame() ...
>>>>>>
>>>>>> NewJFrame ist the name you have given during the creation of your
>>>>>> class / form. This creates the form and first executes its
>>>>>> Constructor (public NewJFrame()). In this constructor, the first
>>>>>> is the call for initialize() (which does all initialization and
>>>>>> creation of the objects). If you want to add your personal
>>>>>> initializations, you would have to do this after initialize(),
>>>>>> probably in the same Constructor.
>>>>>>
>>>>>> If you are not sure about how to create GUI with or without
>>>>>> Netbeans, you will find several tutorials / videos in the Internet.
>>>>>>
>>>>>> Regards
>>>>>> Helmut
>>>>>>
>>>>>> Am 26.06.2019 um 21:21 schrieb mmo...@me.com:
>>>>>>> Thanks Helmut,
>>>>>>>
>>>>>>> I did use the debugger, first time for everything, and I found
>>>>>>> the initcomponents() is not being executed. I am under the
>>>>>>> impression that it is handled by NetBeans.
>>>>>>>
>>>>>>> I call the class:
>>>>>>>
>>>>>>> displays.PresciptionTable scripts = new
>>>>>>> displays.PrescriptionTable();
>>>>>>>
>>>>>>> Best Regards,
>>>>>>>
>>>>>>> Michael
>>>>>>> On Jun 26, 2019, 12:02 PM -0700, Helmut Leininger
>>>>>>> , wrote:
>>>>>>>> Michael,
>>>>>>>> I strongly recommend to use the debugger. This will most
>>>>>>>> probably be the most efficient method to locate tje problem.
>>>>>>>>
>>>>>>>> - set a breakpoint on the line causing the ecception
>>>>>>>> - run the program with Debug
>>>>>>>> - when the program stops at the breakpoint inspect the variables
>>>>>>>>
>>>>>>>> As alternative you would have to print out every variable or
>>>>>>>> uplpad the whole program.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Helmut
>>>>>>>>
>>>>>>>> Am 26. Juni 2019 20:15:00 MESZ schrieb mmo...@me.com:
>>>>>>>>
>>>>>>>&g

Re: JTable - Null Pointer - GUI editor

2019-06-27 Thread Helmut Leininger
Michael,

I am sorry, but I do not believe it. If you have "new NewJFrame()"
somewhere and you execute it, the constructor gets executed, too. If
not, You made an error (not calling new NewJFrame())

Upload (or post) the whole program.

Regards

Am 27.06.2019 um 17:17 schrieb mmo...@me.com:
> All well in good but the problem is:
>
> initComponents(); is not being executed.
>
> The program goes right to my code bypassing the constructor and
> generated code.
>
> Best Regards,
>
> Michael
> On Jun 26, 2019, 11:50 PM -0700, Helmut Leininger
> , wrote:
>>
>> Michael,
>>
>> I assume you have created your GUI by New JFrame Form", right? At
>> least, I hope so.
>>
>> if you look at main() you will find something like:
>> new NewJFrame() ...
>>
>> NewJFrame ist the name you have given during the creation of your
>> class / form. This creates the form and first executes its
>> Constructor (public NewJFrame()). In this constructor, the first is
>> the call for initialize() (which does all initialization and creation
>> of the objects). If you want to add your personal initializations,
>> you would have to do this after initialize(), probably in the same
>> Constructor.
>>
>> If you are not sure about how to create GUI with or without Netbeans,
>> you will find several tutorials / videos in the Internet.
>>
>> Regards
>> Helmut
>>
>> Am 26.06.2019 um 21:21 schrieb mmo...@me.com:
>>> Thanks Helmut,
>>>
>>> I did use the debugger, first time for everything, and I found the
>>> initcomponents() is not being executed. I am under the impression
>>> that it is handled by NetBeans.
>>>
>>> I call the class:
>>>
>>> displays.PresciptionTable scripts = new displays.PrescriptionTable();
>>>
>>> Best Regards,
>>>
>>> Michael
>>> On Jun 26, 2019, 12:02 PM -0700, Helmut Leininger , wrote:
>>>> Michael,
>>>> I strongly recommend to use the debugger. This will most probably
>>>> be the most efficient method to locate tje problem.
>>>>
>>>> - set a breakpoint on the line causing the ecception
>>>> - run the program with Debug
>>>> - when the program stops at the breakpoint inspect the variables
>>>>
>>>> As alternative you would have to print out every variable or uplpad
>>>> the whole program.
>>>>
>>>> Regards
>>>> Helmut
>>>>
>>>> Am 26. Juni 2019 20:15:00 MESZ schrieb mmo...@me.com:
>>>>
>>>>> did you initzialize num and row ?
>>>>>
>>>>> Yes I tried both 0 & 1. I used System.out.println(num) and it
>>>>> contains data.
>>>>>
>>>>> scriptTable.setModel(new javax.swing.table.DefaultTableModel(
>>>>>
>>>>>             new Object [][] {
>>>>>
>>>>>                 {null, null, null, null, null, null, null, null},
>>>>>
>>>>>                 {null, null, null, null, null, null, null, null},
>>>>>
>>>>>                 {null, null, null, null, null, null, null, null},
>>>>>
>>>>>                 {null, null, null, null, null, null, null, null}
>>>>>
>>>>>             }
>>>>>
>>>>> Same problem and this code is generated by NetBeans
>>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Michael
>>>> On Jun 26, 2019, 11:02 AM -0700, Helmut Leininger
>>>> , wrote:
>>>>>
>>>>> Once again:
>>>>>
>>>>> did you initzialize num and row ?
>>>>>
>>>>> When I design your example, I get:
>>>>>
>>>>> ...
>>>>> scriptTable.setModel(new javax.swing.table.DefaultTableModel(
>>>>> new Object [][] {
>>>>> {null, null, null, null},
>>>>> {null, null, null, null},
>>>>> {null, null, null, null},
>>>>> {null, null, null, null}
>>>>> },
>>>>> new String [] {
>>>>> "Title 1", "Title 2", "Title 3", "Title 4"
>>>>> }
>>>>> ));
>>>>> ...
>>>>>
>>>>> Where are your nulls for new Object[][] ?
>>>>>
>>>>>
>>>>> Helmut
>>>>>
>>>>> Am 26.06.2019 um 19:45 schrieb mmo...@me.com.INVALID:
>>>>>> scriptTable.getModel().setValueAt(num, row, 2)
>>>>
>>>>
>>>> --
>>>> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
<>

signature.asc
Description: OpenPGP digital signature


Re: JTable - Null Pointer - GUI editor

2019-06-27 Thread Helmut Leininger
Michael,

I assume you have  created your GUI by New JFrame Form", right? At
least, I hope so.

if you look at main() you will find something like:
    new NewJFrame() ...

NewJFrame ist the name you have given during the creation of your class
/ form. This creates the form and first executes its Constructor (public
NewJFrame()). In this constructor, the first is the call for
initialize() (which does all initialization and creation of the
objects). If you want to add your personal initializations, you would
have to do this after initialize(), probably in the same Constructor.

If you are not sure about how to create GUI with or without Netbeans,
you will find several tutorials / videos in the Internet.

Regards
Helmut

Am 26.06.2019 um 21:21 schrieb mmo...@me.com:
> Thanks Helmut,
>
> I did use the debugger, first time for everything, and I found the
> initcomponents() is not being executed. I am under the impression that
> it is handled by NetBeans.
>
> I call the class:
>
> displays.PresciptionTable scripts = new displays.PrescriptionTable();
>
> Best Regards,
>
> Michael
> On Jun 26, 2019, 12:02 PM -0700, Helmut Leininger , wrote:
>> Michael,
>> I strongly recommend to use the debugger. This will most probably be
>> the most efficient method to locate tje problem.
>>
>> - set a breakpoint on the line causing the ecception
>> - run the program with Debug
>> - when the program stops at the breakpoint inspect the variables
>>
>> As alternative you would have to print out every variable or uplpad
>> the whole program.
>>
>> Regards
>> Helmut
>>
>> Am 26. Juni 2019 20:15:00 MESZ schrieb mmo...@me.com:
>>
>>> did you initzialize num and row ?
>>>
>>> Yes I tried both 0 & 1. I used System.out.println(num) and it
>>> contains data.
>>>
>>> scriptTable.setModel(new javax.swing.table.DefaultTableModel(
>>>
>>>             new Object [][] {
>>>
>>>                 {null, null, null, null, null, null, null, null},
>>>
>>>                 {null, null, null, null, null, null, null, null},
>>>
>>>                 {null, null, null, null, null, null, null, null},
>>>
>>>                 {null, null, null, null, null, null, null, null}
>>>
>>>             }
>>>
>>> Same problem and this code is generated by NetBeans
>>>
>>
>> Best Regards,
>>
>> Michael
>> On Jun 26, 2019, 11:02 AM -0700, Helmut Leininger
>> , wrote:
>>>
>>> Once again:
>>>
>>> did you initzialize num and row ?
>>>
>>> When I design your example, I get:
>>>
>>> ...
>>> scriptTable.setModel(new javax.swing.table.DefaultTableModel(
>>> new Object [][] {
>>> {null, null, null, null},
>>> {null, null, null, null},
>>> {null, null, null, null},
>>> {null, null, null, null}
>>> },
>>> new String [] {
>>> "Title 1", "Title 2", "Title 3", "Title 4"
>>> }
>>> ));
>>> ...
>>>
>>> Where are your nulls for new Object[][] ?
>>>
>>>
>>> Helmut
>>>
>>> Am 26.06.2019 um 19:45 schrieb mmo...@me.com.INVALID:
>>>> scriptTable.getModel().setValueAt(num, row, 2)
>>
>>
>> --
>> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


signature.asc
Description: OpenPGP digital signature


Re: jFrame - jDesktopPane

2019-06-22 Thread Helmut Leininger
Hi Michael,

I am not sure I understand your problem. But you should see the
generated names in the Navigator window (CTRL+7) even in design mode.

Regards
Helmut

Am 22.06.2019 um 01:07 schrieb mmo...@me.com.INVALID:
> I’m new to NetBeans GUI design and of course I’m having a problem.
>
> I created an Ant JFrame project and put a JDesktopPane on top.
>
> I’ve dragged 2 internal frames, a panel and a couple of buttons.
>
> Looking at the source variables have been generated but they are not
> visible in design mode.
>
> I’ve searched a bunch of websites including NetBeans but have been
> unable to find an answer.
>
> What simple thing am I missing?
>
> Michael
>
> There are 10 types of people in the world,
> those that understand binary and those that don't.
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Netbeans 11.1 and netbeans_jdkhome in netbeans.conf

2019-06-19 Thread Helmut Leininger
Another question:

after Netbeans has started, did you select the correct Java platform to
compile your project ?

Helmut

Am 19.06.2019 um 14:11 schrieb Helmut Leininger:
>
> Hi Juan Miguel,
>
> you are sure the directory is .../Contents/Home ? For me, it looks a
> bit weird.
>
> Did you eventually specify --jdkhome argument on the comand line (I
> think it would overrride the settings in .conf) ? Or did you modify
> the the netbeans start script ?
>
> Helmut
>
> Am 19.06.2019 um 13:43 schrieb Juan Miguel Escribano:
>> HI Helmut,
>>
>> Thank for your answer but I have netbeans.conf file edited with the line:
>>
>>>> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home”
>>
>> and Netbeans 11.1 still run on jdk 12
>>
>>
>> Best,
>> /Juan Miguel/
>> El 19 jun 2019 12:44 +0200, Helmut Leininger ,
>> escribió:
>>>
>>> I have/had the same problem. You may edit the file
>>> /netbeans/etc/netbeans.conf and set the jdkhome directory. E.g.
>>>
>>> #netbeans_jdkhome="/path/to/jdk"
>>> netbeans_jdkhome="C:\OpenSourceTools\jdk-12"
>>>
>>> Regards
>>> Helmut
>>> Am 18.06.2019 um 19:52 schrieb Juan Miguel Escribano:
>>>> Hi,
>>>>
>>>> I have started to test Netbeans 11.1 and I can not make it start on
>>>> JDK 8 with the netbeans_jdkhome parameter in netbeans.conf file.
>>>>
>>>> In my netbeans.conf file for Netbeans 11.0 I have the following line:
>>>> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home”
>>>>
>>>> And Netbeans 11.0 start on jdk 8.
>>>>
>>>> But Netbeans 11.1 starts on jdk 12 with the same line in netbeans.conf
>>>>
>>>> I have installed in my system jdk 8 and jdk 12, but for one project
>>>> I need Netbeans to start on jdk 8 because the project uses
>>>> WebServices and build fails if Netbeans is over jdk 12.
>>>>
>>>> Any ideas of what can be happening?
>>>>
>>>> Best,
>>>> /Juan Miguel/
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Netbeans 11.1 and netbeans_jdkhome in netbeans.conf

2019-06-19 Thread Helmut Leininger
Hi Juan Miguel,

you are sure the directory is .../Contents/Home ? For me, it looks a bit
weird.

Did you eventually specify --jdkhome argument on the comand line (I
think it would overrride the settings in .conf) ? Or did you modify the
the netbeans start script ?

Helmut

Am 19.06.2019 um 13:43 schrieb Juan Miguel Escribano:
> HI Helmut,
>
> Thank for your answer but I have netbeans.conf file edited with the line:
>
>>> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home”
>
> and Netbeans 11.1 still run on jdk 12
>
>
> Best,
> /Juan Miguel/
> El 19 jun 2019 12:44 +0200, Helmut Leininger ,
> escribió:
>>
>> I have/had the same problem. You may edit the file
>> /netbeans/etc/netbeans.conf and set the jdkhome directory. E.g.
>>
>> #netbeans_jdkhome="/path/to/jdk"
>> netbeans_jdkhome="C:\OpenSourceTools\jdk-12"
>>
>> Regards
>> Helmut
>> Am 18.06.2019 um 19:52 schrieb Juan Miguel Escribano:
>>> Hi,
>>>
>>> I have started to test Netbeans 11.1 and I can not make it start on
>>> JDK 8 with the netbeans_jdkhome parameter in netbeans.conf file.
>>>
>>> In my netbeans.conf file for Netbeans 11.0 I have the following line:
>>> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home”
>>>
>>> And Netbeans 11.0 start on jdk 8.
>>>
>>> But Netbeans 11.1 starts on jdk 12 with the same line in netbeans.conf
>>>
>>> I have installed in my system jdk 8 and jdk 12, but for one project
>>> I need Netbeans to start on jdk 8 because the project uses
>>> WebServices and build fails if Netbeans is over jdk 12.
>>>
>>> Any ideas of what can be happening?
>>>
>>> Best,
>>> /Juan Miguel/
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Netbeans 11.1 and netbeans_jdkhome in netbeans.conf

2019-06-19 Thread Helmut Leininger
I have/had the same problem. You may edit the file
/netbeans/etc/netbeans.conf and set the jdkhome directory. E.g.

#netbeans_jdkhome="/path/to/jdk"
netbeans_jdkhome="C:\OpenSourceTools\jdk-12"

Regards
Helmut
Am 18.06.2019 um 19:52 schrieb Juan Miguel Escribano:
> Hi,
>
> I have started to test Netbeans 11.1 and I can not make it start on
> JDK 8 with the netbeans_jdkhome parameter in netbeans.conf file.
>
> In my netbeans.conf file for Netbeans 11.0 I have the following line:
> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home”
>
> And Netbeans 11.0 start on jdk 8.
>
> But Netbeans 11.1 starts on jdk 12 with the same line in netbeans.conf
>
> I have installed in my system jdk 8 and jdk 12, but for one project I
> need Netbeans to start on jdk 8 because the project uses WebServices
> and build fails if Netbeans is over jdk 12.
>
> Any ideas of what can be happening?
>
> Best,
> /Juan Miguel/
<>
-
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

Netbeans keeps asking for Certificate

2019-06-15 Thread Helmut Leininger
Hi,

every time (after new start of Netbeans) when I start editing a .fxml
file, Netbeans asks for accepting a license from Oracle.


What can I do to accept this permanently ?

Regards
Helmut


<>

signature.asc
Description: OpenPGP digital signature


Re: Netbeans - FavaFX - FXML: Location not set

2019-06-15 Thread Helmut Leininger
Hi,

after trying at least 15 of the supposed solutions without success, I
found the problem.

It was a simple LowerCase/UpperCase mixup:

 Windows is niot case-sensitive in filename --> running from IDE is ok.
Java Runtimes are case-sensitive when searching in the .jar file -->
problem (fenster1.fxml <--> Fenster1.fxml)

Thanks
Helmut

Am 15.06.2019 um 12:23 schrieb Geertjan Wielenga:
> When I google ‘JavaFX location is not set’, I see quite a few
> responses and solutions.
>
> Gj
>
>
> On Sat, 15 Jun 2019 at 11:42, Helmut Leininger  <mailto:h.leinin...@gmx.at>> wrote:
>
> Hi,
>
> I do not know if this is the correct place to ask.
>
> I am running Windows10, netbeans 11,openjdk 12, javafx 12.
>
> I am developping a modular javafx application, using Ant (i.e. no
> Maven,
> no Gradle).
>
> I have several modules (Mainmodule, Tools, UI). In the UI module
> is the
> package MainWindow, where the MainApp, all controllers and all
> FXML-files reside.
> In the MainController, when a certain Button is clicked, I open
> another
> Window (of the same package).
>
> The code sniplet:
>
> FXMLLoader fxmlLoader =3D new
> FXMLLoader(getClass().getResource("fenster1.fxml"));
> System.out.println("Location: " + fxmlLoader.getLocation());
> Parent rootFenster1 =3D (Parent) fxmlLoader.load ();
> Fenster1 =3D new Stage();
> ...
>
>
> This works well when run from the IDE. When run from the comand
> line, I
> get the following errors whenn trying to open the second window:
>
> dist>C:\OpenSourceTools\jdk-12/bin/java
> --module-path=3D%JAVAFX_HOME%\lib
> --add-modules=3Djavafx.controls,javafx.fxml -cp UI.jar
> MainWindow.MainApp
> Location: null
> java.lang.IllegalStateException: Location is not set.
> at
> javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2459)
> at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435
>
>
> What has to be done that the FXMLLoader can find the FXML file
> also when
> run from the comand line?
>
> Regards
>
> Helmut
>
<>

signature.asc
Description: OpenPGP digital signature


Re: Netbeans 11 - Integrity of the release

2019-05-22 Thread Helmut Leininger
Hi,

I think you downloaded the *binary* and tried to verify it with a *key
for the source*.

Helmut


Am 22.05.2019 um 16:23 schrieb Eduardo Quintanilla:
>
> Hi,
>
>  
>
> I downloaded Netbeans 11[1] and got an error when verifying the
> signature[3] of the downloaded zip.
>
> I got the KEYS from [2].
>
>  
>
> [1] -
> https://us.mirrors.quenda.co/apache/incubator/netbeans/incubating-netbeans/incubating-11.0/incubating-netbeans-11.0-bin.zip
>
> [2] - https://www.apache.org/dist/incubator/netbeans/KEYS
>
> [3] -
> https://www.apache.org/dist/incubator/netbeans/incubating-netbeans/incubating-11.0/incubating-netbeans-11.0-source.zip.asc
>
>  
>
> I opened a Command Line in Windows 10 and executed GnuPG for Windows
> version 2.2.11:
>
>  
>
> gpg --import KEYS.txt
>
> gpg --verify incubating-netbeans-11.0-source.zip.asc.txt
> incubating-netbeans-11.0-bin.zip
>
>  
>
> Output:
>
> gpg: Signature made 03/20/19 02:27:54 Central Standard Time (Mexico)
>
> gpg:    using RSA key 79C8F02A726E9EF53646D712B2BF814FA145CB2D
>
> gpg: BAD signature from "Laszlo Kishalmi (CODE SIGNING KEY)
> " [unknown]
>
>  
>
> Is the validation process correct? Is there an error with the KEYS or
> the downloaded file?
>
>  
>
> Best regards,
>
> *Eduardo Quintanilla *
>
> /Software Developer/
>
>  
>
> Email Signature
>
>    
>  
> The information transmitted is intended only for the person or entity
> to which it is addressed and may contain confidential and/or
> privileged material. Any review, retransmission, dissemination or
> other use of, or taking of any action in reliance upon, this
> information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer.
> La información transmitida está destinada únicamente a la persona o
> entidad a quien que va dirigida y puede contener información
> confidencial y/o material privilegiado. Cualquier revisión,
> retransmisión, difusión u otros usos, o cualquier acción tomada por
> personas o entidades distintas al destinatario basándose en esta
> información está prohibida. Si usted recibe este mensaje por error,
> por favor contacte al remitente y elimine el material de cualquier
> computadora.
>
<>
-
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

javadoc for JavaFX in Netbeans 11

2019-04-14 Thread Helmut Leininger
Hi,

I am running Netbeans 11 on Windows 10,  openjdk-11, openjfx-12.

How do I get javadoc for JavaFX to work? Whatever I try, I get the error
message  "Cannot perform Show Javadoc here".

Note:
Javadoc for openjdk is ok.

Regards
Helmut



signature.asc
Description: OpenPGP digital signature


Re: Netbeans 10.0 - doesn't start

2019-02-19 Thread Helmut Leininger
Hi,

just another remark:

the same problem happens if you have created a Netbeans Platform
Application. You must specify --jdkhome=%JAVA_HOME% on the comand line
for the launcher. It seems that the launcher does not read netbeans.conf
(or too late).

Helmut

Am 19.02.2019 um 15:02 schrieb Helmut Leininger:
>
> Hi,
>
> which Java version do you have? Oracle java or openjdk ?
>
> I  had to specify    --jdkhome "C:\OpenSourceTools\jdk-11" on
> netbeans64.exe to make it run.
>
> Helmut
>
> Am 19.02.2019 um 14:50 schrieb Davide Moschini:
>>
>> I've just downloaded |Netbeans 10.0| and on a Windows 10 64 bit it
>> doesn't start when i execute |netbeans64.exe| (not even
>> with |netbeans.exe|)
>>
>> I removed all the previous java installations and
>> installed |jdk-11.0.2+9| and |jdk-11.0.2+9-jre|.
>>
>> Also change the path in the netbeans configuration file to the right
>> java path.
>>
>> Configured the environment variables |PATH| and |JAVA_HOME|.
>>
>> When I try to run the app nothing happens.
>>
>> Somebody else with same issue?
>>
>>
>> Also wrote this question
>> on 
>> https://stackoverflow.com/questions/54764657/netbeans-10-0-doesnt-start-in-windows-10-os
<>

signature.asc
Description: OpenPGP digital signature


Re: Netbeans 10.0 - doesn't start

2019-02-19 Thread Helmut Leininger
Hi,

which Java version do you have? Oracle java or openjdk ?

I  had to specify    --jdkhome "C:\OpenSourceTools\jdk-11" on
netbeans64.exe to make it run.

Helmut

Am 19.02.2019 um 14:50 schrieb Davide Moschini:
>
> I've just downloaded |Netbeans 10.0| and on a Windows 10 64 bit it
> doesn't start when i execute |netbeans64.exe| (not even
> with |netbeans.exe|)
>
> I removed all the previous java installations and
> installed |jdk-11.0.2+9| and |jdk-11.0.2+9-jre|.
>
> Also change the path in the netbeans configuration file to the right
> java path.
>
> Configured the environment variables |PATH| and |JAVA_HOME|.
>
> When I try to run the app nothing happens.
>
> Somebody else with same issue?
>
>
> Also wrote this question
> on 
> https://stackoverflow.com/questions/54764657/netbeans-10-0-doesnt-start-in-windows-10-os
<>

signature.asc
Description: OpenPGP digital signature


Re: Cannot execute Netbeans 10.0 platform application openjdk-11 Windows10

2019-02-02 Thread Helmut Leininger
I tried in Virtualbox / Ubuntu and it starts using the generated script
with default settings (no need to edit netbeans.conf).

Note:

There is a syntax error (quotes not closed) in the generated netbeans. conf:
#
# Cachedir must be different from userdir. The same cachedir and userdir
# would cause problems.
#

default_userdir="${DEFAULT_USERDIR_ROOT}/dev"
default_cachedir=""${DEFAULT_CACHEDIR_ROOT}/dev"

Regards
Helmut

Am 02.02.2019 um 15:19 schrieb Emilian Bold:
> So it looks like your exe isn't reading the conf file for some reason.
> Can you start the app on a Linux machine? Then we see if it's an .exe
> launcher issue or a general configuration issue you have.
>
> --emi
>
> On Sat, Feb 2, 2019 at 2:27 PM Helmut Leininger  wrote:
>> Hi,
>>
>> I just found a bypass. It works if xxx.exe --jdkhome is specified.
>>
>> Regards
>> Helmut
>>
>> Am 02.02.2019 um 13:22 schrieb Helmut Leininger:
>>
>> Sorry, it is Netbeans 10.
>>
>> Am 02.02.2019 um 13:06 schrieb Helmut Leininger:
>>
>> Hi,
>>
>> I  am running on Windows10, Netbeans 9.0, Java openjdk-11.
>>
>> I have a Netbeans platform application which runs ok when started within 
>> Netbeans.
>>
>> When started from the launcher (xxx.exe), you get a message "Cannot find 
>> Java 1.8 or higher" and the program aborts. JAVA_HOME and netbeans_jdkhome 
>> in netbeans.conf is ok. What can be done?
>>
>> NB:
>> Other Java applications developped with Netbeans 9.0 not using Platform 
>> execute well. If I install Oracle Java in addition to openjdk, the 
>> applications runs ok without changing the settings.
>>
>> Regards
>> Helmut
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Cannot execute Netbeans 10.0 platform application openjdk-11 Windows10

2019-02-02 Thread Helmut Leininger
Hi,

I just found a bypass. It works if xxx.exe --jdkhome is specified.

Regards
Helmut

Am 02.02.2019 um 13:22 schrieb Helmut Leininger:
>
> Sorry, it is Netbeans 10.
>
> Am 02.02.2019 um 13:06 schrieb Helmut Leininger:
>>
>> Hi,
>>
>> I  am running on Windows10, Netbeans 9.0, Java openjdk-11.
>>
>> I have a Netbeans platform application which runs ok when started
>> within Netbeans.
>>
>> When started from the launcher (xxx.exe), you get a message "Cannot
>> find Java 1.8 or higher" and the program aborts. JAVA_HOME and
>> netbeans_jdkhome in netbeans.conf is ok. What can be done?
>>
>> NB:
>> Other Java applications developped with Netbeans 9.0 not using
>> Platform execute well. If I install Oracle Java in addition to
>> openjdk, the applications runs ok without changing the settings.
>>
>> Regards
>> Helmut
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<>
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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

Re: Cannot execute Netbeans 10.0 platform application openjdk-11 Windows10

2019-02-02 Thread Helmut Leininger
Sorry, it is Netbeans 10.

Am 02.02.2019 um 13:06 schrieb Helmut Leininger:
>
> Hi,
>
> I  am running on Windows10, Netbeans 9.0, Java openjdk-11.
>
> I have a Netbeans platform application which runs ok when started
> within Netbeans.
>
> When started from the launcher (xxx.exe), you get a message "Cannot
> find Java 1.8 or higher" and the program aborts. JAVA_HOME and
> netbeans_jdkhome in netbeans.conf is ok. What can be done?
>
> NB:
> Other Java applications developped with Netbeans 9.0 not using
> Platform execute well. If I install Oracle Java in addition to
> openjdk, the applications runs ok without changing the settings.
>
> Regards
> Helmut
>
>
> -
> 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

Cannot execute Netbeans 9.0 platform application openjdk-11 Windows10

2019-02-02 Thread Helmut Leininger
Hi,

I  am running on Windows10, Netbeans 9.0, Java openjdk-11.

I have a Netbeans platform application which runs ok when started within
Netbeans.

When started from the launcher (xxx.exe), you get a message "Cannot find
Java 1.8 or higher" and the program aborts. JAVA_HOME and
netbeans_jdkhome in netbeans.conf is ok. What can be done?

NB:
Other Java applications developped with Netbeans 9.0 not using Platform
execute well. If I install Oracle Java in addition to openjdk, the
applications runs ok without changing the settings.

Regards
Helmut

<>
-
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: Trivial VC2 issue - file version of NB launchers is 9

2018-10-31 Thread Helmut Leininger
did you specify  jdkhome on the command line (netbeans.exe ?) to point
to jdk11 ? Otherwise Netbeans will use the default Java version.

Helmut

Am 31.10.2018 um 15:18 schrieb Henderson, Roy:
>
> A trivial issue I noticed after installing VC2 on W7-64 is that the
> netbeans and netbeans64 launchers show as file version 9.0 dated
> 16-08-2018.
>
>  
>
> For consistency, I would have expected these to show as file version 10.
>
>  
>
> It made me stop for a moment and question if I had somehow downloaded
> or installed NB9 by mistake.
>
>  
>
> Roy
>
> This message may contain confidential and privileged information. If
> it has been sent to you in error, please reply to advise the sender of
> the error and then immediately delete it. If you are not the intended
> recipient, do not read, copy, disclose or otherwise use this message.
> The sender disclaims any liability for such unauthorized use. PLEASE
> NOTE that all incoming e-mails sent to Weatherford e-mail accounts
> will be archived and may be scanned by us and/or by external service
> providers to detect and prevent threats to our systems, investigate
> illegal or inappropriate behavior, and/or eliminate unsolicited
> promotional e-mails (spam). This process could result in deletion of a
> legitimate e-mail before it is read by its intended recipient at our
> organization. Moreover, based on the scanning results, the full text
> of e-mails and attachments may be made available to Weatherford
> security and other personnel for review and appropriate action. If you
> have any concerns about this process, please contact us at
> datapriv...@weatherford.com. 
<>

signature.asc
Description: OpenPGP digital signature


Re: VC2 - JavaFX problems ...

2018-10-31 Thread Helmut Leininger
Hi,

Gertjaan answered tthis to a  similar question:

In the case of JavaFX, JavaFX is not in JDK 11. Nothing that NetBeans
can do about that.

It would be great to have some of those on this mailing list watching
these two YouTube screencasts that should help you:

https://www.youtube.com/watch?v=l9aoicDiQ_A

https://www.youtube.com/watch?v=RCdBmPfzeyM

The sound in these two is not always great because the first was
recorded in a hotel lobby and the second in a Chinese restaurant.

Gj

I tried and it works. But it needs to recreate to projoect as a Java
(not JavaFX) project and add JavaFX as a library. Ther sources may be
used unchanged.

Helmut
Am 31.10.2018 um 12:12 schrieb Henderson, Roy:
> Testing VC2 on W/7-64 Enterprise with JDK11.
>
> First, tried opening working JavaFX project and got messages about JDK11 not 
> being a JavaFX integrated platform. Fair enough - that is not a NB problem.
>
> So, added JDK10.0.2 as an alternate platform and tried to simply create a new 
> JavaFX / FXML sample.
>
> The sample created (as source I mean) without problem - so then tried to run:
>
> I then hit the same problem which forced me to move a major NB8.2 / JDK8 
> JavaFX project to Eclipse a few months back - not because I like Eclipse but 
> simply because it was the only way I could move forward.
>
> When I try to run my newly-created sample, I get a "Browse JavaFX Application 
> Classes window which does not contain any classes.
>
> Just thinking as I'm typing, is this because I'm running NB on JDK11 perhaps 
> even though I've specified JDK10 for the project?
>
> Any pointers would be most appreciated ...
>
> TIA,
>
> Roy
>
> -Original Message-
> From: Jiří Kovalský [mailto:jiri.koval...@oracle.com]
> Sent: 31 October 2018 09:59
> To: users@netbeans.apache.org; NetCAT team; d...@netbeans.apache.org
> Subject: [EXTERNAL] Apache NetBeans IDE 10.0 Community Acceptance Survey
>
> Hello NetBeans community,
>
>  Apache NetBeans IDE 10.0 Vote Candidate (VC) 2 [1] build has been
> published [1] and so the time for the final Community Acceptance survey
> [2] has come too. The essential purpose of this survey is to find out if
> NetBeans community accepts the latest VC build as ready for GA or not.
> Please note that this poll is not about Apache NetBeans IDE 10.0 sources
> but about its functionality and behavior.
>
>  [1]
> https://dist.apache.org/repos/dist/dev/incubator/netbeans/incubating-netbeans/incubating-10.0-vc2/incubating-netbeans-10.0-vc2-bin.zip
>  [2] https://goo.gl/forms/jCzBLA34hNZb4k5G2
>
>  This is a very important milestone of the release cycle so we turn
> to you - NetBeans users - with request for help. Please download this
> Vote Candidate, edit your Java/PHP sources, debug the code, try
> refactoring features, simply test your typical use cases and once you
> gain a solid opinion about the VC build please take this short survey.
> It will stay open until Sunday - November 11th midnight last timezone.
> In spite of that please complete the survey as soon as you can.
>
> Thanks for your cooperation and feedback!
> --
> Best regards,
> Jiří Kovalský
> https://netbeans.apache.org
>
> -
> 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
>
> This message may contain confidential and privileged information. If it has 
> been sent to you in error, please reply to advise the sender of the error and 
> then immediately delete it. If you are not the intended recipient, do not 
> read, copy, disclose or otherwise use this message. The sender disclaims any 
> liability for such unauthorized use. PLEASE NOTE that all incoming e-mails 
> sent to Weatherford e-mail accounts will be archived and may be scanned by us 
> and/or by external service providers to detect and prevent threats to our 
> systems, investigate illegal or inappropriate behavior, and/or eliminate 
> unsolicited promotional e-mails (spam). This process could result in deletion 
> of a legitimate e-mail before it is read by its intended recipient at our 
> organization. Moreover, based on the scanning results, the full text of 
> e-mails and attachments may be made available to Weatherford security and 
> other personnel for review and appropriate action. If you have any concerns 
> about this process, please contact us at datapriv...@weatherford.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
<>

signature.asc
Description: OpenPGP digital