Re: Re: Statement of disappointment

2020-03-10 Thread Bradley Willcott
I wish to make one final offering here.  I have found that looking at a 
working project has helped me to understand how things should be.


Therefore, if you are interested, go have a look at one of my open 
source projects: Markdownj CLI 


You will find everything you need to get your projects to work, and 
more.  There are a lot of twekes and extras.


Brad.

On 10/3/20 9:56 pm, Geertjan Wielenga wrote:


Did my best to help — received a ZIP file with a bunch of Java files 
and images, no NetBeans project at all.


I think a key lesson in this thread is: (1) please start a new thread 
for each problem you have, (2) please don’t send generic rants because 
(a) you yourself can probably express your problem much better by 
being concise and (b) others are going to start thinking they have 
similar points to make while in fact they have completely new points 
to make that have nothing to do with the initial point.


Please, let’s stop responding to this thread — the misunderstandings 
in just this one thread will take weeks to untangle.


Gj

On Tue, 10 Mar 2020 at 14:42, Geertjan Wielenga > wrote:




I have a strong suspicion that the image files are not actually in
the project, instead, they are somewhere outside of it.

I’m happy to spend time investigating the code, though let’s just
note that all this has nothing at all to do with this thread — a
few basic Java tutorials should be followed, I think. NetBeans is
a tool that assumes you have a basic understanding of the Java
concepts and language.

Gj

On Tue, 10 Mar 2020 at 14:38, Glenn Holmer
 wrote:

On 3/10/20 7:47 AM, Judi Rastall wrote:
> I have been doing some digging around and the first line
where an image
> is called is the line identified as giving the error.
However, this is
> part of the code generated by Netbeans when I created the
panel using
> the design feature in Netbeans. In other words, I cannot
alter it!
> Netbeans knows best!

What NetBeans is trying to say is not to edit that code
directly (which
he wisely won't allow you to do in any case). But if you click
on your
panel in design view and look over to the right at the panel
properties,
there are three buttons: "Properties", "Events", and "Code".
Click the
"Code" button and you will see a number of options for
customizing the
code that NetBeans generates.

-- 
Glenn Holmer (Linux registered user #16682)

"After the vintage season came the aftermath -- and Cenbe."

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

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


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



Re: 11.3 - Can't use "Package As" with Ant project any more

2020-03-10 Thread Chris Olsen
Hello, All --

   Regarding the Java 14 packaging tool, I see a phrase something like 
"FX-specific" things will not be supported.  I am not sure what this means.  
Does it mean that no FX features are supported, or only a few and we're not 
saying which, or ???

   And if FX is not supported in this packaging tool, where would people 
suggest going for a (low budged!) packaging tool that does support FX?

   Thanks again to all those who have worked so hard and so well on the new 
Netbeans!

   -- Chris

  

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

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



Re: 11.3 - Can't use "Package As" with Ant project any more

2020-03-10 Thread Geertjan Wielenga
That functionality appears to be related to JavaFX (
http://marxsoftware.blogspot.com/2013/11/native-java-packaging-with-netbeans-74.html),
which is no longer in the JDK, which may explain why it doesn't work (i.e.,
isn't supported anymore). The related user interface items should be
removed from NetBeans to avoid confusion.

However, since JDK 14, a new packaging tool is available:

https://openjdk.java.net/jeps/343

You should already be able to use that from the JDK 14 command line:

https://www.infoq.com/news/2019/03/jep-343-jpackage/

And work is planned to be done for creating user interface elements, i.e.,
integration in NetBeans:

https://cwiki.apache.org/confluence/display/NETBEANS/Planning%3A+12.0

Gj



On Tue, Mar 10, 2020 at 8:25 PM Thomas Kellerer  wrote:

> Thanks, that works, but unfortunately it bundles the JDK 8 rather then JDK
> 11 (which is selected for the project)
>
> Thomas
>
>
> Geertjan Wielenga schrieb am 09.03.2020 um 12:03:
> > Maybe it will still work if you run NetBeans itself on JDK 8.
> >
> > Gj
> >
> > On Mon, 9 Mar 2020 at 11:54, Thomas Kellerer  sham...@gmx.net>> wrote:
> >
> > I found it very convenient to use the "Package as Image Only"
> feature in the past.
> >
> > I have an old Ant-based project where this used to work, but when I
> tried it with the latest NetBeans 11.3, it fails because NetBeans tries to
> use some JavaFX classes.
> >
> > The error message I get when invoking "Package as -> Image Only" is:
> >
> > \nbproject\build-native.xml:519: typedef class
> com.sun.javafx.tools.ant.FXJar cannot be found
> >  using the classloader AntClassLoader[]
> >
> > Is there a way I can disable the use of JavaFX for building the
> image?
> >
> > I also tried adding JavaFX to the project as documented here:
> https://openjfx.io/openjfx-docs/#IDE-NetBeans but that doesn't make a
> difference.
> >
> > Is there anything else I need to configure, to make this work?
> >
> > Just to avoid confusion: I do not want to use JavaFX in my
> application or create an image that can use JavaFX.
> > I only want to create a binary distribution for a Java SE Swing
> application.
> >
> > I am running NetBeans with OpenJDK 13, but the target platform is
> Java 11.
> >
> > Thanks
> > Thomas
> >
> >
> > -
> > 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: 11.3 - Can't use "Package As" with Ant project any more

2020-03-10 Thread Thomas Kellerer

Thanks, that works, but unfortunately it bundles the JDK 8 rather then JDK 11 
(which is selected for the project)

Thomas


Geertjan Wielenga schrieb am 09.03.2020 um 12:03:

Maybe it will still work if you run NetBeans itself on JDK 8.

Gj

On Mon, 9 Mar 2020 at 11:54, Thomas Kellerer mailto:sham...@gmx.net>> wrote:

I found it very convenient to use the "Package as Image Only" feature in 
the past.

I have an old Ant-based project where this used to work, but when I tried 
it with the latest NetBeans 11.3, it fails because NetBeans tries to use some 
JavaFX classes.

The error message I get when invoking "Package as -> Image Only" is:

    \nbproject\build-native.xml:519: typedef class 
com.sun.javafx.tools.ant.FXJar cannot be found
     using the classloader AntClassLoader[]

Is there a way I can disable the use of JavaFX for building the image?

I also tried adding JavaFX to the project as documented here: 
https://openjfx.io/openjfx-docs/#IDE-NetBeans but that doesn't make a 
difference.

Is there anything else I need to configure, to make this work?

Just to avoid confusion: I do not want to use JavaFX in my application or 
create an image that can use JavaFX.
I only want to create a binary distribution for a Java SE Swing application.

I am running NetBeans with OpenJDK 13, but the target platform is Java 11.

Thanks
Thomas


-
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: Statement of disappointment

2020-03-10 Thread Geertjan Wielenga
Did my best to help — received a ZIP file with a bunch of Java files and
images, no NetBeans project at all.

I think a key lesson in this thread is: (1) please start a new thread for
each problem you have, (2) please don’t send generic rants because (a) you
yourself can probably express your problem much better by being concise and
(b) others are going to start thinking they have similar points to make
while in fact they have completely new points to make that have nothing to
do with the initial point.

Please, let’s stop responding to this thread — the misunderstandings in
just this one thread will take weeks to untangle.

Gj

On Tue, 10 Mar 2020 at 14:42, Geertjan Wielenga  wrote:

>
>
> I have a strong suspicion that the image files are not actually in the
> project, instead, they are somewhere outside of it.
>
> I’m happy to spend time investigating the code, though let’s just note
> that all this has nothing at all to do with this thread — a few basic Java
> tutorials should be followed, I think. NetBeans is a tool that assumes you
> have a basic understanding of the Java concepts and language.
>
> Gj
>
> On Tue, 10 Mar 2020 at 14:38, Glenn Holmer 
> wrote:
>
>> On 3/10/20 7:47 AM, Judi Rastall wrote:
>> > I have been doing some digging around and the first line where an image
>> > is called is the line identified as giving the error. However, this is
>> > part of the code generated by Netbeans when I created the panel using
>> > the design feature in Netbeans. In other words, I cannot alter it!
>> > Netbeans knows best!
>>
>> What NetBeans is trying to say is not to edit that code directly (which
>> he wisely won't allow you to do in any case). But if you click on your
>> panel in design view and look over to the right at the panel properties,
>> there are three buttons: "Properties", "Events", and "Code". Click the
>> "Code" button and you will see a number of options for customizing the
>> code that NetBeans generates.
>>
>> --
>> Glenn Holmer (Linux registered user #16682)
>> "After the vintage season came the aftermath -- and Cenbe."
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Statement of disappointment

2020-03-10 Thread Geertjan Wielenga
I have a strong suspicion that the image files are not actually in the
project, instead, they are somewhere outside of it.

I’m happy to spend time investigating the code, though let’s just note that
all this has nothing at all to do with this thread — a few basic Java
tutorials should be followed, I think. NetBeans is a tool that assumes you
have a basic understanding of the Java concepts and language.

Gj

On Tue, 10 Mar 2020 at 14:38, Glenn Holmer 
wrote:

> On 3/10/20 7:47 AM, Judi Rastall wrote:
> > I have been doing some digging around and the first line where an image
> > is called is the line identified as giving the error. However, this is
> > part of the code generated by Netbeans when I created the panel using
> > the design feature in Netbeans. In other words, I cannot alter it!
> > Netbeans knows best!
>
> What NetBeans is trying to say is not to edit that code directly (which
> he wisely won't allow you to do in any case). But if you click on your
> panel in design view and look over to the right at the panel properties,
> there are three buttons: "Properties", "Events", and "Code". Click the
> "Code" button and you will see a number of options for customizing the
> code that NetBeans generates.
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Statement of disappointment

2020-03-10 Thread Geertjan Wielenga
Just send it to my e-mail address and I’ll try to help: geert...@apache.org

Make sure the whole project is in a ZIP file, but before you create the ZIP
file, please delete the “build” folder.

Gj

On Tue, 10 Mar 2020 at 14:02, Judi Rastall  wrote:

> Netbeans gives a warning to not try and change the code it generates and
> says that it will change it back the next time I run or build the file.
> Someone did suggest loading my project into github. I have heard of github
> but have no idea of how to use it or load stuff into it. I guess this
> mailing group won't allow attachments?
>
>
> Judi
>
>
>
> On 10/03/2020 12:53, Geertjan Wielenga wrote:
>
>
> We’d love to help you and, yes, you can indeed change code that NetBeans
> generates.
>
> Can you help us to help you — put your code somewhere so that we can look
> at it?
>
> Gj
>
> On Tue, 10 Mar 2020 at 13:48, Judi Rastall  wrote:
>
>> I have been doing some digging around and the first line where an image
>> is called is the line identified as giving the error. However, this is part
>> of the code generated by Netbeans when I created the panel using the design
>> feature in Netbeans. In other words, I cannot alter it! Netbeans knows best!
>>
>> I thought that using the built-in design tools would be quicker and
>> easier but that approach has been my undoing. So yes, I do blame Netbeans
>> for my difficulties.
>>
>> I have made a start on rewriting everything from scratch. This is not
>> helped by the many different ways in which different folk suggest the calls
>> should be done. Neil's suggestion of Googling loading icons was helpful but
>> did throw up several discussion threads where others were having similar
>> difficulties. It seems that every tutorial I have found gives a different
>> construction. The only thing that is keeping me going on trying to learn
>> Java at all is the goal of "write & compile once, run anywhere".
>>
>> Judi
>>
>> On 09/03/2020 18:14, Neil C Smith wrote:
>>
>> On Mon, 9 Mar 2020 at 17:58, Judi Rastall  
>>  wrote:
>>
>> Trying to run from the CMD prompt, I see this error message:
>> Exception in thread "main" java.lang.NullPointerException
>> at javax.swing.ImageIcon.(Unknown Source)
>>
>> ...
>>
>> Why will a program that runs perfectly well within the IDE fail to run when 
>> compiles?
>>
>> Quite easily!  My guess is the way you're passing the icon location
>> into ImageIcon. You may want to Google on loading icons bundling in
>> JARs - you'll find lots of info.  Loading resources from inside a JAR
>> is (can be) different to loading from the filesystem.
>>
>> 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
>>
>>
>>
>


Re: Statement of disappointment

2020-03-10 Thread Judi Rastall
Netbeans gives a warning to not try and change the code it generates and 
says that it will change it back the next time I run or build the file. 
Someone did suggest loading my project into github. I have heard of 
github but have no idea of how to use it or load stuff into it. I guess 
this mailing group won't allow attachments?


Judi



On 10/03/2020 12:53, Geertjan Wielenga wrote:


We’d love to help you and, yes, you can indeed change code that 
NetBeans generates.


Can you help us to help you — put your code somewhere so that we can 
look at it?


Gj

On Tue, 10 Mar 2020 at 13:48, Judi Rastall > wrote:


I have been doing some digging around and the first line where an
image is called is the line identified as giving the error.
However, this is part of the code generated by Netbeans when I
created the panel using the design feature in Netbeans. In other
words, I cannot alter it! Netbeans knows best!

I thought that using the built-in design tools would be quicker
and easier but that approach has been my undoing. So yes, I do
blame Netbeans for my difficulties.

I have made a start on rewriting everything from scratch. This is
not helped by the many different ways in which different folk
suggest the calls should be done. Neil's suggestion of Googling
loading icons was helpful but did throw up several discussion
threads where others were having similar difficulties. It seems
that every tutorial I have found gives a different construction.
The only thing that is keeping me going on trying to learn Java at
all is the goal of "write & compile once, run anywhere".

Judi

On 09/03/2020 18:14, Neil C Smith wrote:

On Mon, 9 Mar 2020 at 17:58, Judi Rastall  
  wrote:

Trying to run from the CMD prompt, I see this error message:
Exception in thread "main" java.lang.NullPointerException
 at javax.swing.ImageIcon.(Unknown Source)

...

Why will a program that runs perfectly well within the IDE fail to run when 
compiles?

Quite easily!  My guess is the way you're passing the icon location
into ImageIcon. You may want to Google on loading icons bundling in
JARs - you'll find lots of info.  Loading resources from inside a JAR
is (can be) different to loading from the filesystem.

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







Re: Statement of disappointment

2020-03-10 Thread Geertjan Wielenga
We’d love to help you and, yes, you can indeed change code that NetBeans
generates.

Can you help us to help you — put your code somewhere so that we can look
at it?

Gj

On Tue, 10 Mar 2020 at 13:48, Judi Rastall  wrote:

> I have been doing some digging around and the first line where an image is
> called is the line identified as giving the error. However, this is part of
> the code generated by Netbeans when I created the panel using the design
> feature in Netbeans. In other words, I cannot alter it! Netbeans knows best!
>
> I thought that using the built-in design tools would be quicker and easier
> but that approach has been my undoing. So yes, I do blame Netbeans for my
> difficulties.
>
> I have made a start on rewriting everything from scratch. This is not
> helped by the many different ways in which different folk suggest the calls
> should be done. Neil's suggestion of Googling loading icons was helpful but
> did throw up several discussion threads where others were having similar
> difficulties. It seems that every tutorial I have found gives a different
> construction. The only thing that is keeping me going on trying to learn
> Java at all is the goal of "write & compile once, run anywhere".
>
> Judi
>
> On 09/03/2020 18:14, Neil C Smith wrote:
>
> On Mon, 9 Mar 2020 at 17:58, Judi Rastall  
>  wrote:
>
> Trying to run from the CMD prompt, I see this error message:
> Exception in thread "main" java.lang.NullPointerException
> at javax.swing.ImageIcon.(Unknown Source)
>
> ...
>
> Why will a program that runs perfectly well within the IDE fail to run when 
> compiles?
>
> Quite easily!  My guess is the way you're passing the icon location
> into ImageIcon. You may want to Google on loading icons bundling in
> JARs - you'll find lots of info.  Loading resources from inside a JAR
> is (can be) different to loading from the filesystem.
>
> 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
>
>
>


Re: Statement of disappointment

2020-03-10 Thread Judi Rastall
I have been doing some digging around and the first line where an image 
is called is the line identified as giving the error. However, this is 
part of the code generated by Netbeans when I created the panel using 
the design feature in Netbeans. In other words, I cannot alter it! 
Netbeans knows best!


I thought that using the built-in design tools would be quicker and 
easier but that approach has been my undoing. So yes, I do blame 
Netbeans for my difficulties.


I have made a start on rewriting everything from scratch. This is not 
helped by the many different ways in which different folk suggest the 
calls should be done. Neil's suggestion of Googling loading icons was 
helpful but did throw up several discussion threads where others were 
having similar difficulties. It seems that every tutorial I have found 
gives a different construction. The only thing that is keeping me going 
on trying to learn Java at all is the goal of "write & compile once, run 
anywhere".


Judi

On 09/03/2020 18:14, Neil C Smith wrote:

On Mon, 9 Mar 2020 at 17:58, Judi Rastall  wrote:

Trying to run from the CMD prompt, I see this error message:
Exception in thread "main" java.lang.NullPointerException
 at javax.swing.ImageIcon.(Unknown Source)

...

Why will a program that runs perfectly well within the IDE fail to run when 
compiles?

Quite easily!  My guess is the way you're passing the icon location
into ImageIcon. You may want to Google on loading icons bundling in
JARs - you'll find lots of info.  Loading resources from inside a JAR
is (can be) different to loading from the filesystem.

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





Re: Statement of disappointment

2020-03-10 Thread Zahid Rahman
https://www.javacodegeeks.com/2020/03/new-features-between-java-8-and-java-14.html

On Mon, 9 Mar 2020, 19:43 Ty Young,  wrote:

>
> On 3/9/20 1:08 PM, Neil C Smith wrote:
> > On Mon, 9 Mar 2020 at 15:16, Paul Szudzik 
> wrote:
> >>  I see streams of notes that are asking questions about
> compatibility.  ( The latest straw is the Ant image ... )  I see how once
> the major players in NetBeans get on a wagon, the trail off is almost
> impossible.  If you’re new to NetBeans, perhaps this is a good trend.  If
> you have dealt with NetBeans as long as I have.. it becomes more than just
> an annoyance.  It almost easier to find another IDE to settle in on, as the
> amount of work to transfer 100+ projects, probably more, from old NetBeans
> to new NetBeans is formidable.
> > Personally, I think you're putting the "blame" firmly in the wrong
> > place.  Java is changing, JavaFX is changing, build tools are evolving
> > - this is all for the better in my opinion, but it requires learning
> > new things.  And switching IDE will not change that, and will probably
> > make for even more annoyance.
>
>
> Right. It isn't Netbeans fault, nor any other IDEs at this point.
>
>
> Oracle, not Netbeans(who was previously the developers of Netbeans), are
> to blame for the removal of JavaFX. Oracle decided they wanted to
> downsize the JDK, breaking backwards compatibility in the process.
>
>
> (Oracle/JDK developers will argue JavaFX was never apart of the JDK but
> this is just technical nonsense. Oracle JDK was *THE* JDK before Java 11)
>
>
> Netbeans supports JavaFX just fine. You just include the libs like any
> other library.
>
>
> >
> > As Emi has already mentioned, there are numerous ways of working the
> > old way, with a Java 8 JDK, possibly even with JavaFX bundled, for a
> > number of years yet (although that's maybe not much use if you like
> > what Gluon is doing).  None of the support for the older ways of
> > working have been removed from the IDE as far as I know.
>
>
> You should be able to create a JDK build with JavaFX bundles, yes. It
> worked with JDK 11 at least. This won't help you running on other
> JDK/JRE installs though since those won't have it.
>
>
> It is also possible to use Java 11's single source code runner to create
> a launcher that specifies JavaFX's modules and load them from a
> directory shipped with the application if you want.
>
>
> >
> > To paraphrase your domain, maybe throw the rock elsewhere?! :-)
> >
> > 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
> >
>
> -
> 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
>
>