NetBeans 11.2 - how to use Remote Java SE for example with Raspberry Pi?

2020-01-15 Thread Lister Jonathan
I can create the remote Java SE platform OK via Tools / Java Platforms:
[cid:image001.png@01D5CBCD.9CCC8140]

And Test Platform works fine (but I can't show the console output here because 
it is removed before I can copy / paste it)..

But when I right click a project and select Project Properties | Build | 
Compile, the Remote Java SE (rpi-heating-controller) is not shown in the 
dropdown list - as it used to be in Netbeans 8.x

Is there an alternative way to configure the project to use the Remote Java SE 
for remote debugging (in this case on a Raspberry Pi with OpenJDK 11).

Thanks,
Jonathan.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-06 Thread Neil C Smith
On Sat, 4 Jan 2020 at 19:41, ronald marangwanda
 wrote:
> Im on Ubuntu 18.04 and the java im using is openjdk version "11.0.5"

Thanks.  Just had a bit of time to dig into this.  I can replicate
your issue with the duplicate launcher icon appearing, as of 11.2 -
earlier versions are fine.  I can't replicate the WM_CLASS of the IDE
window being wrong, but it seems the splash now has a WM_CLASS of
java.lang.Thread - is that what you ran xprop on?  Earlier versions
don't seem to have any WM_CLASS on the splash as far as I can tell.
Changing the desktop file to run NetBeans with --nosplash seems to fix
the duplicate icon issue.  Not sure what changed to cause this - I
thought the splash screen changes went into 11.1?!

Note that my StartupWMClass line above was wrong - should be (note
"IDE" was missing)

StartupWMClass=Apache NetBeans IDE 11.2

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: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-04 Thread ronald marangwanda
Im on Ubuntu 18.04 and the java im using is openjdk version "11.0.5"

Thanks,

On Sat, 4 Jan 2020 at 04:49, Neil C Smith  wrote:

>
>
> On Fri, 3 Jan 2020, 23:16 Laszlo Kishalmi, 
> wrote:
>
>> It shall work, here is the line from the Snap package:
>>
>> StartupWMClass=Apache NetBeans IDE 11.2
>>
>> It was confirmed to work for 11.2
>>
> Given the xprop output in the original email I'm not sure it is
> everywhere. It also feels familiar. I'll see if I can replicate.
>
> Ronald, can you share your JDK version and vendor.
>
> Best wishes,
>
> Neil
>
>>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-04 Thread Neil C Smith
On Fri, 3 Jan 2020, 23:16 Laszlo Kishalmi, 
wrote:

> It shall work, here is the line from the Snap package:
>
> StartupWMClass=Apache NetBeans IDE 11.2
>
> It was confirmed to work for 11.2
>
Given the xprop output in the original email I'm not sure it is everywhere.
It also feels familiar. I'll see if I can replicate.

Ronald, can you share your JDK version and vendor.

Best wishes,

Neil

>


Re: STRUTS 2: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid

> developing upon struts in 10+ years OMG!

I guess I better go on Spring MVC . I hope that i still current.


On 04/01/2020 00:53, Laszlo Kishalmi wrote:


Well try this one:

https://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html

I'd recommend to start a Simple Maven Web application.

The graphical web designer had been retired ages ago as well as the 
tutorial page. Personally I haven't seen anyone developing upon struts 
in 10+ years (it is not impossible though)


On 1/3/20 4:24 PM, zahid wrote:


Thank you sir,

my particular interest is in struts2 framework.

I was particularly drawn to NetBeans because of the page I found showing

I can develop  stuts2  graphically.

https://netbeans.org/kb/docs/web/quickstart-webapps-struts.html

That page seems to show struts1 , may be it is out of date. Can I 
also use it for struts2  ?


I am about to make a start ?


On 04/01/2020 00:06, Laszlo Kishalmi wrote:


Yes this is the user list. We have a separate one called dev for 
those who has the interest!


On 1/3/20 3:23 PM, zahid wrote:


is this the right emailing list for users of NetBeans because I 
have no


interest in developing anything for  netbeans just use want to 
netbeans for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
> wrote:


I added that line to the .desktop file but I do not know what
the correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.

--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: STRUTS 2: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi

Well try this one:

https://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html

I'd recommend to start a Simple Maven Web application.

The graphical web designer had been retired ages ago as well as the 
tutorial page. Personally I haven't seen anyone developing upon struts 
in 10+ years (it is not impossible though)


On 1/3/20 4:24 PM, zahid wrote:


Thank you sir,

my particular interest is in struts2 framework.

I was particularly drawn to NetBeans because of the page I found showing

I can develop  stuts2  graphically.

https://netbeans.org/kb/docs/web/quickstart-webapps-struts.html

That page seems to show struts1 , may be it is out of date. Can I also 
use it for struts2  ?


I am about to make a start ?


On 04/01/2020 00:06, Laszlo Kishalmi wrote:


Yes this is the user list. We have a separate one called dev for 
those who has the interest!


On 1/3/20 3:23 PM, zahid wrote:


is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to 
netbeans for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
> wrote:


I added that line to the .desktop file but I do not know what
the correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.

--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.


STRUTS 2: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid

Thank you sir,

my particular interest is in struts2 framework.

I was particularly drawn to NetBeans because of the page I found showing

I can develop  stuts2  graphically.

https://netbeans.org/kb/docs/web/quickstart-webapps-struts.html

That page seems to show struts1 , may be it is out of date. Can I also 
use it for struts2  ?


I am about to make a start ?


On 04/01/2020 00:06, Laszlo Kishalmi wrote:


Yes this is the user list. We have a separate one called dev for those 
who has the interest!


On 1/3/20 3:23 PM, zahid wrote:


is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to 
netbeans for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
> wrote:


I added that line to the .desktop file but I do not know what
the correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi
Yes this is the user list. We have a separate one called dev for those 
who has the interest!


On 1/3/20 3:23 PM, zahid wrote:


is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to 
netbeans for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what
the correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid

is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to netbeans 
for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what the
correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi

It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what the
correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here doesn't 
work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Neil C Smith
On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
wrote:

> I added that line to the .desktop file but I do not know what the correct
> WMClass for Apache Netbeans 11.2 is.
>

Ah, sorry, you're right - it should match the value you get from xprop. And
does seem like the code to set WM_CLASS linked here doesn't work any more?!

https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123


Best wishes,

Neil

>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid


You have not mentioned  ubuntu version , so I am hesitant to answer.

I too have created  desktop shortcut manually.

I prefer to use install kubuntu  directly after after I install ubuntu 
gnome.


because I do not want of deprive myself of free  stuff.

Anyway I have found the two important settings are

path to executable and path to icon.

I have never come across WMCLASS.

Here is  a copy of my  Netbeans  desktop short cut for kubuntu on ubuntu 18.

[Desktop Entry]
Comment[en_GB]=
Comment=
Exec=/home/kub18/netbeans/bin/netbeans
GenericName[en_GB]=
GenericName=
Icon=/home/kub18/netbeans/nb/netbeans.png
MimeType=
Name[en_GB]=NetBeans 11
Name=NetBeans 11
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=




On 03/01/2020 21:35, ronald marangwanda wrote:

Hi Neil,

Ok, thanks.

I added that line to the .desktop file but I do not know what the 
correct WMClass for Apache Netbeans 11.2 is. When I enter the line you 
posted as is, I still get the duplicate icons when I launch the 
application, which means its not the correct WMClass.

What is the correct value to enter for the WMClass?
I prefer installing manually so the snap solution is not going to help me.
Ron

On Fri, 3 Jan 2020 at 12:21, Neil C Smith > wrote:


On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
mailto:ronald.marangwa...@gmail.com>> wrote:
> I created a .desktop file for Gnome 3 on Ubuntu.
...
> Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

Best wishes,

Neil


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread ronald marangwanda
Hi Neil,

Ok, thanks.

I added that line to the .desktop file but I do not know what the correct
WMClass for Apache Netbeans 11.2 is. When I enter the line you posted as
is, I still get the duplicate icons when I launch the application, which
means its not the correct WMClass.
What is the correct value to enter for the WMClass?
I prefer installing manually so the snap solution is not going to help me.
Ron

On Fri, 3 Jan 2020 at 12:21, Neil C Smith  wrote:

> On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
>  wrote:
> > I created a .desktop file for Gnome 3 on Ubuntu.
> ...
> > Does netbeans not set the WM_CLASS correctly? How do I fix this?
>
> The answer's in your question! ;-)  Make sure to add the WM_CLASS line
> to the .desktop file
>
> eg.
>
> StartupWMClass=Apache NetBeans 11.2
>
> Best wishes,
>
> Neil
>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi
Also if you install it from https://snapcraft.io/netbeans then the 
desktop file would be correct.


On 1/3/20 9:21 AM, Neil C Smith wrote:

On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
 wrote:

I created a .desktop file for Gnome 3 on Ubuntu.

...

Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

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



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Neil C Smith
On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
 wrote:
> I created a .desktop file for Gnome 3 on Ubuntu.
...
> Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

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



WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread ronald marangwanda
I created a .desktop file for Gnome 3 on Ubuntu. Everytime I launch
netbeans 11.2, the launcher icon is duplicated on the Gnome dock.

I checked the WM_CLASS property for netbeans 11.2:

> $ xprop WM_CLASS
>
WM_CLASS(STRING) = "java-lang-Thread", "java-lang-Thread"
>

Does netbeans not set the WM_CLASS correctly? How do I fix this?

Thanks,
Ron


Re: [Java] Migration From Eclipse Questions

2019-11-30 Thread Oron Subayi
Thanks for replying Laszlo
I think I need to elaborate a bit, since I think I described something wrong - 
Not an expert on these things : /
So what I see [that is what I think I got wrong] is that the other projects 
were added under "classpath" tab in the Java application and not under the 
"source" tab
In addition, I see multiple .launch files in the project, one for each 
application configuration

The thing here is that these files + pom.xml are tracked by Git and even if I 
change it to work on NetBeans [no idea how btw..any tutorial? LOL], I will 
probably have to maintain this locally while pulling from the repository, in 
case pom has changed

I wonder if this is how companies do that [by having more profiles in pom.xml] 
or there is something similar to .launch files in Eclipse but in NetBeans, that 
seems to separate the maven part from the actual Java applications - kind of

I hope I didn't make a mess, cause as I said..not an expert : )

On 2019/11/30 08:11:35, Laszlo Kishalmi  wrote: 
> Hi!
> 
> That's available for the Ant based projects. Opent the project 
> properties and see the Run section for profiles.
> 
> In Maven you need to set up profiles in your pom.
> 
> In Gradle you need to define several new JavaExec task for that.
> 
> On 11/29/19 10:44 PM, Oron Subayi wrote:
> > Hi : )
> >
> > Trying to migrate from Eclipse for my work environment, but there are 
> > 2 things I have in Eclipse that I can't find in NetBeans:
> > 1. Different run configuration with different projects
> > 2. Equivalent to Eclipse's "External Tools" - Variables that can be 
> > used as arguments like ${workspace_loc} - See 
> > https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm
> >
> > For 1:
> > In Eclipse we have same project with multiple application 
> > configurations - So basically different Java applications for the same 
> > project, but the difference is that one application has more projects 
> > on its source in class path
> > Noticed that NetBeans has some capabilities, but I don't find a way to 
> > say that for one run configuration use the defaults, but for the other 
> > I want you to add more projects to the execution [run & debug]
> > Is this possible?
> >
> > Thanks! : )
> 
> -
> 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: [Java] Migration From Eclipse Questions

2019-11-30 Thread Laszlo Kishalmi

Hi!

That's available for the Ant based projects. Opent the project 
properties and see the Run section for profiles.


In Maven you need to set up profiles in your pom.

In Gradle you need to define several new JavaExec task for that.

On 11/29/19 10:44 PM, Oron Subayi wrote:

Hi : )

Trying to migrate from Eclipse for my work environment, but there are 
2 things I have in Eclipse that I can't find in NetBeans:

1. Different run configuration with different projects
2. Equivalent to Eclipse's "External Tools" - Variables that can be 
used as arguments like ${workspace_loc} - See 
https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm


For 1:
In Eclipse we have same project with multiple application 
configurations - So basically different Java applications for the same 
project, but the difference is that one application has more projects 
on its source in class path
Noticed that NetBeans has some capabilities, but I don't find a way to 
say that for one run configuration use the defaults, but for the other 
I want you to add more projects to the execution [run & debug]

Is this possible?

Thanks! : )


-
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] Migration From Eclipse Questions

2019-11-29 Thread Oron Subayi
Hi : )

Trying to migrate from Eclipse for my work environment, but there are 2
things I have in Eclipse that I can't find in NetBeans:
1. Different run configuration with different projects
2. Equivalent to Eclipse's "External Tools" - Variables that can be used as
arguments like ${workspace_loc} - See
https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm

For 1:
In Eclipse we have same project with multiple application configurations -
So basically different Java applications for the same project, but the
difference is that one application has more projects on its source in class
path
Noticed that NetBeans has some capabilities, but I don't find a way to say
that for one run configuration use the defaults, but for the other I want
you to add more projects to the execution [run & debug]
Is this possible?

Thanks! : )


Re: [java] [openjpa] [gradle] can't get weaving to work in Netbeans 11

2019-11-28 Thread Dr. Matthias Laux
Dear Laszlo,
thanks a lot for that ... it seems to be working now :-)
I really appreciate your swift response!
Thanks much,
Matthias

Am Mi., 27. Nov. 2019 um 16:12 Uhr schrieb Laszlo Kishalmi <
laszlo.kisha...@gmail.com>:

> Dear Matthias,
>
> Most of the properties you are seeing in the Project Properties on a
> Gradle project are read-only. At the moment we are not trying to edit the
> build files. That has to be done manually, we just read them through Gradle.
>
> Please check the following:
>
> https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html
>
> The 'run' task in Gradle is a JavaExec so you can configure the jvm args
> with:
>
> run.jvmArgs '-javaagent'
>
> in your build file.
>
> runSingle is a NetBeans injected task, you can define it in your project
> if you wish as of:
>
> tasks.create('runSingle', JavaExec) {
>
> main = project.getProperty('runClassName')
> classpath = project.sourceSets.main.runtimeClasspath
> standardInput = System.in
>
> jvmArgs '-javaagent...'
>
>
> if (project.hasProperty('runArgs')) {
> args = project.getProperty('runArgs').tokenize(' ')
> }
>
> }
> On 11/27/19 6:24 AM, Dr. Matthias Laux wrote:
>
> Hello,
>
> I'm starting to lose hope in this ... I got my class library using OpenJPA
> to work nicely in Netbeans using Ant support and storing stuff in the
> backend Derby database.
> Then I decided to move to the much newer Gradle and - after a bit of a
> learning curve - all builds work find. The one thing that doesn't work is
> the weaving
> of OpenJPA which requires -javaagent:/openjpa-3.1.0.jar on the
> command line. I am not able to figure out how to get this into the
> execution
> path of Gradle within Netbeans. It always fails with not getting the
> -javaagent argument passed to the JVM from within NB. I can try the Run
> button in the menu bar or
> right-click "run ", same problem. OpenJPA doesn't work because
> the weaving is not possible ... the Java Agent is missing.
>
> I have tried the build config in Netbeans under Project - Properties -
> Build - BuildActions with run and run.single, no luck - I can not find the
> right syntax for JVM arguments.
> Either they're ignored or I get an error message.
>
> I have tried modifying the local gradlew script by injecting the argument
> in the command string, but when I run it from the command line, it finds
> the Java Agent (Open JPA weaver)
> but still fails because the classpath is not set correctly, all dependent
> libs are missing. When I run it from within NB, it ignores any changes to
> my local gradlew (which is confusing in itself).
>
> This is honestly driving me nuts ... I got it to run nicely in IntelliJ
> with their concept of "Run configurations" which allows for direct
> specification of JVM parameters. NB doesn't
> seem to have such a concept.
>
> How can I pass a -javaagent argument to a gradle task (run, runSingle)
> started within NB?
>
> Any help greatly appreciated ... before I go back to Ant and stop wasting
> more time :-(
>
> Thx Matthias
>
>


Re: [java] [openjpa] [gradle] can't get weaving to work in Netbeans 11

2019-11-27 Thread Laszlo Kishalmi

Dear Matthias,

Most of the properties you are seeing in the Project Properties on a 
Gradle project are read-only. At the moment we are not trying to edit 
the build files. That has to be done manually, we just read them through 
Gradle.


Please check the following:

https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html

The 'run' task in Gradle is a JavaExec so you can configure the jvm args 
with:


run.jvmArgs '-javaagent'

in your build file.

runSingle is a NetBeans injected task, you can define it in your project 
if you wish as of:


tasks.create('runSingle', JavaExec) {

    main = project.getProperty('runClassName')
    classpath = project.sourceSets.main.runtimeClasspath
    standardInput = System.in

            jvmArgs '-javaagent...'


    if (project.hasProperty('runArgs')) {
    args = project.getProperty('runArgs').tokenize(' ')
    }

}

On 11/27/19 6:24 AM, Dr. Matthias Laux wrote:

Hello,

I'm starting to lose hope in this ... I got my class library using 
OpenJPA to work nicely in Netbeans using Ant support and storing stuff 
in the backend Derby database.
Then I decided to move to the much newer Gradle and - after a bit of a 
learning curve - all builds work find. The one thing that doesn't work 
is the weaving
of OpenJPA which requires -javaagent:/openjpa-3.1.0.jar on 
the command line. I am not able to figure out how to get this into the 
execution
path of Gradle within Netbeans. It always fails with not getting the 
-javaagent argument passed to the JVM from within NB. I can try the 
Run button in the menu bar or
right-click "run ", same problem. OpenJPA doesn't work 
because the weaving is not possible ... the Java Agent is missing.


I have tried the build config in Netbeans under Project - Properties - 
Build - BuildActions with run and run.single, no luck - I can not find 
the right syntax for JVM arguments.

Either they're ignored or I get an error message.

I have tried modifying the local gradlew script by injecting the 
argument in the command string, but when I run it from the command 
line, it finds the Java Agent (Open JPA weaver)
but still fails because the classpath is not set correctly, all 
dependent libs are missing. When I run it from within NB, it ignores 
any changes to my local gradlew (which is confusing in itself).


This is honestly driving me nuts ... I got it to run nicely in 
IntelliJ with their concept of "Run configurations" which allows for 
direct specification of JVM parameters. NB doesn't

seem to have such a concept.

How can I pass a -javaagent argument to a gradle task (run, runSingle) 
started within NB?


Any help greatly appreciated ... before I go back to Ant and stop 
wasting more time :-(


Thx Matthias


[java] [openjpa] [gradle] can't get weaving to work in Netbeans 11

2019-11-27 Thread Dr. Matthias Laux
Hello,

I'm starting to lose hope in this ... I got my class library using OpenJPA
to work nicely in Netbeans using Ant support and storing stuff in the
backend Derby database.
Then I decided to move to the much newer Gradle and - after a bit of a
learning curve - all builds work find. The one thing that doesn't work is
the weaving
of OpenJPA which requires -javaagent:/openjpa-3.1.0.jar on the
command line. I am not able to figure out how to get this into the
execution
path of Gradle within Netbeans. It always fails with not getting the
-javaagent argument passed to the JVM from within NB. I can try the Run
button in the menu bar or
right-click "run ", same problem. OpenJPA doesn't work because
the weaving is not possible ... the Java Agent is missing.

I have tried the build config in Netbeans under Project - Properties -
Build - BuildActions with run and run.single, no luck - I can not find the
right syntax for JVM arguments.
Either they're ignored or I get an error message.

I have tried modifying the local gradlew script by injecting the argument
in the command string, but when I run it from the command line, it finds
the Java Agent (Open JPA weaver)
but still fails because the classpath is not set correctly, all dependent
libs are missing. When I run it from within NB, it ignores any changes to
my local gradlew (which is confusing in itself).

This is honestly driving me nuts ... I got it to run nicely in IntelliJ
with their concept of "Run configurations" which allows for direct
specification of JVM parameters. NB doesn't
seem to have such a concept.

How can I pass a -javaagent argument to a gradle task (run, runSingle)
started within NB?

Any help greatly appreciated ... before I go back to Ant and stop wasting
more time :-(

Thx Matthias


Re: NB on Linux platform and Java FX trouble

2019-11-25 Thread Gustavo Castro
see you https://openjfx.io/openjfx-docs/

El lun., 25 nov. 2019 a las 8:57, Geertjan Wielenga ()
escribió:

> Sorry, wrong video, meant this one:
>
> https://www.youtube.com/watch?v=8xaRwqcKPSI
>
> Gj
>
> On Mon, Nov 25, 2019 at 3:56 PM Geertjan Wielenga 
> wrote:
>
>> Use Maven, like this:
>>
>> https://www.youtube.com/watch?v=l9aoicDiQ_A
>>
>> Gj
>>
>> On Mon, Nov 25, 2019 at 3:53 PM Luciano Schiavone <
>> luciano.schiav...@gmail.com> wrote:
>>
>>> I installed NB 11.2 on Linux Mint 19 (Tina) with openjdk-11-jdk and
>>> libopenjfx-java.
>>>
>>> When I try to create a Java FXML application NB tells me that the
>>> platform doesn't support Java FX. There is anybody else who had the same
>>> problem?
>>>
>>


Re: NB on Linux platform and Java FX trouble

2019-11-25 Thread Geertjan Wielenga
Sorry, wrong video, meant this one:

https://www.youtube.com/watch?v=8xaRwqcKPSI

Gj

On Mon, Nov 25, 2019 at 3:56 PM Geertjan Wielenga 
wrote:

> Use Maven, like this:
>
> https://www.youtube.com/watch?v=l9aoicDiQ_A
>
> Gj
>
> On Mon, Nov 25, 2019 at 3:53 PM Luciano Schiavone <
> luciano.schiav...@gmail.com> wrote:
>
>> I installed NB 11.2 on Linux Mint 19 (Tina) with openjdk-11-jdk and
>> libopenjfx-java.
>>
>> When I try to create a Java FXML application NB tells me that the
>> platform doesn't support Java FX. There is anybody else who had the same
>> problem?
>>
>


Re: NB on Linux platform and Java FX trouble

2019-11-25 Thread Geertjan Wielenga
Use Maven, like this:

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

Gj

On Mon, Nov 25, 2019 at 3:53 PM Luciano Schiavone <
luciano.schiav...@gmail.com> wrote:

> I installed NB 11.2 on Linux Mint 19 (Tina) with openjdk-11-jdk and
> libopenjfx-java.
>
> When I try to create a Java FXML application NB tells me that the platform
> doesn't support Java FX. There is anybody else who had the same problem?
>


NB on Linux platform and Java FX trouble

2019-11-25 Thread Luciano Schiavone
I installed NB 11.2 on Linux Mint 19 (Tina) with openjdk-11-jdk and
libopenjfx-java.

When I try to create a Java FXML application NB tells me that the platform
doesn't support Java FX. There is anybody else who had the same problem?


Re: NetBeans java minimum requirements

2019-11-07 Thread Gustavo Castro
Product Version: Apache NetBeans IDE 11.2
Java: 1.8.0_232; OpenJDK 64-Bit Server VM 25.232-b09
Runtime: OpenJDK Runtime Environment 1.8.0_232-8u232-b09-1-b09
System: Linux version 5.3.0-1-amd64 running on amd64; UTF-8; es_NI (nb)

Apache NetBeans IDE 11.2 run on jdk 8 and support jdk 13
The highlights of enhancements in the Java area are focused on support for
JDK 13. <https://netbeans.apache.org/download/nb112/index.html#_notes>


El jue., 7 nov. 2019 a las 11:29, Leo Donahue ()
escribió:

> If I click on Tools | Options and then on the Java tab.. all of the menus
> and menu items load up.
>
> On Thu, Nov 7, 2019 at 12:26 PM Leo Donahue  wrote:
>
>> This is a fork of the "How to bypass a local certificate problem" thread
>> response and a possible bug report.
>>
>> Could we show a note here to illustrate the minimum jdk requirements for
>> the current NetBeans release?  I know NetBeans 11.2 targets jdk13.
>> https://netbeans.apache.org/download/nb112/index.html#_notes
>>
>> On Thu, Nov 7, 2019 at 11:09 AM Neil C Smith 
>> wrote:
>>
>>> On Thu, 7 Nov 2019 at 16:04, Leo Donahue  wrote:
>>> >  I did have to switch Look & Feel to Nimbus because the GTK+ has the
>>> "Project, Files and Services tabs" all chopped off except the very tops.
>>>
>>> That one is curious.  Have you opened a bug for it?  No problem with
>>> GTK+ here on Ubuntu 18.04 with AdoptOpenJDK 11.  Be good to figure out
>>> what breaks it.  Are you using Debian packaged OpenJDK, because if
>>> it's anything like the Ubuntu downstream it's a bit of a mess!
>>>
>>> I may have grabbed the wrong  from too many vm windows being
>> opened when I quoted my jdk version.
>>
>> leo@debvmw01:~$ lsb_release -a
>> No LSB modules are available.
>> Distributor ID: Debian
>> Description: Debian GNU/Linux 9.11 (stretch)
>> Release: 9.11
>> Codename: stretch
>> leo@debvmw01:~$ uname -mrs
>> Linux 4.9.0-11-amd64 x86_64
>> leo@debvmw01:~$
>>
>> For Linux users:
>> Depending on your version (like Debian Stretch) and your
>> /etc/apt/sources.list, if you take the defaults for stretch main, your
>> default jdk will be 1.8 (Buster defaults to jdk11)
>>
>> I let Stretch have the default openjdk 1.8 and I download other jdks into
>> /opt/jdk and then configure alternatives.
>>
>> I have an old 11.0.1 openjdk installed in /opt/jdk that you can get from
>> here:
>> https://jdk.java.net/archive/  (it was new at the time)
>>
>> leo@debvmw01:~$ java -version
>> openjdk version "11.0.1" 2018-10-16
>> OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
>> leo@debvmw01:~$ sudo update-alternatives --config javac
>> [sudo] password for leo:
>> There are 3 choices for the alternative javac (providing /usr/bin/javac).
>>
>>   SelectionPath     Priority
>> Status
>> 
>>   0/usr/lib/jvm/java-8-openjdk-amd64/bin/javac   1081
>>  auto mode
>> * 1/opt/jdk/jdk-11.0.1/bin/javac 100
>> manual mode
>>   2/opt/jdk/jdk1.8.0_191/bin/javac   100
>> manual mode
>>   3/usr/lib/jvm/java-8-openjdk-amd64/bin/javac   1081
>>  manual mode
>>
>> Press  to keep the current choice[*], or type selection number: ^C
>> leo@debvmw01:~$
>>
>> Currently no 11.2 directory in: /home/leo/.netbeans
>>
>> When I launch NetBeans 11.2 from the bin directory: sh netbeans
>>
>> The terminal window displays:
>> leo@debvmw01:~/applications/netbeans-11.2-bin/netbeans/bin$ sh netbeans
>> Gtk-Message: Failed to load module "canberra-gtk-module"
>> WARNING: An illegal reflective access operation has occurred
>> WARNING: Illegal reflective access by
>> org.netbeans.swing.plaf.gtk.ThemeValue
>> (jar:file:/home/leo/applications/netbeans-11.2-bin/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/)
>> to method
>> javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType)
>> WARNING: Please consider reporting this to the maintainers of
>> org.netbeans.swing.plaf.gtk.ThemeValue
>> WARNING: Use --illegal-access=warn to enable warnings of further illegal
>> reflective access operations
>> WARNING: All illegal access operations will be denied in a future release
>>
>> At this point, the "Project | Files | Services" tabs are completely
>> visible, so I must have forgotten to change my java alternative to jdk 11.
>>
>> I install the following plugins:
>>
>> *JavaFX Implementation for Linux* [13.1]
>> *The nb-javac Java editing support library* [2.0]
>>
>>
>> Restart NetBeans
>>
>> I get the same terminal message as before.
>>
>>
>> However, now I have limited menus and menu items.
>>
>> [image: image.png]
>>
>


NetBeans java minimum requirements

2019-11-07 Thread Leo Donahue
This is a fork of the "How to bypass a local certificate problem" thread
response and a possible bug report.

Could we show a note here to illustrate the minimum jdk requirements for
the current NetBeans release?  I know NetBeans 11.2 targets jdk13.
https://netbeans.apache.org/download/nb112/index.html#_notes

On Thu, Nov 7, 2019 at 11:09 AM Neil C Smith  wrote:

> On Thu, 7 Nov 2019 at 16:04, Leo Donahue  wrote:
> >  I did have to switch Look & Feel to Nimbus because the GTK+ has the
> "Project, Files and Services tabs" all chopped off except the very tops.
>
> That one is curious.  Have you opened a bug for it?  No problem with
> GTK+ here on Ubuntu 18.04 with AdoptOpenJDK 11.  Be good to figure out
> what breaks it.  Are you using Debian packaged OpenJDK, because if
> it's anything like the Ubuntu downstream it's a bit of a mess!
>
> I may have grabbed the wrong  from too many vm windows being
opened when I quoted my jdk version.

leo@debvmw01:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch
leo@debvmw01:~$ uname -mrs
Linux 4.9.0-11-amd64 x86_64
leo@debvmw01:~$

For Linux users:
Depending on your version (like Debian Stretch) and your
/etc/apt/sources.list, if you take the defaults for stretch main, your
default jdk will be 1.8 (Buster defaults to jdk11)

I let Stretch have the default openjdk 1.8 and I download other jdks into
/opt/jdk and then configure alternatives.

I have an old 11.0.1 openjdk installed in /opt/jdk that you can get from
here:
https://jdk.java.net/archive/  (it was new at the time)

leo@debvmw01:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
leo@debvmw01:~$ sudo update-alternatives --config javac
[sudo] password for leo:
There are 3 choices for the alternative javac (providing /usr/bin/javac).

  SelectionPath Priority
Status
----
  0/usr/lib/jvm/java-8-openjdk-amd64/bin/javac   1081  auto
mode
* 1/opt/jdk/jdk-11.0.1/bin/javac 100
manual mode
  2/opt/jdk/jdk1.8.0_191/bin/javac   100
manual mode
  3/usr/lib/jvm/java-8-openjdk-amd64/bin/javac   1081
 manual mode

Press  to keep the current choice[*], or type selection number: ^C
leo@debvmw01:~$

Currently no 11.2 directory in: /home/leo/.netbeans

When I launch NetBeans 11.2 from the bin directory: sh netbeans

The terminal window displays:
leo@debvmw01:~/applications/netbeans-11.2-bin/netbeans/bin$ sh netbeans
Gtk-Message: Failed to load module "canberra-gtk-module"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.netbeans.swing.plaf.gtk.ThemeValue
(jar:file:/home/leo/applications/netbeans-11.2-bin/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/)
to method
javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType)
WARNING: Please consider reporting this to the maintainers of
org.netbeans.swing.plaf.gtk.ThemeValue
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release

At this point, the "Project | Files | Services" tabs are completely
visible, so I must have forgotten to change my java alternative to jdk 11.

I install the following plugins:

*JavaFX Implementation for Linux* [13.1]
*The nb-javac Java editing support library* [2.0]


Restart NetBeans

I get the same terminal message as before.


However, now I have limited menus and menu items.

[image: image.png]


Re: "New Project->Java with Maven -> Netbean" Module fails

2019-11-01 Thread William Reynolds
Confirmed that it works in 11.2. One weird thing - upon creation, the 
pom was showing an error, didn't recognize nbm. 
Adding removing some text to the pom and saving caused it to reload and 
to work. This was immediately after installing 11.2. Subsequent restarts 
and project creation did not exhibit this problem.


On 9/23/2019 12:16 PM, Geertjan Wielenga wrote:
Fixed in 11.2, try it in a daily build or wait for beta1 to be 
released this week, would be great if you'd verify it works for you 
there.


Gj

On Mon, Sep 23, 2019 at 8:01 PM William Reynolds 
mailto:wnreyno...@stellarscience.com>> 
wrote:


Per subject. Trying to create a new Maven RCP Module project
fails. It
prompts for a directory name and exits immediately after finish is
clicked.
A directory is created, but no project files. In my messages.log,
I have
the following error:

WARNING [org.openide.WizardDescriptor]
java.lang.NullPointerException
 at

org.apache.maven.artifact.versioning.ComparableVersion.parseVersion(ComparableVersion.java:357)
 at

org.apache.maven.artifact.versioning.ComparableVersion.(ComparableVersion.java:348)
 at

org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:384)
 at

org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:141)
 at

org.netbeans.modules.maven.model.Utilities.performPOMModelOperations(Utilities.java:318)
 at

org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder.create(CreateProjectBuilder.java:146)
 at

org.netbeans.modules.maven.apisupport.NBMNativeMWI.instantiate(NBMNativeMWI.java:69)
 at

org.netbeans.modules.maven.apisupport.NbmWizardIterator.instantiate(NbmWizardIterator.java:130)
 at

org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1028)
 at

org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:580)
 at

org.netbeans.modules.project.ui.NewProjectWizard.handleInstantiate(NewProjectWizard.java:51)
 at

org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:414)
 at

org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:223)
 at

org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:135)
 at
org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1605)
 at
org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1546)
 at
org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:67)
[catch] at
org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2233)
 at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
 at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
 at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.core.netigso.Netigso]: bundle
org.eclipse.osgi@3.9.1.
v20140110-1610 256
INFO [org.netbeans.core.netigso.Netigso]: bundle
org.eclipse.osgi@3.9.1.
v20140110-1610 stopped
INFO [null]: Last record repeated again.

-- 
William Reynolds, Ph.D.

Stellar Science, LLC
wnreyno...@stellarscience.com 
www.stellarscience.com 
877-763-8268 x710 (v)




--
William Reynolds, Ph.D.
Stellar Science, LLC
wnreyno...@stellarscience.com
www.stellarscience.com
877-763-8268 x710 (v)



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Platform App, JavaFX, and Java 11

2019-10-31 Thread Steven Yi
Yes, this might be a nice thing to have in a page.  I was thinking of doing
a write-up sometime from all of this as there were some interesting hurdles
(and still more to work through). Is the Confluence page linked anywhere on
netbeans.apache.org? I didn't see it mentioned.

I've switched my tool chain now to Java 11 JDK and it's bringing up other
issues now.  (Some oddities compiling with source=11 and invalid class
format at runtime ring a bell for anyone?) Will be some more days before
this is ironed out.

For now though, if anyone is interested, the JavaFX part seems to be
working well.  I have a maven module that wraps OpenJFX:

https://github.com/kunstmusik/blue/tree/feature/maven/blue-ext-openjfx

and I had to add some exclusions when importing ControlsFX in another
module:

https://github.com/kunstmusik/blue/blob/feature/maven/blue-ui-core/pom.xml#L277-L303

Seems to be working on Linux and MacOS (testing on Windows coming), but if
others have any particular tips I'd love to hear them. :)

On Thu, Oct 31, 2019 at 8:47 AM Eric Barboni  wrote:

> Happy you sort this out.
>
>
>
> I did this kind of migration a long time ago, it may be nice to share
> workflow on migration or tips in a web or confluence page.
>
>
>
> Best Regards
>
> Eric
>
>
>
>
>
> *De :* Steven Yi 
> *Envoyé :* jeudi 31 octobre 2019 04:36
> *À :* users@netbeans.apache.org
> *Objet :* Re: Platform App, JavaFX, and Java 11
>
>
>
> Following up, I dug into this a lot today with the debugger and stepping
> though the platform startup process. I found that the issue wasn't related
> to JavaFX at all but rather a native library I use via SWIG bindings. I'm
> exploring a JNA-based solution now for that.  Happy to say, that aside,
> JavaFX+Swing did run on Java 11 for me in the end, which was a big relief.
> I'll follow up one last time on this thread when there is a fixed up
> solution in case anyone is interested in the maven wrapper module I put
> together to get JavaFX integrated.
>
>
>
> All best,
>
> Steven
>
>
>
>
>
> On Tue, Oct 29, 2019 at 9:53 PM Steven Yi  wrote:
>
> Hi All,
>
>
>
> I've been working on migrating my platform application Blue to Maven.  I
> have this working with RELEASE111 and Java 8.  However, when I move to Java
> 11, my app starts up, show the splash screen, shows messages about loading
> modules, then disappears and nothing happens.  My application uses both
> Swing and JavaFX and for Java 11 I've added OpenJFX into an NBM module and
> had all of my modules that use JavaFX depend upon that module.
>
>
>
> The problem I have right now is that even if I add
> netbeans.logger.console=true to the .conf file, I don't see any useful
> information that helps me to debug what is going on. I'm also not getting a
> segfault as I do not see any dump files.
>
>
>
> I do get a warning about "WARNING: Illegal reflective access by
> org.netbeans.ProxyURLStreamHandlerFactory to field java.net.URL.handler" in
> the startup.  I do not know if that is related to the early exit or not
> (the only reports of related messages came up with Netbeans and Java 9 in
> the past).  I am able to run Netbeans 11.1 on this machine.
>
>
>
> For information, I am using openjdk-11 and this is on Xubuntu 18.04. This
> is also my first foray into Java > 8 and using JavaFX. Log is printed at
> end of this email. (It is the complete set of messages before the
> application exits.)
>
>
>
> Questions:
>
>
>
> 1. Is anyone using Swing+JavaFX in their platform apps on Java 11 and
> could give any pointers as to how they did so?
>
> 2. Anyone run into a situation where their platform app just dies silently
> have suggestions on how to diagnose?
>
>
>
> For reference, this branch contains ongoing work with maven changes for
> JavaFX and Java11:
>
>
>
> https://github.com/kunstmusik/blue/commits/mvn-java11
>
>
>
> and there are CI builds if anyone wants to reproduce the silent quit:
>
>
>
> https://ci.appveyor.com/project/kunstmusik/blue/build/artifacts
>
>
>
> Any help appreciated!
>
> Steven
>
>
>
>
>
> steven@ubuntu:~/blue/application/target/blue/bin$ ./blue
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.netbeans.ProxyURLStreamHandlerFactory
> (file:/home/steven/blue/application/target/blue/platform/lib/boot.jar) to
> field java.net.URL.handler
> WARNING: Please consider reporting this to the maintainers of
> org.netbeans.ProxyURLStreamHandlerFactory
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operatio

RE: Platform App, JavaFX, and Java 11

2019-10-31 Thread Eric Barboni
Happy you sort this out.

 

I did this kind of migration a long time ago, it may be nice to share workflow 
on migration or tips in a web or confluence page.

 

Best Regards

Eric

 

 

De : Steven Yi  
Envoyé : jeudi 31 octobre 2019 04:36
À : users@netbeans.apache.org
Objet : Re: Platform App, JavaFX, and Java 11

 

Following up, I dug into this a lot today with the debugger and stepping though 
the platform startup process. I found that the issue wasn't related to JavaFX 
at all but rather a native library I use via SWIG bindings. I'm exploring a 
JNA-based solution now for that.  Happy to say, that aside, JavaFX+Swing did 
run on Java 11 for me in the end, which was a big relief. I'll follow up one 
last time on this thread when there is a fixed up solution in case anyone is 
interested in the maven wrapper module I put together to get JavaFX integrated. 

 

All best,

Steven

 

 

On Tue, Oct 29, 2019 at 9:53 PM Steven Yi mailto:steve...@gmail.com> > wrote:

Hi All,

 

I've been working on migrating my platform application Blue to Maven.  I have 
this working with RELEASE111 and Java 8.  However, when I move to Java 11, my 
app starts up, show the splash screen, shows messages about loading modules, 
then disappears and nothing happens.  My application uses both Swing and JavaFX 
and for Java 11 I've added OpenJFX into an NBM module and had all of my modules 
that use JavaFX depend upon that module.

 

The problem I have right now is that even if I add netbeans.logger.console=true 
to the .conf file, I don't see any useful information that helps me to debug 
what is going on. I'm also not getting a segfault as I do not see any dump 
files.  

 

I do get a warning about "WARNING: Illegal reflective access by 
org.netbeans.ProxyURLStreamHandlerFactory to field java.net.URL.handler" in the 
startup.  I do not know if that is related to the early exit or not (the only 
reports of related messages came up with Netbeans and Java 9 in the past).  I 
am able to run Netbeans 11.1 on this machine.

 

For information, I am using openjdk-11 and this is on Xubuntu 18.04. This is 
also my first foray into Java > 8 and using JavaFX. Log is printed at end of 
this email. (It is the complete set of messages before the application exits.) 

 

Questions:

 

1. Is anyone using Swing+JavaFX in their platform apps on Java 11 and could 
give any pointers as to how they did so?

2. Anyone run into a situation where their platform app just dies silently have 
suggestions on how to diagnose?

 

For reference, this branch contains ongoing work with maven changes for JavaFX 
and Java11:

 

https://github.com/kunstmusik/blue/commits/mvn-java11

 

and there are CI builds if anyone wants to reproduce the silent quit:

 

https://ci.appveyor.com/project/kunstmusik/blue/build/artifacts

 

Any help appreciated!

Steven

 

 

steven@ubuntu:~/blue/application/target/blue/bin$ ./blue
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory 
(file:/home/steven/blue/application/target/blue/platform/lib/boot.jar) to field 
java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
---
>Log Session: Tuesday, October 29, 2019 at 5:39:36 PM Pacific Daylight Time
>System Info: 
  Product Version = Blue 11.2-d04fb24027334c4b6fd8397b5d0cdd33187a8f54
  Operating System= Linux version 5.0.0-32-generic running on amd64
  Java; VM; Vendor= 11.0.4; OpenJDK 64-Bit Server VM 
11.0.4+11-post-Ubuntu-1ubuntu218.04.3; Ubuntu
  Runtime = OpenJDK Runtime Environment 
11.0.4+11-post-Ubuntu-1ubuntu218.04.3
  Java Home   = /usr/lib/jvm/java-11-openjdk-amd64
  System Locale; Encoding = en_US (blue); UTF-8
  Home Directory  = /home/steven
  Current Directory   = /home/steven/blue/application/target/blue/bin
  User Directory  = /home/steven/.blue/dev
  Cache Directory = /home/steven/.blue/dev/var/cache
  Installation= /home/steven/blue/application/target/blue/manual
/home/steven/blue/application/target/blue/etc
/home/steven/blue/application/target/blue/blue
/home/steven/blue/application/target/blue/platform
/home/steven/blue/application/target/blue/bin
/home/steven/blue/application/target/blue/ide
/home/steven/blue/application/target/blue/examples
/home/steven/blue/application/target/blue/extra
/home/steven/blu

Re: Platform App, JavaFX, and Java 11

2019-10-30 Thread Steven Yi
Following up, I dug into this a lot today with the debugger and stepping
though the platform startup process. I found that the issue wasn't related
to JavaFX at all but rather a native library I use via SWIG bindings. I'm
exploring a JNA-based solution now for that.  Happy to say, that aside,
JavaFX+Swing did run on Java 11 for me in the end, which was a big relief.
I'll follow up one last time on this thread when there is a fixed up
solution in case anyone is interested in the maven wrapper module I put
together to get JavaFX integrated.

All best,
Steven


On Tue, Oct 29, 2019 at 9:53 PM Steven Yi  wrote:

> Hi All,
>
> I've been working on migrating my platform application Blue to Maven.  I
> have this working with RELEASE111 and Java 8.  However, when I move to Java
> 11, my app starts up, show the splash screen, shows messages about loading
> modules, then disappears and nothing happens.  My application uses both
> Swing and JavaFX and for Java 11 I've added OpenJFX into an NBM module and
> had all of my modules that use JavaFX depend upon that module.
>
> The problem I have right now is that even if I add
> netbeans.logger.console=true to the .conf file, I don't see any useful
> information that helps me to debug what is going on. I'm also not getting a
> segfault as I do not see any dump files.
>
> I do get a warning about "WARNING: Illegal reflective access by
> org.netbeans.ProxyURLStreamHandlerFactory to field java.net.URL.handler" in
> the startup.  I do not know if that is related to the early exit or not
> (the only reports of related messages came up with Netbeans and Java 9 in
> the past).  I am able to run Netbeans 11.1 on this machine.
>
> For information, I am using openjdk-11 and this is on Xubuntu 18.04. This
> is also my first foray into Java > 8 and using JavaFX. Log is printed at
> end of this email. (It is the complete set of messages before the
> application exits.)
>
> Questions:
>
> 1. Is anyone using Swing+JavaFX in their platform apps on Java 11 and
> could give any pointers as to how they did so?
> 2. Anyone run into a situation where their platform app just dies silently
> have suggestions on how to diagnose?
>
> For reference, this branch contains ongoing work with maven changes for
> JavaFX and Java11:
>
> https://github.com/kunstmusik/blue/commits/mvn-java11
>
> and there are CI builds if anyone wants to reproduce the silent quit:
>
> https://ci.appveyor.com/project/kunstmusik/blue/build/artifacts
>
> Any help appreciated!
> Steven
>
>
> steven@ubuntu:~/blue/application/target/blue/bin$ ./blue
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.netbeans.ProxyURLStreamHandlerFactory
> (file:/home/steven/blue/application/target/blue/platform/lib/boot.jar) to
> field java.net.URL.handler
> WARNING: Please consider reporting this to the maintainers of
> org.netbeans.ProxyURLStreamHandlerFactory
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
>
> ---
> >Log Session: Tuesday, October 29, 2019 at 5:39:36 PM Pacific Daylight Time
> >System Info:
>   Product Version = Blue
> 11.2-d04fb24027334c4b6fd8397b5d0cdd33187a8f54
>   Operating System= Linux version 5.0.0-32-generic running on amd64
>   Java; VM; Vendor= 11.0.4; OpenJDK 64-Bit Server VM
> 11.0.4+11-post-Ubuntu-1ubuntu218.04.3; Ubuntu
>   Runtime = OpenJDK Runtime Environment
> 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
>   Java Home   = /usr/lib/jvm/java-11-openjdk-amd64
>   System Locale; Encoding = en_US (blue); UTF-8
>   Home Directory  = /home/steven
>   Current Directory   = /home/steven/blue/application/target/blue/bin
>   User Directory  = /home/steven/.blue/dev
>   Cache Directory = /home/steven/.blue/dev/var/cache
>   Installation=
> /home/steven/blue/application/target/blue/manual
> /home/steven/blue/application/target/blue/etc
> /home/steven/blue/application/target/blue/blue
>
> /home/steven/blue/application/target/blue/platform
> /home/steven/blue/application/target/blue/bin
> /home/steven/blue/application/target/blue/ide
>
> /home/steven/blue/application/target/blue/examples
> /home/steven/blue/application/target/blue/extra
>
> /home/steven/blue/application/target/blue/platform
>   Boot & Ext. Classpath   =
>   Application Classpath   =
> 

Platform App, JavaFX, and Java 11

2019-10-29 Thread Steven Yi
Hi All,

I've been working on migrating my platform application Blue to Maven.  I
have this working with RELEASE111 and Java 8.  However, when I move to Java
11, my app starts up, show the splash screen, shows messages about loading
modules, then disappears and nothing happens.  My application uses both
Swing and JavaFX and for Java 11 I've added OpenJFX into an NBM module and
had all of my modules that use JavaFX depend upon that module.

The problem I have right now is that even if I add
netbeans.logger.console=true to the .conf file, I don't see any useful
information that helps me to debug what is going on. I'm also not getting a
segfault as I do not see any dump files.

I do get a warning about "WARNING: Illegal reflective access by
org.netbeans.ProxyURLStreamHandlerFactory to field java.net.URL.handler" in
the startup.  I do not know if that is related to the early exit or not
(the only reports of related messages came up with Netbeans and Java 9 in
the past).  I am able to run Netbeans 11.1 on this machine.

For information, I am using openjdk-11 and this is on Xubuntu 18.04. This
is also my first foray into Java > 8 and using JavaFX. Log is printed at
end of this email. (It is the complete set of messages before the
application exits.)

Questions:

1. Is anyone using Swing+JavaFX in their platform apps on Java 11 and could
give any pointers as to how they did so?
2. Anyone run into a situation where their platform app just dies silently
have suggestions on how to diagnose?

For reference, this branch contains ongoing work with maven changes for
JavaFX and Java11:

https://github.com/kunstmusik/blue/commits/mvn-java11

and there are CI builds if anyone wants to reproduce the silent quit:

https://ci.appveyor.com/project/kunstmusik/blue/build/artifacts

Any help appreciated!
Steven


steven@ubuntu:~/blue/application/target/blue/bin$ ./blue
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.netbeans.ProxyURLStreamHandlerFactory
(file:/home/steven/blue/application/target/blue/platform/lib/boot.jar) to
field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of
org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
---
>Log Session: Tuesday, October 29, 2019 at 5:39:36 PM Pacific Daylight Time
>System Info:
  Product Version = Blue
11.2-d04fb24027334c4b6fd8397b5d0cdd33187a8f54
  Operating System= Linux version 5.0.0-32-generic running on amd64
  Java; VM; Vendor= 11.0.4; OpenJDK 64-Bit Server VM
11.0.4+11-post-Ubuntu-1ubuntu218.04.3; Ubuntu
  Runtime = OpenJDK Runtime Environment
11.0.4+11-post-Ubuntu-1ubuntu218.04.3
  Java Home   = /usr/lib/jvm/java-11-openjdk-amd64
  System Locale; Encoding = en_US (blue); UTF-8
  Home Directory  = /home/steven
  Current Directory   = /home/steven/blue/application/target/blue/bin
  User Directory  = /home/steven/.blue/dev
  Cache Directory = /home/steven/.blue/dev/var/cache
  Installation= /home/steven/blue/application/target/blue/manual
/home/steven/blue/application/target/blue/etc
/home/steven/blue/application/target/blue/blue

/home/steven/blue/application/target/blue/platform
/home/steven/blue/application/target/blue/bin
/home/steven/blue/application/target/blue/ide

/home/steven/blue/application/target/blue/examples
/home/steven/blue/application/target/blue/extra

/home/steven/blue/application/target/blue/platform
  Boot & Ext. Classpath   =
  Application Classpath   =
/home/steven/blue/application/target/blue/platform/lib/boot.jar:/home/steven/blue/application/target/blue/platform/lib/org-openide-modules.jar:/home/steven/blue/application/target/blue/platform/lib/org-openide-util.jar:/home/steven/blue/application/target/blue/platform/lib/org-openide-util-lookup.jar:/home/steven/blue/application/target/blue/platform/lib/org-openide-util-ui.jar
  Startup Classpath   =
/home/steven/blue/application/target/blue/platform/core/org-netbeans-libs-asm.jar:/home/steven/blue/application/target/blue/platform/core/core.jar:/home/steven/blue/application/target/blue/platform/core/core-base.jar:/home/steven/blue/application/target/blue/platform/core/org-openide-filesystems.jar:/home/steven/blue/application/target/blue/platform/core/asm-all-5.0.1.jar:/home/steven/blue/application/target/blue/blue/core/locale/core_blue.jar
---
INFO [blue.plaf.Installer]: Finished blue PLAF installation
WARNING [org.netbeans.core.projects.cache]: laye

Re: Java project now needs classpaths to run it

2019-10-22 Thread Peter Toye
Dear Eric,

Thanks. I'm Windows-based so the details of *nix flavours rather pass me by.

Best regards,

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

-
Monday, October 21, 2019, 9:02:34 PM, you wrote:


It's pretty common-place (at least in *nix) for commands to support both GNU 
style and POSIX style arguments with both alternatives for most things. 
From running "java --help", I learn that
--module will do the same as -m
and
-p is an alternative to --module-path


On 10/21/19 5:56 AM, Peter Toye wrote:

Re: Java project now needs classpaths to run it

Why the Java designer can't just stick to a single syntax is beyond me.


Re: Java project now needs classpaths to run it

2019-10-21 Thread Eric J. Schwarzenbach
It's pretty common-place (at least in *nix) for commands to support both 
GNU style and POSIX style arguments with both alternatives for most things.


From running "java --help", I learn that

--module will do the same as -m

and

-p is an alternative to --module-path



On 10/21/19 5:56 AM, Peter Toye wrote:

Re: Java project now needs classpaths to run it
Why the Java designer can't just stick to a single syntax is beyond 
me.




Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Much happier :-)>  . Many thanks. I owe you another beer Where are you 
based?

Best regards,

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

-
Monday, October 21, 2019, 4:15:08 PM, you wrote:


https://issues.apache.org/jira/browse/NETBEANS-3260

Hope the above investigation makes you happy. :-)

Gj

On Mon, Oct 21, 2019 at 4:07 PM Geertjan Wielenga  wrote:


It is copied and pasted from there.

Gj

On Mon, 21 Oct 2019 at 16:06, Peter Toye  wrote:

Dear Geertjan,

Fine. I agree. A shame that OpenJDK don't put this on the mailing list page you 
sent me.


Best regards,

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

-
Monday, October 21, 2019, 2:53:18 PM, you wrote:


Who is “they”? Why are thousands of people able to write to that mailing list 
apparently without a problem.

https://mail.openjdk.java.net/mailman/listinfo/discuss

Go to the above and sign up, ignoring this topic on mailing lists now.

Gj


On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:

Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.


Best regards,

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

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:





I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

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

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

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

Re: Java project now needs classpaths to run it

2019-10-21 Thread Geertjan Wielenga
https://issues.apache.org/jira/browse/NETBEANS-3260

Hope the above investigation makes you happy. :-)

Gj

On Mon, Oct 21, 2019 at 4:07 PM Geertjan Wielenga 
wrote:

>
> It is copied and pasted from there.
>
> Gj
>
> On Mon, 21 Oct 2019 at 16:06, Peter Toye  wrote:
>
>> Dear Geertjan,
>>
>> Fine. I agree. A shame that OpenJDK don't put this on the mailing list
>> page you sent me.
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbe...@ptoye.com
>> www.ptoye.com
>>
>> -
>> Monday, October 21, 2019, 2:53:18 PM, you wrote:
>>
>>
>> Who is “they”? Why are thousands of people able to write to that mailing
>> list apparently without a problem.
>>
>> https://mail.openjdk.java.net/mailman/listinfo/discuss
>>
>> Go to the above and sign up, ignoring this topic on mailing lists now.
>>
>> Gj
>>
>>
>> On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:
>>
>> Dear Geertjan,
>>
>> I wasn't expecting you to, but I hope you can see my frustration. I mail
>> OpenJDK at the address they give you, and get an auto-reject telling me to
>> contact that same address. This is for information - just don't bother
>> trying to contact OpenJDK.
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbe...@ptoye.com
>> www.ptoye.com
>>
>> -
>> Monday, October 21, 2019, 12:56:31 PM, you wrote:
>>
>>
>>
>>
>>
>> I don’t know who the ‘they’ are you’re referring to, but I’m sorry this
>> is where I’m going to draw a line: I am not going to help you subscribe to
>> a mailing list.
>>
>> Gj
>>
>> On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:
>>
>> Dear Geertjan,
>>
>> Agreed - but the address they give is the one that's auto-rejected!
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbe...@ptoye.com
>> www.ptoye.com
>>
>> -
>> Monday, October 21, 2019, 11:35:13 AM, you wrote:
>>
>>
>> You’ll need to subscribe to the mailing lists you want to write to.
>>
>> Gj
>>
>> On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:
>>
>> Dear Geertjan,
>>
>> Thanks. I wrote to the mailing list address and got the following answer:
>>
>>   You are not allowed to post to this mailing list, and your message has
>>   been automatically rejected.  If you think that your messages are
>>   being rejected in error, contact the mailing list owner at
>>   mailman-ow...@openjdk.java.net.
>>
>> But that was the address that I mailed! A but recursive. Something wrong
>> up at openJDK methinks. I've tried another address
>>
>> I'll file an issue in JIRA.
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbe...@ptoye.com
>> www.ptoye.com
>>
>


Re: Java project now needs classpaths to run it

2019-10-21 Thread Geertjan Wielenga
It is copied and pasted from there.

Gj

On Mon, 21 Oct 2019 at 16:06, Peter Toye  wrote:

> Dear Geertjan,
>
> Fine. I agree. A shame that OpenJDK don't put this on the mailing list
> page you sent me.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 2:53:18 PM, you wrote:
>
>
> Who is “they”? Why are thousands of people able to write to that mailing
> list apparently without a problem.
>
> https://mail.openjdk.java.net/mailman/listinfo/discuss
>
> Go to the above and sign up, ignoring this topic on mailing lists now.
>
> Gj
>
>
> On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:
>
> Dear Geertjan,
>
> I wasn't expecting you to, but I hope you can see my frustration. I mail
> OpenJDK at the address they give you, and get an auto-reject telling me to
> contact that same address. This is for information - just don't bother
> trying to contact OpenJDK.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 12:56:31 PM, you wrote:
>
>
>
>
>
> I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is
> where I’m going to draw a line: I am not going to help you subscribe to a
> mailing list.
>
> Gj
>
> On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:
>
> Dear Geertjan,
>
> Agreed - but the address they give is the one that's auto-rejected!
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 11:35:13 AM, you wrote:
>
>
> You’ll need to subscribe to the mailing lists you want to write to.
>
> Gj
>
> On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:
>
> Dear Geertjan,
>
> Thanks. I wrote to the mailing list address and got the following answer:
>
>   You are not allowed to post to this mailing list, and your message has
>   been automatically rejected.  If you think that your messages are
>   being rejected in error, contact the mailing list owner at
>   mailman-ow...@openjdk.java.net.
>
> But that was the address that I mailed! A but recursive. Something wrong
> up at openJDK methinks. I've tried another address
>
> I'll file an issue in JIRA.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>


Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Fine. I agree. A shame that OpenJDK don't put this on the mailing list page you 
sent me.

Best regards,

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

-
Monday, October 21, 2019, 2:53:18 PM, you wrote:


Who is “they”? Why are thousands of people able to write to that mailing list 
apparently without a problem.

https://mail.openjdk.java.net/mailman/listinfo/discuss

Go to the above and sign up, ignoring this topic on mailing lists now.

Gj


On Mon, 21 Oct 2019 at 15:48, Peter Toye  wrote:

Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.


Best regards,

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

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:




I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

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

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

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

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

I wasn't expecting you to, but I hope you can see my frustration. I mail 
OpenJDK at the address they give you, and get an auto-reject telling me to 
contact that same address. This is for information - just don't bother trying 
to contact OpenJDK.

Best regards,

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

-
Monday, October 21, 2019, 12:56:31 PM, you wrote:



I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is 
where I’m going to draw a line: I am not going to help you subscribe to a 
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!


Best regards,

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

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

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

Re: Java project now needs classpaths to run it

2019-10-21 Thread Geertjan Wielenga
I don’t know who the ‘they’ are you’re referring to, but I’m sorry this is
where I’m going to draw a line: I am not going to help you subscribe to a
mailing list.

Gj

On Mon, 21 Oct 2019 at 13:54, Peter Toye  wrote:

> Dear Geertjan,
>
> Agreed - but the address they give is the one that's auto-rejected!
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 11:35:13 AM, you wrote:
>
>
> You’ll need to subscribe to the mailing lists you want to write to.
>
> Gj
>
> On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:
>
> Dear Geertjan,
>
> Thanks. I wrote to the mailing list address and got the following answer:
>
>   You are not allowed to post to this mailing list, and your message has
>   been automatically rejected.  If you think that your messages are
>   being rejected in error, contact the mailing list owner at
>   mailman-ow...@openjdk.java.net.
>
> But that was the address that I mailed! A but recursive. Something wrong
> up at openJDK methinks. I've tried another address
>
> I'll file an issue in JIRA.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>


Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Agreed - but the address they give is the one that's auto-rejected!

Best regards,

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

-
Monday, October 21, 2019, 11:35:13 AM, you wrote:


You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
 
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.


Best regards,

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

Re: Java project now needs classpaths to run it

2019-10-21 Thread Geertjan Wielenga
You’ll need to subscribe to the mailing lists you want to write to.

Gj

On Mon, 21 Oct 2019 at 12:31, Peter Toye  wrote:

> Dear Geertjan,
>
> Thanks. I wrote to the mailing list address and got the following answer:
>
>   You are not allowed to post to this mailing list, and your message has
>   been automatically rejected.  If you think that your messages are
>   being rejected in error, contact the mailing list owner at
>   mailman-ow...@openjdk.java.net.
>
> But that was the address that I mailed! A but recursive. Something wrong
> up at openJDK methinks. I've tried another address
>
> I'll file an issue in JIRA.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 10:59:35 AM, you wrote:
>
>
> File an issue with steps, and we can investigate and see where to fix that
> output.
>
> If it still gives problems, can you say what those problems are, or how
> can we help?
>
> Gj
>
> On Mon, 21 Oct 2019 at 11:56, Peter Toye  wrote:
>
> Dear Geertjan,
>
> Thanks again. I'd found that page, and the code I produced was a copy of
> the code there. It seems that  a "-m" option is needed to indicate the main
> class.
> It still gives problems, but I'll try your suggestion of trying to join
> the openJDK mailing list.
>
> So the Ant script output now has three bugs:
>
>
>1. No double quotes round the Java executable directory "Program Files"
>2. "-module-path" should read "--module-path"
>3. "-m" needed before the main class.
>
>
>
>
> Why the Java designer can't just stick to a single syntax is beyond me.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 9:07:54 AM, you wrote:
>
>
> https://openjdk.java.net/projects/jigsaw/quick-start
>
> That should help, it includes the java command line syntax you're looking
> for.
>
> Gj
>
> On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga 
> wrote:
>
> To be honest, I'd love to help but I'm not going to spend any time
> guessing about your application, you're going to need to provide a way to
> access it, e.g., put it on GitHub, so that it can be downloaded, e.g.,
> sorry, "import com.ptoye.astro.World", no idea what that is, and please do
> not try to explain -- just take your application and put it on GitHub or
> somewhere else (please not as a ZIP file) and then I'll be happy to help.
>
> Indeed, yes, it would be very useful to everyone if you'd join the openjdk
> mailing lists and explain the problems you're having running java on the
> command line -- they need to know that otherwise they'll never hear from
> you and never make it work the way you'd like.
>
> Gj
>
>
>
> On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:
>
> Dear Geertjan,
>
> OK, I've read up on modules and written my first Hello World program which
> compiles and runs fine using NetBeans. However, it doesn't run from a
> command line, even after I've removed the mistakes in the Ant-generated
> suggestion:
>
> D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path
> D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Error: Could not find or load main class com.ptoye.greetings.Main
> Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main
>
> The main class is:
>
> package com.ptoye.greetings;
> import com.ptoye.astro.World;
> ??public class Main {??
> public static void main(String[] args) {
> ??System.out.format("Greetings %s!%n", World.name());
> ??}
> ??}??
>
> Where does one go from here? I'm using the Oracle version of Java, Would
> OpenJDK make any difference? AFAICS  it's the same.
>
> Thanks for the mailing list link. I looked at them but they all seem to be
> oriented towards people developing OpenJDK rather than users. There isn't a
> "support" or "help" link on the OpenJDK site.
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 14, 2019, 10:18:27 AM, you wrote:
>
>
>
>
>
>
>
>
> On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:
>
> Dear Geertjan,
>
> I agree that the "java" command has nothing to do with Netbeans. I'll try
> to be more explicit:
>
> I have a project which dates back to about 2006 and has a main class which
> I'll call A. This uses a separate

Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Thanks. I wrote to the mailing list address and got the following answer:

  You are not allowed to post to this mailing list, and your message has
  been automatically rejected.  If you think that your messages are
  being rejected in error, contact the mailing list owner at
  mailman-ow...@openjdk.java.net.
  
But that was the address that I mailed! A but recursive. Something wrong up at 
openJDK methinks. I've tried another address

I'll file an issue in JIRA.

Best regards,

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

-
Monday, October 21, 2019, 10:59:35 AM, you wrote:


File an issue with steps, and we can investigate and see where to fix that 
output.

If it still gives problems, can you say what those problems are, or how can we 
help?

Gj

On Mon, 21 Oct 2019 at 11:56, Peter Toye  wrote:

Dear Geertjan,

Thanks again. I'd found that page, and the code I produced was a copy of the 
code there. It seems that  a "-m" option is needed to indicate the main class.
It still gives problems, but I'll try your suggestion of trying to join the 
openJDK mailing list.

So the Ant script output now has three bugs:

No double quotes round the Java executable directory "Program Files"
"-module-path" should read "--module-path"
"-m" needed before the main class.


Why the Java designer can't just stick to a single syntax is beyond me.


Best regards,

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

-
Monday, October 21, 2019, 9:07:54 AM, you wrote:


https://openjdk.java.net/projects/jigsaw/quick-start

That should help, it includes the java command line syntax you're looking for.

Gj

On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga  wrote:

To be honest, I'd love to help but I'm not going to spend any time guessing 
about your application, you're going to need to provide a way to access it, 
e.g., put it on GitHub, so that it can be downloaded, e.g., sorry, "import 
com.ptoye.astro.World", no idea what that is, and please do not try to explain 
-- just take your application and put it on GitHub or somewhere else (please 
not as a ZIP file) and then I'll be happy to help.

Indeed, yes, it would be very useful to everyone if you'd join the openjdk 
mailing lists and explain the problems you're having running java on the 
command line -- they need to know that otherwise they'll never hear from you 
and never make it work the way you'd like.

Gj



On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:

Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

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

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:







On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not t

Re: Java project now needs classpaths to run it

2019-10-21 Thread Geertjan Wielenga
File an issue with steps, and we can investigate and see where to fix that
output.

If it still gives problems, can you say what those problems are, or how can
we help?

Gj

On Mon, 21 Oct 2019 at 11:56, Peter Toye  wrote:

> Dear Geertjan,
>
> Thanks again. I'd found that page, and the code I produced was a copy of
> the code there. It seems that  a "-m" option is needed to indicate the main
> class.
> It still gives problems, but I'll try your suggestion of trying to join
> the openJDK mailing list.
>
> So the Ant script output now has three bugs:
>
>
>1. No double quotes round the Java executable directory "Program Files"
>2. "-module-path" should read "--module-path"
>3. "-m" needed before the main class.
>
>
>
> Why the Java designer can't just stick to a single syntax is beyond me.
>
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 21, 2019, 9:07:54 AM, you wrote:
>
>
> https://openjdk.java.net/projects/jigsaw/quick-start
>
> That should help, it includes the java command line syntax you're looking
> for.
>
> Gj
>
> On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga 
> wrote:
>
> To be honest, I'd love to help but I'm not going to spend any time
> guessing about your application, you're going to need to provide a way to
> access it, e.g., put it on GitHub, so that it can be downloaded, e.g.,
> sorry, "import com.ptoye.astro.World", no idea what that is, and please do
> not try to explain -- just take your application and put it on GitHub or
> somewhere else (please not as a ZIP file) and then I'll be happy to help.
>
> Indeed, yes, it would be very useful to everyone if you'd join the openjdk
> mailing lists and explain the problems you're having running java on the
> command line -- they need to know that otherwise they'll never hear from
> you and never make it work the way you'd like.
>
> Gj
>
>
>
> On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:
>
> Dear Geertjan,
>
> OK, I've read up on modules and written my first Hello World program which
> compiles and runs fine using NetBeans. However, it doesn't run from a
> command line, even after I've removed the mistakes in the Ant-generated
> suggestion:
>
> D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path
> D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Error: Could not find or load main class com.ptoye.greetings.Main
> Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main
>
> The main class is:
>
> package com.ptoye.greetings;
> import com.ptoye.astro.World;
> ??public class Main {??
> public static void main(String[] args) {
> ??System.out.format("Greetings %s!%n", World.name());
> ??}
> ??}??
>
> Where does one go from here? I'm using the Oracle version of Java, Would
> OpenJDK make any difference? AFAICS  it's the same.
>
> Thanks for the mailing list link. I looked at them but they all seem to be
> oriented towards people developing OpenJDK rather than users. There isn't a
> "support" or "help" link on the OpenJDK site.
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 14, 2019, 10:18:27 AM, you wrote:
>
>
>
>
>
>
>
> On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:
>
> Dear Geertjan,
>
> I agree that the "java" command has nothing to do with Netbeans. I'll try
> to be more explicit:
>
> I have a project which dates back to about 2006 and has a main class which
> I'll call A. This uses a separate class B which I developed separately. I
> included B as a library using A's project properties.
>
> Using Netbeans 8 (and earlier) it was possible to run the project using a
> command line like
>   java -jar A.jar
> and the program ran. The Java version was 1.8. The path to the Java
> executable is in my PATH.
>
> Earlier this year I wanted to develop it further, and decided to move to
> the latest version of NetBeans (11.1) and Java (12). Now the command line
> as given in the build output is
>   C:\Program Files\Java\jdk-12.0.1/bin/java -cp *directory\*A.jar;
> *directory\*B.jar *classpath.*A
>
> My main point is that I don't understand how or why this has changed.
>
> https://openjdk.java.net/projects/jigsaw/
>
> There is now a module system in Java, meaning that there is now a module
> path and a class path. That was not there in JDK 8 and is now there since
> then.
>
> Can you join the Java mailing lists and discuss further there:
> https://mail.openjdk.java.net/mailman/listinfo
>
> Gj
>


Re: Java project now needs classpaths to run it

2019-10-21 Thread Peter Toye
Dear Geertjan,

Thanks again. I'd found that page, and the code I produced was a copy of the 
code there. It seems that  a "-m" option is needed to indicate the main class.
It still gives problems, but I'll try your suggestion of trying to join the 
openJDK mailing list.

So the Ant script output now has three bugs:

No double quotes round the Java executable directory "Program Files"
"-module-path" should read "--module-path"
"-m" needed before the main class.

Why the Java designer can't just stick to a single syntax is beyond me.

Best regards,

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

-
Monday, October 21, 2019, 9:07:54 AM, you wrote:


https://openjdk.java.net/projects/jigsaw/quick-start

That should help, it includes the java command line syntax you're looking for.

Gj

On Sun, Oct 20, 2019 at 11:21 PM Geertjan Wielenga  wrote:

To be honest, I'd love to help but I'm not going to spend any time guessing 
about your application, you're going to need to provide a way to access it, 
e.g., put it on GitHub, so that it can be downloaded, e.g., sorry, "import 
com.ptoye.astro.World", no idea what that is, and please do not try to explain 
-- just take your application and put it on GitHub or somewhere else (please 
not as a ZIP file) and then I'll be happy to help.

Indeed, yes, it would be very useful to everyone if you'd join the openjdk 
mailing lists and explain the problems you're having running java on the 
command line -- they need to know that otherwise they'll never hear from you 
and never make it work the way you'd like.

Gj



On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:

Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

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

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:






On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

Re: Java project now needs classpaths to run it

2019-10-20 Thread Geertjan Wielenga
To be honest, I'd love to help but I'm not going to spend any time guessing
about your application, you're going to need to provide a way to access it,
e.g., put it on GitHub, so that it can be downloaded, e.g., sorry, "import
com.ptoye.astro.World", no idea what that is, and please do not try to
explain -- just take your application and put it on GitHub or somewhere
else (please not as a ZIP file) and then I'll be happy to help.

Indeed, yes, it would be very useful to everyone if you'd join the openjdk
mailing lists and explain the problems you're having running java on the
command line -- they need to know that otherwise they'll never hear from
you and never make it work the way you'd like.

Gj



On Sun, Oct 20, 2019 at 8:10 PM Peter Toye  wrote:

> Dear Geertjan,
>
> OK, I've read up on modules and written my first Hello World program which
> compiles and runs fine using NetBeans. However, it doesn't run from a
> command line, even after I've removed the mistakes in the Ant-generated
> suggestion:
>
> D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path
> D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Error: Could not find or load main class com.ptoye.greetings.Main
> Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main
>
> The main class is:
>
> package com.ptoye.greetings;
> import com.ptoye.astro.World;
> ??public class Main {??
> public static void main(String[] args) {
> ??System.out.format("Greetings %s!%n", World.name());
> ??}
> ??}??
>
> Where does one go from here? I'm using the Oracle version of Java, Would
> OpenJDK make any difference? AFAICS  it's the same.
>
> Thanks for the mailing list link. I looked at them but they all seem to be
> oriented towards people developing OpenJDK rather than users. There isn't a
> "support" or "help" link on the OpenJDK site.
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 14, 2019, 10:18:27 AM, you wrote:
>
>
>
>
>
>
> On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:
>
> Dear Geertjan,
>
> I agree that the "java" command has nothing to do with Netbeans. I'll try
> to be more explicit:
>
> I have a project which dates back to about 2006 and has a main class which
> I'll call A. This uses a separate class B which I developed separately. I
> included B as a library using A's project properties.
>
> Using Netbeans 8 (and earlier) it was possible to run the project using a
> command line like
>   java -jar A.jar
> and the program ran. The Java version was 1.8. The path to the Java
> executable is in my PATH.
>
> Earlier this year I wanted to develop it further, and decided to move to
> the latest version of NetBeans (11.1) and Java (12). Now the command line
> as given in the build output is
>   C:\Program Files\Java\jdk-12.0.1/bin/java -cp *directory\*A.jar;
> *directory\*B.jar *classpath.*A
>
> My main point is that I don't understand how or why this has changed.
>
> https://openjdk.java.net/projects/jigsaw/
>
> There is now a module system in Java, meaning that there is now a module
> path and a class path. That was not there in JDK 8 and is now there since
> then.
>
> Can you join the Java mailing lists and discuss further there:
> https://mail.openjdk.java.net/mailman/listinfo
>
> Gj
>


Re: Java project now needs classpaths to run it

2019-10-20 Thread Geertjan Wielenga
What is the version of Java you’re using on the command line?

Gj

On Sun, 20 Oct 2019 at 20:10, Peter Toye  wrote:

> Dear Geertjan,
>
> OK, I've read up on modules and written my first Hello World program which
> compiles and runs fine using NetBeans. However, it doesn't run from a
> command line, even after I've removed the mistakes in the Ant-generated
> suggestion:
>
> D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path
> D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Error: Could not find or load main class com.ptoye.greetings.Main
> Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main
>
> The main class is:
>
> package com.ptoye.greetings;
> import com.ptoye.astro.World;
> ??public class Main {??
> public static void main(String[] args) {
> ??System.out.format("Greetings %s!%n", World.name());
> ??    }
> ??}??
>
> Where does one go from here? I'm using the Oracle version of Java, Would
> OpenJDK make any difference? AFAICS  it's the same.
>
> Thanks for the mailing list link. I looked at them but they all seem to be
> oriented towards people developing OpenJDK rather than users. There isn't a
> "support" or "help" link on the OpenJDK site.
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Monday, October 14, 2019, 10:18:27 AM, you wrote:
>
>
>
>
>
>
> On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:
>
> Dear Geertjan,
>
> I agree that the "java" command has nothing to do with Netbeans. I'll try
> to be more explicit:
>
> I have a project which dates back to about 2006 and has a main class which
> I'll call A. This uses a separate class B which I developed separately. I
> included B as a library using A's project properties.
>
> Using Netbeans 8 (and earlier) it was possible to run the project using a
> command line like
>   java -jar A.jar
> and the program ran. The Java version was 1.8. The path to the Java
> executable is in my PATH.
>
> Earlier this year I wanted to develop it further, and decided to move to
> the latest version of NetBeans (11.1) and Java (12). Now the command line
> as given in the build output is
>   C:\Program Files\Java\jdk-12.0.1/bin/java -cp *directory\*A.jar;
> *directory\*B.jar *classpath.*A
>
> My main point is that I don't understand how or why this has changed.
>
> https://openjdk.java.net/projects/jigsaw/
>
> There is now a module system in Java, meaning that there is now a module
> path and a class path. That was not there in JDK 8 and is now there since
> then.
>
> Can you join the Java mailing lists and discuss further there:
> https://mail.openjdk.java.net/mailman/listinfo
>
> Gj
>


Re: Java project now needs classpaths to run it

2019-10-20 Thread Peter Toye
Dear Geertjan,

OK, I've read up on modules and written my first Hello World program which 
compiles and runs fine using NetBeans. However, it doesn't run from a command 
line, even after I've removed the mistakes in the Ant-generated suggestion:

D:\>"C:\Program Files\Java\jdk-12.0.1/bin/java" --module-path 
D:\Peter\Netbeans\TestModules1\build\modules com.ptoye.greetings.Main
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error: Could not find or load main class com.ptoye.greetings.Main
Caused by: java.lang.ClassNotFoundException: com.ptoye.greetings.Main

The main class is:

package com.ptoye.greetings;
import com.ptoye.astro.World;
??public class Main {??
public static void main(String[] args) {
??System.out.format("Greetings %s!%n", World.name());
??}
??}??

Where does one go from here? I'm using the Oracle version of Java, Would 
OpenJDK make any difference? AFAICS  it's the same.

Thanks for the mailing list link. I looked at them but they all seem to be 
oriented towards people developing OpenJDK rather than users. There isn't a 
"support" or "help" link on the OpenJDK site.

Best regards,

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

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:





On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

Re: Java project now needs classpaths to run it

2019-10-15 Thread Peter Toye
Dear Geertjan,

Thanks - I’ll try that. I don't think OpenJDK existed when I last looked at 
Java. Astonishing how you can get out-of-date so fast.

Best regards,

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

-
Monday, October 14, 2019, 10:18:27 AM, you wrote:




On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties.

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. 


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module path 
and a class path. That was not there in JDK 8 and is now there since then.

Can you join the Java mailing lists and discuss further there: 
https://mail.openjdk.java.net/mailman/listinfo

Gj

 

I agree that Oracle no longer have a JAVA_HOME environment variable to point to 
the java run-time executable and they don't put it in the PATH, which is a 
pain, but I can do that myself.

But as far as I can see, the "Libraries" sections of "project properties" are 
identical for the NB8 and NB11 projects, with a few directory changes. So why 
is the command line different? Is this a Java issue or has someting changed in 
the way that NB builds its jar files?

And also, the NB11.1 command line as given by Ant is incorrect - the Java 
program path needs quotes because of the space in the path. A minor bug, but 
annoying when you use cut-and-paste to put it into a batch file!


Does this clear things up?

Best regards,

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

-
Sunday, October 13, 2019, 7:47:57 PM, you wrote:




You appear to be talking about the “java” command line below, which has nothing 
at all to do with NetBeans. You seen to be using different versions of Java.

Gj


On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:

Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

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

Re: {NetBeans IDE] {JAVA]

2019-10-15 Thread Neil C Smith
On Wed, 9 Oct 2019, 05:13 Lou,  wrote:

> -Dremote.platform.home=/home/pi/jre/
>
...

> '/home/pi/jre//bin/java'
>
That double slash looks suspicious. Maybe the slashes at the end of the
various remote location properties need removing?

Best wishes,

Neil


Re: {NetBeans IDE] {JAVA]

2019-10-14 Thread Lou
Pete, thanks for the clue.  Looking at the file structure remotely, I 
think you are correct there is another install of java.


I need to check the documentation. ("When all else fails, read the ... 
manual")


Lou

On 10/14/2019 3:34 AM, Pete Whelpton wrote:

Hi Lou,

Sounds like one of two things:

1) The linker needs to access that .so file and can't - probably 
because it is in the home directory of the pi user. If you move the 
jdk folder under /usr/lib/ (on my Linux laptop I tend to stick all the 
different version of Java I have in /usr/lib/jdk/) with owner 
permission for the root user/group it should have the permissions it 
needs there.


2) There is another version of Java already installed on Raspian and 
some of the environment variables / symlinks that came with it are 
causing a conflict. If you try java -version at the shell do you get a 
version number?


I have a Pi 3B at home so will try and replicate - probably won't get 
a chance until this weekend.


Pete

On Wed, Oct 9, 2019 at 5:13 AM Lou <mailto:lk...@knob.com>> wrote:


When trying to add a remote embedded java platform on a Raspberry
pi I get an error when I click 

Looking at the Raspberry file structure it looks like the jre gets
properly installed, however the last step fails.

The following output seems to indicate that the problem is "error
while loading shared libraries: libjli.so:" which I do not see in
the raspberry /lib/ directory.   How do I fix this? With the error
the IDE does not know about the remote platform and I can't move
on.   I see libjli.so in the IDE under  -> 

{Output}

ant -f
C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
-Dremote.working.dir=/home/pi/NetBeansProjects/
-Dremote.password=* -Dremote.username=pi -Dremote.port=22
"-Dprobe.file=C:\\Program

Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
-Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/

-Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
connect-ssh-password
connect-ssh-password:
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
cmd : mkdir -p '/home/pi/NetBeansProjects/'
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
done.
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
    cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java'
-jar org-netbeans-modules-java-j2seembedded-probe.jar
platform.properties
/home/pi/jre//bin/java: error while loading shared libraries:
libjli.so: cannot open shared object file: No such file or directory
C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
Remote command failed with exit status 127
BUILD FAILED (total time: 10 seconds)

{Raspberry pi file structure}

pi@raspberrypi:~ $ ls
Desktop    Downloads  MagPi    Music Pictures Templates
Documents  jre    mu_code  NetBeansProjects  Public Videos
pi@raspberrypi:~ $ ls NetBeansProjects
org-netbeans-modules-java-j2seembedded-probe.jar
<-
pi@raspberrypi:~ $ ls jre
bin  bom  COPYRIGHT  lib  release THIRDPARTYLICENSEREADME.txt
pi@raspberrypi:~ $ ls jre/bin
java  keytool  rmid  rmiregistry
pi@raspberrypi:~ $ ls jre/lib <-
arm    jvm.hprof.txt
calendars.properties   logging.properties
charsets.jar   management
classlist  management-agent.jar
content-types.properties   meta-index
currency.data  net.properties
ext    resources.jar
gcf.jar    rt.jar
hijrah-config-umalqura.properties  security
jce.jar    tzdb.dat
jsse.jar
pi@raspberrypi:~ $


-- 


Lou



Re: {NetBeans IDE] {JAVA]

2019-10-14 Thread Pete Whelpton
Hi Lou,

Sounds like one of two things:

1) The linker needs to access that .so file and can't - probably because it
is in the home directory of the pi user.  If you move the jdk folder under
/usr/lib/ (on my Linux laptop I tend to stick all the different version of
Java I have in /usr/lib/jdk/) with owner permission for the root user/group
it should have the permissions it needs there.

2) There is another version of Java already installed on Raspian and some
of the environment variables / symlinks that came with it are causing a
conflict. If you try java -version at the shell do you get a version number?

I have a Pi 3B at home so will try and replicate - probably won't get a
chance until this weekend.

Pete

On Wed, Oct 9, 2019 at 5:13 AM Lou  wrote:

> When trying to add a remote embedded java platform on a Raspberry pi I get
> an error when I click 
>
> Looking at the Raspberry file structure it looks like the jre gets
> properly installed, however the last step fails.
>
> The following output seems to indicate that the problem is "error while
> loading shared libraries: libjli.so:" which I do not see in the raspberry
> /lib/ directory.   How do I fix this? With the error the IDE does not know
> about the remote platform and I can't move on.   I see libjli.so in the IDE
> under  -> 
>
> {Output}
>
> ant -f
> C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
> -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=*
> -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program
> Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
> -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/
> -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
> connect-ssh-password
> connect-ssh-password:
> Connecting to 192.168.1.147:22
> cmd : mkdir -p '/home/pi/NetBeansProjects/'
> Connecting to 192.168.1.147:22
> done.
> Connecting to 192.168.1.147:22
> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar
> org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
> /home/pi/jre//bin/java: error while loading shared libraries: libjli.so:
> cannot open shared object file: No such file or directory
> C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
> Remote command failed with exit status 127
> BUILD FAILED (total time: 10 seconds)
>
> {Raspberry pi file structure}
>
> pi@raspberrypi:~ $ ls
> DesktopDownloads  MagPiMusic Pictures  Templates
> Documents  jremu_code  NetBeansProjects  PublicVideos
> pi@raspberrypi:~ $ ls NetBeansProjects
> org-netbeans-modules-java-j2seembedded-probe.jar
> <-
> pi@raspberrypi:~ $ ls jre
> bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
> pi@raspberrypi:~ $ ls jre/bin
> java  keytool  rmid  rmiregistry
> pi@raspberrypi:~ $ ls jre/lib<-
> armjvm.hprof.txt
> calendars.properties   logging.properties
> charsets.jar   management
> classlist  management-agent.jar
> content-types.properties   meta-index
> currency.data  net.properties
> extresources.jar
> gcf.jarrt.jar
> hijrah-config-umalqura.properties  security
> jce.jartzdb.dat
> jsse.jar
> pi@raspberrypi:~ $
>
>
> --
>
> Lou
>
>


Re: Java project now needs classpaths to run it

2019-10-14 Thread Geertjan Wielenga
On Mon, Oct 14, 2019 at 11:16 AM Peter Toye  wrote:

> Dear Geertjan,
>
> I agree that the "java" command has nothing to do with Netbeans. I'll try
> to be more explicit:
>
> I have a project which dates back to about 2006 and has a main class which
> I'll call A. This uses a separate class B which I developed separately. I
> included B as a library using A's project properties.
>
> Using Netbeans 8 (and earlier) it was possible to run the project using a
> command line like
>   java -jar A.jar
> and the program ran. The Java version was 1.8. The path to the Java
> executable is in my PATH.
>
> Earlier this year I wanted to develop it further, and decided to move to
> the latest version of NetBeans (11.1) and Java (12). Now the command line
> as given in the build output is
>   C:\Program Files\Java\jdk-12.0.1/bin/java -cp *directory\*A.jar;
> *directory\*B.jar *classpath.*A
>
> My main point is that I don't understand how or why this has changed.
>


https://openjdk.java.net/projects/jigsaw/

There is now a module system in Java, meaning that there is now a module
path and a class path. That was not there in JDK 8 and is now there since
then.

Can you join the Java mailing lists and discuss further there:
https://mail.openjdk.java.net/mailman/listinfo

Gj



> I agree that Oracle no longer have a JAVA_HOME environment variable to
> point to the java run-time executable and they don't put it in the PATH,
> which is a pain, but I can do that myself.
>
> But as far as I can see, the "Libraries" sections of "project properties"
> are identical for the NB8 and NB11 projects, with a few directory changes.
> So why is the command line different? Is this a Java issue or has someting
> changed in the way that NB builds its jar files?
>
> And also, the NB11.1 command line as given by Ant is incorrect - the Java
> program path needs quotes because of the space in the path. A minor bug,
> but annoying when you use cut-and-paste to put it into a batch file!
>
>
> Does this clear things up?
>
> Best regards,
>
> Peter
> mailto:netbe...@ptoye.com
> www.ptoye.com
>
> -
> Sunday, October 13, 2019, 7:47:57 PM, you wrote:
>
>
>
>
> You appear to be talking about the “java” command line below, which has
> nothing at all to do with NetBeans. You seen to be using different versions
> of Java.
>
> Gj
>
>
> On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:
>
> Having just moved from NB version 8 to 11.1 there seems to have been a
> change in the command line needed to run a project.
>
> The OS is Windows 7 Home.
>
> The project has two external libraries: one in the Java modules in the
> NetBeans 11 directory, and one of my own. In version 8 it was possible to
> run the program with a command line like
>
>java -jar program.jar
>
> but this no longer works, and I have to put in a command line like
>
>   java -cp library paths program.jar
>
> which is a pain, as I can't automate that into a batch file.
>
> Is there any way of getting the libraries (or references to them) included
> in the jar file? The properties|Libraries|Run tab shows that the classpaths
> for Compiling Sources and Compiled Sources are included (at least as I
> understand the symbols on that page). Does the "Build Dependencies" tickbox
> have any significance here? The lack of a help file means that I can't find
> out what most of the window items actually mean.
>
> As a rider to this question, there seems to be two small bugs in the Ant
> script which produces the command line for running the project :
>
> To run this application from the command line without Ant, try:
> ??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans
> 11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
> com.ptoye.TestKiller.TestKiller??
>
> 1) In Windows, the Java executable and Netbeans are in the "Program Files"
> or "Program Files (x86)" folder. This should have quotes round it to run
> successfully.
>
> 2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be
> C:\Program Files\NetBeans-11.1?
>
> Regards,
>
> Peter
> mailto:netbe...@ptoye.com 
> www.ptoye.com
>


Re: Java project now needs classpaths to run it

2019-10-14 Thread Peter Toye
Dear Geertjan,

I agree that the "java" command has nothing to do with Netbeans. I'll try to be 
more explicit:

I have a project which dates back to about 2006 and has a main class which I'll 
call A. This uses a separate class B which I developed separately. I included B 
as a library using A's project properties. 

Using Netbeans 8 (and earlier) it was possible to run the project using a 
command line like
  java -jar A.jar
and the program ran. The Java version was 1.8. The path to the Java executable 
is in my PATH.

Earlier this year I wanted to develop it further, and decided to move to the 
latest version of NetBeans (11.1) and Java (12). Now the command line as given 
in the build output is
  C:\Program Files\Java\jdk-12.0.1/bin/java -cp directory\A.jar;directory\B.jar 
classpath.A

My main point is that I don't understand how or why this has changed. I agree 
that Oracle no longer have a JAVA_HOME environment variable to point to the 
java run-time executable and they don't put it in the PATH, which is a pain, 
but I can do that myself.

But as far as I can see, the "Libraries" sections of "project properties" are 
identical for the NB8 and NB11 projects, with a few directory changes. So why 
is the command line different? Is this a Java issue or has someting changed in 
the way that NB builds its jar files?

And also, the NB11.1 command line as given by Ant is incorrect - the Java 
program path needs quotes because of the space in the path. A minor bug, but 
annoying when you use cut-and-paste to put it into a batch file!


Does this clear things up?

Best regards,

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

-
Sunday, October 13, 2019, 7:47:57 PM, you wrote:



You appear to be talking about the “java” command line below, which has nothing 
at all to do with NetBeans. You seen to be using different versions of Java.

Gj


On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:

Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

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

Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Geertjan Wielenga
PS: “it all seems to work until the end” is like saying “everything went
fine with the rocket launch, except for the ending”.


On Sun, 13 Oct 2019 at 23:47, Geertjan Wielenga  wrote:

> 2014 is 5 years ago. That is not “a little dated”. If it were to work
> today, I would be extremely surprised. If you can figure out what needs to
> be done, that would help, which would be great, otherwise I doubt anyone
> else will.
>
> Gj
>
> On Sun, 13 Oct 2019 at 23:42, Lou  wrote:
>
>> I started with https://www.youtube.com/watch?v=ebHbDlTnV-I  It is a
>> little dated (2014) but all seems to work until the end 
>>
>> Looking at the directory structure on the Raspberry, the  Remote
>> Platform seems to create the structure in jre.  However, it looks to me tat
>> the required library libjli.so is not loaded on the pi.
>>
>> JDK 1.8.0_211
>>
>> NetBeans is on Windows 10,  Raspbian OS on the Raspberry Pi 3 B+
>>
>>
>> Lou
>>
>> On 10/13/2019 2:55 PM, Geertjan Wielenga wrote:
>>
>> OK, I see C:\\Program Files\\NetBeans-11.1 in there, but I don't think
>> anyone has tried or verified that with Raspberry Pi, what would be the
>> procedure to try that out?
>>
>> Gj
>>
>> On Sun, Oct 13, 2019 at 10:54 PM Geertjan Wielenga 
>> wrote:
>>
>>> What version of the JDK are you using? Which operating system, which
>>> version of NetBeans? Which steps did you follow, what must we do to
>>> reproduce the problem?
>>>
>>> Gj
>>>
>>> On Sun, Oct 13, 2019 at 10:53 PM Lou  wrote:
>>>
>>>> I could use some help here. I'm new to NetBeans and don't have a clue
>>>> where to start.
>>>>
>>>> Lou
>>>>
>>>> On 10/8/2019 10:13 PM, Lou wrote:
>>>>
>>>> When trying to add a remote embedded java platform on a Raspberry pi I
>>>> get an error when I click 
>>>>
>>>> Looking at the Raspberry file structure it looks like the jre gets
>>>> properly installed, however the last step fails.
>>>>
>>>> The following output seems to indicate that the problem is "error while
>>>> loading shared libraries: libjli.so:" which I do not see in the raspberry
>>>> /lib/ directory.   How do I fix this? With the error the IDE does not know
>>>> about the remote platform and I can't move on.   I see libjli.so in the IDE
>>>> under  -> 
>>>>
>>>> {Output}
>>>>
>>>> ant -f
>>>> C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
>>>> -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=*
>>>> -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program
>>>> Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
>>>> -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/
>>>> -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
>>>> connect-ssh-password
>>>> connect-ssh-password:
>>>> Connecting to 192.168.1.147:22
>>>> cmd : mkdir -p '/home/pi/NetBeansProjects/'
>>>> Connecting to 192.168.1.147:22
>>>> done.
>>>> Connecting to 192.168.1.147:22
>>>> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar
>>>> org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
>>>> /home/pi/jre//bin/java: error while loading shared libraries:
>>>> libjli.so: cannot open shared object file: No such file or directory
>>>> C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
>>>> Remote command failed with exit status 127
>>>> BUILD FAILED (total time: 10 seconds)
>>>>
>>>> {Raspberry pi file structure}
>>>>
>>>> pi@raspberrypi:~ $ ls
>>>> DesktopDownloads  MagPiMusic Pictures  Templates
>>>> Documents  jremu_code  NetBeansProjects  PublicVideos
>>>> pi@raspberrypi:~ $ ls NetBeansProjects
>>>> org-netbeans-modules-java-j2seembedded-probe.jar
>>>> <-
>>>> pi@raspberrypi:~ $ ls jre
>>>> bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
>>>> pi@raspberrypi:~ $ ls jre/bin
>>>> java  keytool  rmid  rmiregistry
>>>> pi@raspberrypi:~ $ ls jre/lib<-
>>>> armjvm.hprof.txt
>>>> calendars.properties   logging.properties
>>>> charsets.jar   management
>>>> classlist  management-agent.jar
>>>> content-types.properties   meta-index
>>>> currency.data  net.properties
>>>> extresources.jar
>>>> gcf.jarrt.jar
>>>> hijrah-config-umalqura.properties  security
>>>> jce.jartzdb.dat
>>>> jsse.jar
>>>> pi@raspberrypi:~ $
>>>>
>>>>
>>>> --
>>>>
>>>> Lou
>>>>
>>>>


Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Geertjan Wielenga
2014 is 5 years ago. That is not “a little dated”. If it were to work
today, I would be extremely surprised. If you can figure out what needs to
be done, that would help, which would be great, otherwise I doubt anyone
else will.

Gj

On Sun, 13 Oct 2019 at 23:42, Lou  wrote:

> I started with https://www.youtube.com/watch?v=ebHbDlTnV-I  It is a
> little dated (2014) but all seems to work until the end 
>
> Looking at the directory structure on the Raspberry, the  Remote
> Platform seems to create the structure in jre.  However, it looks to me tat
> the required library libjli.so is not loaded on the pi.
>
> JDK 1.8.0_211
>
> NetBeans is on Windows 10,  Raspbian OS on the Raspberry Pi 3 B+
>
>
> Lou
>
> On 10/13/2019 2:55 PM, Geertjan Wielenga wrote:
>
> OK, I see C:\\Program Files\\NetBeans-11.1 in there, but I don't think
> anyone has tried or verified that with Raspberry Pi, what would be the
> procedure to try that out?
>
> Gj
>
> On Sun, Oct 13, 2019 at 10:54 PM Geertjan Wielenga 
> wrote:
>
>> What version of the JDK are you using? Which operating system, which
>> version of NetBeans? Which steps did you follow, what must we do to
>> reproduce the problem?
>>
>> Gj
>>
>> On Sun, Oct 13, 2019 at 10:53 PM Lou  wrote:
>>
>>> I could use some help here. I'm new to NetBeans and don't have a clue
>>> where to start.
>>>
>>> Lou
>>>
>>> On 10/8/2019 10:13 PM, Lou wrote:
>>>
>>> When trying to add a remote embedded java platform on a Raspberry pi I
>>> get an error when I click 
>>>
>>> Looking at the Raspberry file structure it looks like the jre gets
>>> properly installed, however the last step fails.
>>>
>>> The following output seems to indicate that the problem is "error while
>>> loading shared libraries: libjli.so:" which I do not see in the raspberry
>>> /lib/ directory.   How do I fix this? With the error the IDE does not know
>>> about the remote platform and I can't move on.   I see libjli.so in the IDE
>>> under  -> 
>>>
>>> {Output}
>>>
>>> ant -f
>>> C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
>>> -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=*
>>> -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program
>>> Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
>>> -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/
>>> -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
>>> connect-ssh-password
>>> connect-ssh-password:
>>> Connecting to 192.168.1.147:22
>>> cmd : mkdir -p '/home/pi/NetBeansProjects/'
>>> Connecting to 192.168.1.147:22
>>> done.
>>> Connecting to 192.168.1.147:22
>>> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar
>>> org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
>>> /home/pi/jre//bin/java: error while loading shared libraries:
>>> libjli.so: cannot open shared object file: No such file or directory
>>> C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
>>> Remote command failed with exit status 127
>>> BUILD FAILED (total time: 10 seconds)
>>>
>>> {Raspberry pi file structure}
>>>
>>> pi@raspberrypi:~ $ ls
>>> DesktopDownloads  MagPiMusic Pictures  Templates
>>> Documents  jremu_code  NetBeansProjects  PublicVideos
>>> pi@raspberrypi:~ $ ls NetBeansProjects
>>> org-netbeans-modules-java-j2seembedded-probe.jar
>>> <-
>>> pi@raspberrypi:~ $ ls jre
>>> bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
>>> pi@raspberrypi:~ $ ls jre/bin
>>> java  keytool  rmid  rmiregistry
>>> pi@raspberrypi:~ $ ls jre/lib<-
>>> armjvm.hprof.txt
>>> calendars.properties   logging.properties
>>> charsets.jar   management
>>> classlist  management-agent.jar
>>> content-types.properties   meta-index
>>> currency.data  net.properties
>>> extresources.jar
>>> gcf.jarrt.jar
>>> hijrah-config-umalqura.properties  security
>>> jce.jartzdb.dat
>>> jsse.jar
>>> pi@raspberrypi:~ $
>>>
>>>
>>> --
>>>
>>> Lou
>>>
>>>


Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Lou
I started with https://www.youtube.com/watch?v=ebHbDlTnV-I  It is a 
little dated (2014) but all seems to work until the end 


Looking at the directory structure on the Raspberry, the  Remote 
Platform seems to create the structure in jre.  However, it looks to me 
tat the required library libjli.so is not loaded on the pi.


JDK 1.8.0_211

NetBeans is on Windows 10,  Raspbian OS on the Raspberry Pi 3 B+

Lou

On 10/13/2019 2:55 PM, Geertjan Wielenga wrote:
OK, I see C:\\Program Files\\NetBeans-11.1 in there, but I don't think 
anyone has tried or verified that with Raspberry Pi, what would be the 
procedure to try that out?


Gj

On Sun, Oct 13, 2019 at 10:54 PM Geertjan Wielenga 
mailto:geert...@apache.org>> wrote:


What version of the JDK are you using? Which operating system,
which version of NetBeans? Which steps did you follow, what must
we do to reproduce the problem?

Gj

On Sun, Oct 13, 2019 at 10:53 PM Lou mailto:lk...@knob.com>> wrote:

I could use some help here. I'm new to NetBeans and don't have
a clue where to start.

Lou

On 10/8/2019 10:13 PM, Lou wrote:


When trying to add a remote embedded java platform on a
Raspberry pi I get an error when I click 

Looking at the Raspberry file structure it looks like the jre
gets properly installed, however the last step fails.

The following output seems to indicate that the problem is
"error while loading shared libraries: libjli.so:" which I do
not see in the raspberry /lib/ directory.   How do I fix
this? With the error the IDE does not know about the remote
platform and I can't move on.   I see libjli.so in the IDE
under  -> 

{Output}

ant -f
C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
-Dremote.working.dir=/home/pi/NetBeansProjects/
-Dremote.password=* -Dremote.username=pi -Dremote.port=22
"-Dprobe.file=C:\\Program

Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
-Dremote.host=192.168.1.147
-Dremote.platform.home=/home/pi/jre/

-Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
connect-ssh-password
connect-ssh-password:
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
cmd : mkdir -p '/home/pi/NetBeansProjects/'
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
done.
Connecting to 192.168.1.147:22 <http://192.168.1.147:22>
cmd : cd '/home/pi/NetBeansProjects/';
'/home/pi/jre//bin/java' -jar
org-netbeans-modules-java-j2seembedded-probe.jar
    platform.properties
/home/pi/jre//bin/java: error while loading shared libraries:
libjli.so: cannot open shared object file: No such file or
directory
C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
Remote command failed with exit status 127
BUILD FAILED (total time: 10 seconds)

{Raspberry pi file structure}

pi@raspberrypi:~ $ ls
Desktop    Downloads  MagPi    Music Pictures  Templates
Documents  jre    mu_code  NetBeansProjects Public    Videos
pi@raspberrypi:~ $ ls NetBeansProjects
org-netbeans-modules-java-j2seembedded-probe.jar
<-
pi@raspberrypi:~ $ ls jre
bin  bom  COPYRIGHT  lib  release THIRDPARTYLICENSEREADME.txt
pi@raspberrypi:~ $ ls jre/bin
java  keytool  rmid  rmiregistry
pi@raspberrypi:~ $ ls jre/lib <-
arm    jvm.hprof.txt
calendars.properties logging.properties
charsets.jar   management
classlist management-agent.jar
content-types.properties   meta-index
currency.data  net.properties
ext    resources.jar
gcf.jar    rt.jar
hijrah-config-umalqura.properties  security
jce.jar    tzdb.dat
jsse.jar
pi@raspberrypi:~ $


-- 


Lou




Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Geertjan Wielenga
OK, I see C:\\Program Files\\NetBeans-11.1 in there, but I don't think
anyone has tried or verified that with Raspberry Pi, what would be the
procedure to try that out?

Gj

On Sun, Oct 13, 2019 at 10:54 PM Geertjan Wielenga 
wrote:

> What version of the JDK are you using? Which operating system, which
> version of NetBeans? Which steps did you follow, what must we do to
> reproduce the problem?
>
> Gj
>
> On Sun, Oct 13, 2019 at 10:53 PM Lou  wrote:
>
>> I could use some help here. I'm new to NetBeans and don't have a clue
>> where to start.
>>
>> Lou
>>
>> On 10/8/2019 10:13 PM, Lou wrote:
>>
>> When trying to add a remote embedded java platform on a Raspberry pi I
>> get an error when I click 
>>
>> Looking at the Raspberry file structure it looks like the jre gets
>> properly installed, however the last step fails.
>>
>> The following output seems to indicate that the problem is "error while
>> loading shared libraries: libjli.so:" which I do not see in the raspberry
>> /lib/ directory.   How do I fix this? With the error the IDE does not know
>> about the remote platform and I can't move on.   I see libjli.so in the IDE
>> under  -> 
>>
>> {Output}
>>
>> ant -f
>> C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
>> -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=*
>> -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program
>> Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
>> -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/
>> -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
>> connect-ssh-password
>> connect-ssh-password:
>> Connecting to 192.168.1.147:22
>> cmd : mkdir -p '/home/pi/NetBeansProjects/'
>> Connecting to 192.168.1.147:22
>> done.
>> Connecting to 192.168.1.147:22
>> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar
>> org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
>> /home/pi/jre//bin/java: error while loading shared libraries: libjli.so:
>> cannot open shared object file: No such file or directory
>> C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
>> Remote command failed with exit status 127
>> BUILD FAILED (total time: 10 seconds)
>>
>> {Raspberry pi file structure}
>>
>> pi@raspberrypi:~ $ ls
>> DesktopDownloads  MagPiMusic Pictures  Templates
>> Documents  jremu_code  NetBeansProjects  PublicVideos
>> pi@raspberrypi:~ $ ls NetBeansProjects
>> org-netbeans-modules-java-j2seembedded-probe.jar
>> <-
>> pi@raspberrypi:~ $ ls jre
>> bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
>> pi@raspberrypi:~ $ ls jre/bin
>> java  keytool  rmid  rmiregistry
>> pi@raspberrypi:~ $ ls jre/lib<-
>> armjvm.hprof.txt
>> calendars.properties   logging.properties
>> charsets.jar   management
>> classlist  management-agent.jar
>> content-types.properties   meta-index
>> currency.data  net.properties
>> extresources.jar
>> gcf.jarrt.jar
>> hijrah-config-umalqura.properties  security
>> jce.jartzdb.dat
>> jsse.jar
>> pi@raspberrypi:~ $
>>
>>
>> --
>>
>> Lou
>>
>>


Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Geertjan Wielenga
What version of the JDK are you using? Which operating system, which
version of NetBeans? Which steps did you follow, what must we do to
reproduce the problem?

Gj

On Sun, Oct 13, 2019 at 10:53 PM Lou  wrote:

> I could use some help here. I'm new to NetBeans and don't have a clue
> where to start.
>
> Lou
>
> On 10/8/2019 10:13 PM, Lou wrote:
>
> When trying to add a remote embedded java platform on a Raspberry pi I get
> an error when I click 
>
> Looking at the Raspberry file structure it looks like the jre gets
> properly installed, however the last step fails.
>
> The following output seems to indicate that the problem is "error while
> loading shared libraries: libjli.so:" which I do not see in the raspberry
> /lib/ directory.   How do I fix this? With the error the IDE does not know
> about the remote platform and I can't move on.   I see libjli.so in the IDE
> under  -> 
>
> {Output}
>
> ant -f
> C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml
> -Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=*
> -Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program
> Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar"
> -Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/
> -Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties
> connect-ssh-password
> connect-ssh-password:
> Connecting to 192.168.1.147:22
> cmd : mkdir -p '/home/pi/NetBeansProjects/'
> Connecting to 192.168.1.147:22
> done.
> Connecting to 192.168.1.147:22
> cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar
> org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
> /home/pi/jre//bin/java: error while loading shared libraries: libjli.so:
> cannot open shared object file: No such file or directory
> C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44:
> Remote command failed with exit status 127
> BUILD FAILED (total time: 10 seconds)
>
> {Raspberry pi file structure}
>
> pi@raspberrypi:~ $ ls
> DesktopDownloads  MagPiMusic Pictures  Templates
> Documents  jremu_code  NetBeansProjects  PublicVideos
> pi@raspberrypi:~ $ ls NetBeansProjects
> org-netbeans-modules-java-j2seembedded-probe.jar
> <-
> pi@raspberrypi:~ $ ls jre
> bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
> pi@raspberrypi:~ $ ls jre/bin
> java  keytool  rmid  rmiregistry
> pi@raspberrypi:~ $ ls jre/lib<-
> armjvm.hprof.txt
> calendars.properties   logging.properties
> charsets.jar   management
> classlist  management-agent.jar
> content-types.properties   meta-index
> currency.data  net.properties
> extresources.jar
> gcf.jarrt.jar
> hijrah-config-umalqura.properties  security
> jce.jartzdb.dat
> jsse.jar
> pi@raspberrypi:~ $
>
>
> --
>
> Lou
>
>


Re: {NetBeans IDE] {JAVA]

2019-10-13 Thread Lou
I could use some help here. I'm new to NetBeans and don't have a clue 
where to start.


Lou

On 10/8/2019 10:13 PM, Lou wrote:


When trying to add a remote embedded java platform on a Raspberry pi I 
get an error when I click 


Looking at the Raspberry file structure it looks like the jre gets 
properly installed, however the last step fails.


The following output seems to indicate that the problem is "error 
while loading shared libraries: libjli.so:" which I do not see in the 
raspberry /lib/ directory.   How do I fix this? With the error the IDE 
does not know about the remote platform and I can't move on.   I see 
libjli.so in the IDE under  -> 


{Output}

ant -f 
C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml 
-Dremote.working.dir=/home/pi/NetBeansProjects/ 
-Dremote.password=* -Dremote.username=pi -Dremote.port=22 
"-Dprobe.file=C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" 
-Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ 
-Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties 
connect-ssh-password

connect-ssh-password:
Connecting to 192.168.1.147:22
cmd : mkdir -p '/home/pi/NetBeansProjects/'
Connecting to 192.168.1.147:22
done.
Connecting to 192.168.1.147:22
cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar 
org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
/home/pi/jre//bin/java: error while loading shared libraries: 
libjli.so: cannot open shared object file: No such file or directory
C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: 
Remote command failed with exit status 127

BUILD FAILED (total time: 10 seconds)

{Raspberry pi file structure}

pi@raspberrypi:~ $ ls
Desktop    Downloads  MagPi    Music Pictures Templates
Documents  jre    mu_code  NetBeansProjects  Public Videos
pi@raspberrypi:~ $ ls NetBeansProjects
org-netbeans-modules-java-j2seembedded-probe.jar 
<-

pi@raspberrypi:~ $ ls jre
bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
pi@raspberrypi:~ $ ls jre/bin
java  keytool  rmid  rmiregistry
pi@raspberrypi:~ $ ls jre/lib <-
arm    jvm.hprof.txt
calendars.properties   logging.properties
charsets.jar   management
classlist  management-agent.jar
content-types.properties   meta-index
currency.data  net.properties
ext    resources.jar
gcf.jar    rt.jar
hijrah-config-umalqura.properties  security
jce.jar    tzdb.dat
jsse.jar
pi@raspberrypi:~ $


--

Lou


Re: Java project now needs classpaths to run it

2019-10-13 Thread Geertjan Wielenga
You appear to be talking about the “java” command line below, which has
nothing at all to do with NetBeans. You seen to be using different versions
of Java.

Gj


On Fri, 20 Sep 2019 at 16:44, Peter Toye  wrote:

> Having just moved from NB version 8 to 11.1 there seems to have been a
> change in the command line needed to run a project.
>
> The OS is Windows 7 Home.
>
> The project has two external libraries: one in the Java modules in the
> NetBeans 11 directory, and one of my own. In version 8 it was possible to
> run the program with a command line like
>
>java -jar program.jar
>
> but this no longer works, and I have to put in a command line like
>
>   java -cp library paths program.jar
>
> which is a pain, as I can't automate that into a batch file.
>
> Is there any way of getting the libraries (or references to them) included
> in the jar file? The properties|Libraries|Run tab shows that the classpaths
> for Compiling Sources and Compiled Sources are included (at least as I
> understand the symbols on that page). Does the "Build Dependencies" tickbox
> have any significance here? The lack of a help file means that I can't find
> out what most of the window items actually mean.
>
> As a rider to this question, there seems to be two small bugs in the Ant
> script which produces the command line for running the project :
>
> To run this application from the command line without Ant, try:
> ??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans
> 11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
> com.ptoye.TestKiller.TestKiller??
>
> 1) In Windows, the Java executable and Netbeans are in the "Program Files"
> or "Program Files (x86)" folder. This should have quotes round it to run
> successfully.
>
> 2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be 
> C:\Program
> Files\NetBeans-11.1?
>
> Regards,
>
> Peter
> mailto:netbe...@ptoye.com 
> www.ptoye.com
>


{NetBeans IDE] {JAVA]

2019-10-08 Thread Lou
When trying to add a remote embedded java platform on a Raspberry pi I 
get an error when I click 


Looking at the Raspberry file structure it looks like the jre gets 
properly installed, however the last step fails.


The following output seems to indicate that the problem is "error while 
loading shared libraries: libjli.so:" which I do not see in the 
raspberry /lib/ directory.   How do I fix this? With the error the IDE 
does not know about the remote platform and I can't move on.   I see 
libjli.so in the IDE under  -> 


{Output}

ant -f 
C:\\Users\\Lou\\AppData\\Local\\Temp\\antScript6991162096244334839.xml 
-Dremote.working.dir=/home/pi/NetBeansProjects/ -Dremote.password=* 
-Dremote.username=pi -Dremote.port=22 "-Dprobe.file=C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\modules\\ext\\org-netbeans-modules-java-j2seembedded-probe.jar" 
-Dremote.host=192.168.1.147 -Dremote.platform.home=/home/pi/jre/ 
-Dplatform.properties.file=C:\\Users\\Lou\\AppData\\Local\\Temp\\platform769343619457372633.properties 
connect-ssh-password

connect-ssh-password:
Connecting to 192.168.1.147:22
cmd : mkdir -p '/home/pi/NetBeansProjects/'
Connecting to 192.168.1.147:22
done.
Connecting to 192.168.1.147:22
cmd : cd '/home/pi/NetBeansProjects/'; '/home/pi/jre//bin/java' -jar 
org-netbeans-modules-java-j2seembedded-probe.jar platform.properties
/home/pi/jre//bin/java: error while loading shared libraries: libjli.so: 
cannot open shared object file: No such file or directory
C:\Users\Lou\AppData\Local\Temp\antScript6991162096244334839.xml:44: 
Remote command failed with exit status 127

BUILD FAILED (total time: 10 seconds)

{Raspberry pi file structure}

pi@raspberrypi:~ $ ls
Desktop    Downloads  MagPi    Music Pictures Templates
Documents  jre    mu_code  NetBeansProjects  Public    Videos
pi@raspberrypi:~ $ ls NetBeansProjects
org-netbeans-modules-java-j2seembedded-probe.jar <-
pi@raspberrypi:~ $ ls jre
bin  bom  COPYRIGHT  lib  release  THIRDPARTYLICENSEREADME.txt
pi@raspberrypi:~ $ ls jre/bin
java  keytool  rmid  rmiregistry
pi@raspberrypi:~ $ ls jre/lib <-
arm    jvm.hprof.txt
calendars.properties   logging.properties
charsets.jar   management
classlist  management-agent.jar
content-types.properties   meta-index
currency.data  net.properties
ext    resources.jar
gcf.jar    rt.jar
hijrah-config-umalqura.properties  security
jce.jar    tzdb.dat
jsse.jar
pi@raspberrypi:~ $


--

Lou



Re: Maven project with java modules

2019-10-07 Thread Richard Grin
Thanks Geertjan, all is clear for me now.

Richard

Le 07/10/2019 à 10:36, Geertjan Wielenga a écrit :
If you’re using Maven, the point for you is to understand how Maven works with 
Jigsaw — there’s hundreds of tips and insights you can find on google about 
this.

For the Java modular project, look in the “Java with Ant” category. To do 
something similar to that witb Maven, just create a Maven POM parent project 
and add the Jigsaw modules from my repo to it.

Gj

Sent from my iPhone

On 7 Oct 2019, at 10:29, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:


Hi Geertjan,

I have studied your example but it is a little too complex just to know how to 
create modules with NetBeans because I don't use services in my little project.

I have just seen one of your YouTube video 
https://www.youtube.com/watch?v=jSqqLHCP9ms<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_watch-3Fv-3DjSqqLHCP9ms=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=Js46YCUvoMuhlbAD5byH6NSsd4ONgiAiD55pheP_5iE=>.
 The first part demonstrates and explains clearly how to use modules with 
NetBeans like a simple Java project with a module-info.java. It's exactly what 
I was looking for.

Just a question: In this YouTube video, you explain another way to use modules 
with NetBeans  with a "Java modular project". I can't find it in the last 
versions of NetBeans. Was it removed? Why? Perhaps it would be easier to 
understand for a first use of the modules.

Regards,

Richard

Le 06/10/2019 à 13:02, Geertjan Wielenga a écrit :
Just start by looking at the example I pointed you to on GitHub.

Gj

On Sun, 6 Oct 2019 at 12:58, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_GeertjanWielenga_JigsawJavaModularProjectSamples_tree_master_AnagramGameMaven=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=YtV7gE7CflfH_eBQG3I2kURiP-ubkwR6Wg-tqfgAUto=>

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists<https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_NETBEANS_Mailing-2Blists=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=0wLZ6xHrsCb1_J8WrSUPMAGuZM2l9Fw90jDA5eeCx1I=>



Re: Maven project with java modules

2019-10-07 Thread Geertjan Wielenga
If you’re using Maven, the point for you is to understand how Maven works with 
Jigsaw — there’s hundreds of tips and insights you can find on google about 
this. 

For the Java modular project, look in the “Java with Ant” category. To do 
something similar to that witb Maven, just create a Maven POM parent project 
and add the Jigsaw modules from my repo to it.

Gj

Sent from my iPhone

> On 7 Oct 2019, at 10:29, Richard Grin  wrote:
> 
> Hi Geertjan,
> 
> I have studied your example but it is a little too complex just to know how 
> to create modules with NetBeans because I don't use services in my little 
> project.
> 
> I have just seen one of your YouTube video 
> https://www.youtube.com/watch?v=jSqqLHCP9ms. The first part demonstrates and 
> explains clearly how to use modules with NetBeans like a simple Java project 
> with a module-info.java. It's exactly what I was looking for.
> 
> Just a question: In this YouTube video, you explain another way to use 
> modules with NetBeans  with a "Java modular project". I can't find it in the 
> last versions of NetBeans. Was it removed? Why? Perhaps it would be easier to 
> understand for a first use of the modules.
> 
> Regards,
> 
> Richard
> 
>> Le 06/10/2019 à 13:02, Geertjan Wielenga a écrit :
>> Just start by looking at the example I pointed you to on GitHub.
>> 
>> Gj
>> 
>>> On Sun, 6 Oct 2019 at 12:58, Richard Grin  
>>> wrote:
>>> So, there is no reasons to create several modules into a NetBeans project? 
>>> If I have understood you correctly.
>>> 
>>>> Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
>>>> A Jigsaw module is simply a Java SE project with a module-info.java file. 
>>>> In other words, in NetBeans, the concept of a Jigsaw module is synonymous 
>>>> with the Java project type.
>>>> 
>>>> Gj
>>>> 
>>>>> On Sun, 6 Oct 2019 at 12:24, Richard Grin 
>>>>>  wrote:
>>>>> Thanks Geertjan for this example I will study.
>>>>> 
>>>>> No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
>>>>> message) to create a new module? Do I have to create a new Folder and 
>>>>> then to add a module-info.java jnside this new Folder?
>>>>> 
>>>>>> Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :
>>>>>> 
>>>>>> https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven
>>>>>> 
>>>>>> Gj
>>>>>> 
>>>>>> 
>>>>>>> On Sun, 6 Oct 2019 at 12:03, Richard Grin 
>>>>>>>  wrote:
>>>>>>> Hi,
>>>>>>> 
>>>>>>> Where can I find a good example to create a Maven NetBeans project with 
>>>>>>> java modules (not NetBeans modules)?
>>>>>>> 
>>>>>>> I can't find a command "Create new module" in the New menu after 
>>>>>>> creating a simple Java project.
>>>>>>> 
>>>>>>> Regards,
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> 
>>>>>>> -
>>>>>>> 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: Maven project with java modules

2019-10-07 Thread Richard Grin
Hi Geertjan,

I have studied your example but it is a little too complex just to know how to 
create modules with NetBeans because I don't use services in my little project.

I have just seen one of your YouTube video 
https://www.youtube.com/watch?v=jSqqLHCP9ms. The first part demonstrates and 
explains clearly how to use modules with NetBeans like a simple Java project 
with a module-info.java. It's exactly what I was looking for.

Just a question: In this YouTube video, you explain another way to use modules 
with NetBeans  with a "Java modular project". I can't find it in the last 
versions of NetBeans. Was it removed? Why? Perhaps it would be easier to 
understand for a first use of the modules.

Regards,

Richard

Le 06/10/2019 à 13:02, Geertjan Wielenga a écrit :
Just start by looking at the example I pointed you to on GitHub.

Gj

On Sun, 6 Oct 2019 at 12:58, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



SOLVED -- Re: Creating a Java library project with Apache Netbeans

2019-10-06 Thread Peter L. Berghold


Thanks for the help folks.  

One suggested feature I'd like to put out there?  Have an option for
initializing the Git repo (local) at project start? 


-- 


Peter L. Berghold 
Professonally: IT Professional (DevOps, Puppet, Perl...)
Advocations: Dog Training, Beer Brewing, BBQ, Cooking 


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

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



Re: Maven project with java modules

2019-10-06 Thread Geertjan Wielenga
Just start by looking at the example I pointed you to on GitHub.

Gj

On Sun, 6 Oct 2019 at 12:58, Richard Grin 
wrote:

> So, there is no reasons to create several modules into a NetBeans project?
> If I have understood you correctly.
> Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
>
> A Jigsaw module is simply a Java SE project with a module-info.java file.
> In other words, in NetBeans, the concept of a Jigsaw module is synonymous
> with the Java project type.
>
> Gj
>
> On Sun, 6 Oct 2019 at 12:24, Richard Grin 
> wrote:
>
>> Thanks Geertjan for this example I will study.
>>
>> No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous
>> message) to create a new module? Do I have to create a new Folder and then
>> to add a module-info.java jnside this new Folder?
>> Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :
>>
>>
>>
>> https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven
>>
>> Gj
>>
>>
>> On Sun, 6 Oct 2019 at 12:03, Richard Grin 
>> wrote:
>>
>>> Hi,
>>>
>>> Where can I find a good example to create a Maven NetBeans project with
>>> java modules (not NetBeans modules)?
>>>
>>> I can't find a command "Create new module" in the New menu after
>>> creating a simple Java project.
>>>
>>> Regards,
>>>
>>> Richard
>>>
>>>
>>> -
>>> 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: Maven project with java modules

2019-10-06 Thread Richard Grin
So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



Re: Maven project with java modules

2019-10-06 Thread Richard Grin
Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



Re: Maven project with java modules

2019-10-06 Thread Geertjan Wielenga
A Jigsaw module is simply a Java SE project with a module-info.java file.
In other words, in NetBeans, the concept of a Jigsaw module is synonymous
with the Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
wrote:

> Thanks Geertjan for this example I will study.
>
> No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous
> message) to create a new module? Do I have to create a new Folder and then
> to add a module-info.java jnside this new Folder?
> Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :
>
>
>
> https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven
>
> Gj
>
>
> On Sun, 6 Oct 2019 at 12:03, Richard Grin 
> wrote:
>
>> Hi,
>>
>> Where can I find a good example to create a Maven NetBeans project with
>> java modules (not NetBeans modules)?
>>
>> I can't find a command "Create new module" in the New menu after
>> creating a simple Java project.
>>
>> Regards,
>>
>> Richard
>>
>>
>> -
>> 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: Maven project with java modules

2019-10-06 Thread Geertjan Wielenga
https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
wrote:

> Hi,
>
> Where can I find a good example to create a Maven NetBeans project with
> java modules (not NetBeans modules)?
>
> I can't find a command "Create new module" in the New menu after
> creating a simple Java project.
>
> Regards,
>
> Richard
>
>
> -
> 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 project now needs classpaths to run it

2019-10-05 Thread Peter Toye
Having just moved from NB version 8 to 11.1 there seems to have been a change 
in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 
11 directory, and one of my own. In version 8 it was possible to run the 
program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in 
the jar file? The properties|Libraries|Run tab shows that the classpaths for 
Compiling Sources and Compiled Sources are included (at least as I understand 
the symbols on that page). Does the "Build Dependencies" tickbox have any 
significance here? The lack of a help file means that I can't find out what 
most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script 
which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 
11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar
 com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or 
"Program Files (x86)" folder. This should have quotes round it to run 
successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program 
Files\NetBeans-11.1?
 
Regards,

Peter
mailto:netbe...@ptoye.com
www.ptoye.comTitle: Java project now needs classpaths to run it


Having just moved from NB version 8 to 11.1 there seems to have been a change in the command line needed to run a project.

The OS is Windows 7 Home.

The project has two external libraries: one in the Java modules in the NetBeans 11 directory, and one of my own. In version 8 it was possible to run the program with a command line like
 
   java -jar program.jar
   
but this no longer works, and I have to put in a command line like

  java -cp library paths program.jar
 
which is a pain, as I can't automate that into a batch file.

Is there any way of getting the libraries (or references to them) included in the jar file? The properties|Libraries|Run tab shows that the classpaths for Compiling Sources and Compiled Sources are included (at least as I understand the symbols on that page). Does the "Build Dependencies" tickbox have any significance here? The lack of a help file means that I can't find out what most of the window items actually mean.

As a rider to this question, there seems to be two small bugs in the Ant script which produces the command line for running the project :

To run this application from the command line without Ant, try:
??C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar com.ptoye.TestKiller.TestKiller??

1) In Windows, the Java executable and Netbeans are in the "Program Files" or "Program Files (x86)" folder. This should have quotes round it to run successfully.

2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program Files\NetBeans-11.1?
 
Regards,

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

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

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

Re: Creating a Java library project with Apache Netbeans

2019-10-03 Thread Laszlo Kishalmi

Also available on at Java with Gradle | Java Class Library

On 10/3/19 11:39 AM, Emilian Bold wrote:

You might be looking for 'Java with Ant | Java Class Library'? The
same can be accomplished using 'Java with Maven | Java Application' I
believe. It's all a matter of the build system.

--emi

On Thu, Oct 3, 2019 at 8:55 PM Peter L. Berghold  wrote:

I seem to be missing something here. When I last used Netbeans 8.x I
was able to from the menu create a Java library.  That does not seem to
be the case with NB 11.0.

Please advise

--


Peter L. Berghold 
Professonally: IT Professional (DevOps, Puppet, Perl...)
Advocations: Dog Training, Beer Brewing, BBQ, Cooking


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

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


-
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: Creating a Java library project with Apache Netbeans

2019-10-03 Thread Emilian Bold
You might be looking for 'Java with Ant | Java Class Library'? The
same can be accomplished using 'Java with Maven | Java Application' I
believe. It's all a matter of the build system.

--emi

On Thu, Oct 3, 2019 at 8:55 PM Peter L. Berghold  wrote:
>
> I seem to be missing something here. When I last used Netbeans 8.x I
> was able to from the menu create a Java library.  That does not seem to
> be the case with NB 11.0.
>
> Please advise
>
> --
>
>
> Peter L. Berghold 
> Professonally: IT Professional (DevOps, Puppet, Perl...)
> Advocations: Dog Training, Beer Brewing, BBQ, Cooking
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

-
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



Creating a Java library project with Apache Netbeans

2019-10-03 Thread Peter L. Berghold
I seem to be missing something here. When I last used Netbeans 8.x I
was able to from the menu create a Java library.  That does not seem to
be the case with NB 11.0.  

Please advise

-- 


Peter L. Berghold 
Professonally: IT Professional (DevOps, Puppet, Perl...)
Advocations: Dog Training, Beer Brewing, BBQ, Cooking 


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

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



Re: [java] Cannot debug on Raspberry Pi using NetBeans 11

2019-10-01 Thread Donald F Clark Sr
There is a message previous to the Error message described below, which says 
"Property "debug-args-line" has not been set”.  This appears to be the root 
cause, but I have not been able to determine how and/or where to set this 
property, and what it expected to contain.


> 
> I have a Java project that is configured to cross-develop on a Raspberry Pi 3 
> Model B running Raspbian Stretch and JDK 8.  The project can be Run on the 
> RPi, but when I attempt to Debug the project the Output window shows this 
> report:
> 
>   Error: Could not find or load main class args-line
> 
> Using NetBeans 8.1 and 8.2 I can successfully debug this project on that 
> target RPi.  The Platform that describes the remote machine can be tested 
> using the Platform Manager and connection succeeds.  The Configuration screen 
> includes the proper class identification in the Main Class field.  And as I 
> said, I can Run the app on the RPi from NetBeans 11, I just can’t start it 
> for debugging.
> 
> Any ideas?
> 
> Thanks
> 
> 
> -
> 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



[java] Cannot debug on Raspberry Pi using NetBeans 11

2019-10-01 Thread Donald F Clark Sr
I have a Java project that is configured to cross-develop on a Raspberry Pi 3 
Model B running Raspbian Stretch and JDK 8.  The project can be Run on the RPi, 
but when I attempt to Debug the project the Output window shows this report:

Error: Could not find or load main class args-line

Using NetBeans 8.1 and 8.2 I can successfully debug this project on that target 
RPi.  The Platform that describes the remote machine can be tested using the 
Platform Manager and connection succeeds.  The Configuration screen includes 
the proper class identification in the Main Class field.  And as I said, I can 
Run the app on the RPi from NetBeans 11, I just can’t start it for debugging.

Any ideas?

Thanks


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

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



Re: Java 8 still on Java.com

2019-10-01 Thread Scott Palmer
I would go with the jpackage EA build. That tool is going to be part of the JDK 
as of Java 14 after all. 

Scott

> On Sep 30, 2019, at 9:06 PM, Derik Devecchio  wrote:
> 
> 
> Emillian,
> 
> Thanks for getting back to me.I am not trying to re-invent “write once 
> run anywhere”.I accept that everything is going to need an installer now.
> The question is, how do I get from “Clean and Build” to  .EXE file that 
> includes a JRE?   

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

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



Re: Java 8 still on Java.com

2019-10-01 Thread Derik Devecchio
Thanks for the advice Jerome. I would love to have a look at the bash 
script part if you don’t mind sending me a private email.



On Sep 30, 2019, at 11:15 PM, Jerome Lelasseux 
mailto:lelass...@yahoo.com>> wrote:

If you search the mail archive I asked the same question just a few weeks ago...

Following advises here I ended up :
- creating an Ant target which depends on the built-in target that generate the 
standard NB zip installer,
- and calls a bash script which prepare the distribution packages: copy the 
files from the zip, include a jre, update etc/myapp.conf to point to the 
bundled jre, run innosetup compiler+code signing (for windows).

Look at praxislive code on github from Neil c Smith, it was a good starting 
point for me.

Jerome


Envoyé depuis Yahoo Mail pour 
iPhone<https://urldefense.proofpoint.com/v2/url?u=https-3A__overview.mail.yahoo.com_-3F.src-3DiOS=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=g-Ki_YceCeoNyy7uaE3ncLdY3DoZklLjI2aCp0q4nck=iGXeZfJR6cTMCUA_2e0RsxCoIaKc0YWTR52Ce7qmEmc=>


Le mardi, octobre 1, 2019, 3:05 AM, Derik Devecchio 
mailto:ddevecc...@celestron.com>> a écrit :

Emillian,

Thanks for getting back to me.I am not trying to re-invent “write once run 
anywhere”.I accept that everything is going to need an installer now.
The question is, how do I get from “Clean and Build” to  .EXE file that 
includes a JRE?


You said "For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), “

Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

but you will run into the problem of digitally signing your app

That is a good point.  I had not thought of that.


—
derik






On Sep 30, 2019, at 12:20 PM, Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:

Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
mailto:ddevecc...@celestron.com>> wrote:


On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 wrote:

Java is no longer an user-facing product, it's middleware.


Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of 

Re : Re: Java 8 still on Java.com

2019-10-01 Thread Jerome Lelasseux
If you search the mail archive I asked the same question just a few weeks 
ago...  
Following advises here I ended up :- creating an Ant target which depends on 
the built-in target that generate the standard NB zip installer, - and calls a 
bash script which prepare the distribution packages: copy the files from the 
zip, include a jre, update etc/myapp.conf to point to the bundled jre, run 
innosetup compiler+code signing (for windows).
Look at praxislive code on github from Neil c Smith, it was a good starting 
point for me.
Jerome

Envoyé depuis Yahoo Mail pour iPhone


Le mardi, octobre 1, 2019, 3:05 AM, Derik Devecchio  
a écrit :

Emillian,
Thanks for getting back to me.    I am not trying to re-invent “write once run 
anywhere”.    I accept that everything is going to need an installer now.The 
question is, how do I get from “Clean and Build” to  .EXE file that includes a 
JRE?   

You said "For Windows/macOS you probably can use something cross platform 
(seethe NetBeans installer), “  
Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

but you will run into the problem of digitally signing your app

That is a good point.  I had not thought of that.

—derik






On Sep 30, 2019, at 12:20 PM, Emilian Bold  wrote:
Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
 wrote:




On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 wrote:

Java is no longer an user-facing product, it's middleware.



Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of the art advanced since that time?    I am thinking maybe a 
plugin for Netbeans that allows me to tick off the OS’s I want to support with 
a menu option to build all the installers when I am ready to distribute.   
Maybe I need a separate installer plugin for each OS that includes binaries of 
the JRE for that OS?

And what about the Unix-like OS’s?   I just assumed that if you used unix at 
all, then you were smart enough to install the JRE.  But if there /is/ no 
public facing JRE, and I need to provide that for them, then wouldn’t I need to 
provide a separate installer for each and every Unix-like OS on

RE: Java 8 still on Java.com

2019-09-30 Thread Ed Sowell
Derik,

I use Launch4J, then innoSetup to create an installer. Tricky part is the 
innoSetup for including the JRE. I can share mine, if that would help.

 

Ed

 

 

 

 

 

From: Derik Devecchio  
Sent: Monday, September 30, 2019 6:06 PM
To: Emilian Bold 
Cc: users@netbeans.apache.org
Subject: Re: Java 8 still on Java.com

 

Emillian,

 

Thanks for getting back to me.I am not trying to re-invent “write once run 
anywhere”.I accept that everything is going to need an installer now.

The question is, how do I get from “Clean and Build” to  .EXE file that 
includes a JRE?   

 

 

You said "For Windows/macOS you probably can use something cross platform (see

the NetBeans installer), “  

 

Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

 

but you will run into the problem of digitally signing your app

 

That is a good point.  I had not thought of that.

 

 

—

derik

 

 

 

 

 





On Sep 30, 2019, at 12:20 PM, Emilian Bold mailto:emilian.b...@gmail.com> > wrote:

 

Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=>
 
=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=>
 
=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=>
 
=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
mailto:ddevecc...@celestron.com> > wrote:








On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 
=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 wrote:

Java is no longer an user-facing product, it's middleware.


Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a

Re: Java 8 still on Java.com

2019-09-30 Thread Derik Devecchio
Emillian,

Thanks for getting back to me.I am not trying to re-invent “write once run 
anywhere”.I accept that everything is going to need an installer now.
The question is, how do I get from “Clean and Build” to  .EXE file that 
includes a JRE?


You said "For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), “

Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

but you will run into the problem of digitally signing your app

That is a good point.  I had not thought of that.


—
derik






On Sep 30, 2019, at 12:20 PM, Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:

Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
mailto:ddevecc...@celestron.com>> wrote:


On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 wrote:

Java is no longer an user-facing product, it's middleware.


Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of the art advanced since that time?I am thinking maybe a 
plugin for Netbeans that allows me to tick off the OS’s I want to support with 
a menu option to build all the installers when I am ready to distribute.   
Maybe I need a separate installer plugin for each OS that includes binaries of 
the JRE for that OS?

And what about the Unix-like OS’s?   I just assumed that if you used unix at 
all, then you were smart enough to install the JRE.  But if there /is/ no 
public facing JRE, and I need to provide that for them, then wouldn’t I need to 
provide a separate installer for each and every Unix-like OS on the market?   
There must be close to a dozen by now.   And if I still need a separate 
development station for each OS, then it is going to be impractical.





On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4=>
 wrote:

Java is no longer an user-facing product, it's middleware.

You are expected to provide Java 

Re: Java 8 still on Java.com

2019-09-30 Thread Emilian Bold
Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see http://www.jchoice.eu ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like snapcraft.io or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a linux-x64.sh file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
 wrote:
>
>
> > On Sep 30, 2019, at 9:55 AM, Emilian Bold  wrote:
> >
> > Java is no longer an user-facing product, it's middleware.
> >
>
> Okay, that sounds like an improvement from where I am standing, but…  Can 
> Netbeans help me with that now?
>
> The last time I looked into bundling the JRE with my program, I think it was 
> in the early release days of Java9 (Netbeans 8.2 was still the IDE of 
> choice). You could specify such a build, but it required linking the IDE 
> to 3rd party software.   Also, at the time, it required that you have a 
> development station for each OS.   You couldn’t make Windows apps on a Mac 
> and visa versa, to say nothing of the dozen or so flavors of Linux out there. 
>   To make matters worse, at the time, the required third party software was 
> different for each OS.   There were many competing options for each OS, each 
> with dozens different options that need to be (a) learned and (b) configured 
> correctly for each of your development stations.   Finally, creating the 
> installer was a multi-step process for each OS.   As I said, this was shortly 
> after the release of Java9 - so it was years ago.
>
>
> Has the state of the art advanced since that time?I am thinking maybe a 
> plugin for Netbeans that allows me to tick off the OS’s I want to support 
> with a menu option to build all the installers when I am ready to distribute. 
>   Maybe I need a separate installer plugin for each OS that includes binaries 
> of the JRE for that OS?
>
> And what about the Unix-like OS’s?   I just assumed that if you used unix at 
> all, then you were smart enough to install the JRE.  But if there /is/ no 
> public facing JRE, and I need to provide that for them, then wouldn’t I need 
> to provide a separate installer for each and every Unix-like OS on the 
> market?   There must be close to a dozen by now.   And if I still need a 
> separate development station for each OS, then it is going to be impractical.
>
>
>
>
>
> > On Sep 30, 2019, at 9:55 AM, Emilian Bold  wrote:
> >
> > Java is no longer an user-facing product, it's middleware.
> >
> > You are expected to provide Java bundled with your application in the 
> > future.
> >
> > Users will not have any Java already available nor will they download
> > any new Java.
> >
> > --emi
> >
> > On Mon, Sep 30, 2019 at 7:39 PM Derik Devecchio
> >  wrote:
> >>
> >> I know that the Netbeans’s forum doesn’t maintain 
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=.
> >>But I don’t know anyone else to ask off hand.
> >>
> >> I went to 
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=
> >>  to find out the “latest public stable release”.   I was expecting Java 9 
> >> point something.But I was hoping for 10, 11 or maybe 12.   Low and 
> >> behold it is still on Java8 u 221?
> >>
> >>
> >> Isn’t Java 9 stable enough for public?   As a person that writes software 
> >> for the customers of my company, I am loath to write code using a version 
> >> of Java that won’t be compatible with what most people already have 
> >> installed on their machine. And if they don’t have any version of Java 
> >> installed on their computer, which is increasingly the case,  then my code 
> >> shoul

Re: Java 8 still on Java.com

2019-09-30 Thread Derik Devecchio

> On Sep 30, 2019, at 9:55 AM, Emilian Bold  wrote:
> 
> Java is no longer an user-facing product, it's middleware.
> 

Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice). 
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of the art advanced since that time?I am thinking maybe a 
plugin for Netbeans that allows me to tick off the OS’s I want to support with 
a menu option to build all the installers when I am ready to distribute.   
Maybe I need a separate installer plugin for each OS that includes binaries of 
the JRE for that OS?  

And what about the Unix-like OS’s?   I just assumed that if you used unix at 
all, then you were smart enough to install the JRE.  But if there /is/ no 
public facing JRE, and I need to provide that for them, then wouldn’t I need to 
provide a separate installer for each and every Unix-like OS on the market?   
There must be close to a dozen by now.   And if I still need a separate 
development station for each OS, then it is going to be impractical.





> On Sep 30, 2019, at 9:55 AM, Emilian Bold  wrote:
> 
> Java is no longer an user-facing product, it's middleware.
> 
> You are expected to provide Java bundled with your application in the future.
> 
> Users will not have any Java already available nor will they download
> any new Java.
> 
> --emi
> 
> On Mon, Sep 30, 2019 at 7:39 PM Derik Devecchio
>  wrote:
>> 
>> I know that the Netbeans’s forum doesn’t maintain 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=.
>>But I don’t know anyone else to ask off hand.
>> 
>> I went to 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=
>>  to find out the “latest public stable release”.   I was expecting Java 9 
>> point something.But I was hoping for 10, 11 or maybe 12.   Low and 
>> behold it is still on Java8 u 221?
>> 
>> 
>> Isn’t Java 9 stable enough for public?   As a person that writes software 
>> for the customers of my company, I am loath to write code using a version of 
>> Java that won’t be compatible with what most people already have installed 
>> on their machine. And if they don’t have any version of Java installed 
>> on their computer, which is increasingly the case,  then my code should be 
>> compatible with the JRE they download from the most obvious place, 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=.
>> 
>> I was just wondering if maybe 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com=DwIFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg=
>>  wasn’t the right place anymore.  It doesn’t seem like the site is stagnate. 
>>   8u221 was released just a few months ago.  But why 8? If anyone has a 
>> clue, I would appreciate some enlightenment.
>> 
>> 
>> —
>> derik
>> 
>> P.S.   Great work bringing such a huge project over to the Apache framework. 
>>   I thought it would be a lot easier than it is.  I have watched some fo the 
>> videos of Gertjan discussing the mind bogglingly large amount of tedious 
>> work involved.   I applaud your efforts.


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

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



Re: Java 8 still on Java.com

2019-09-30 Thread Emilian Bold
Java is no longer an user-facing product, it's middleware.

You are expected to provide Java bundled with your application in the future.

Users will not have any Java already available nor will they download
any new Java.

--emi

On Mon, Sep 30, 2019 at 7:39 PM Derik Devecchio
 wrote:
>
> I know that the Netbeans’s forum doesn’t maintain Java.com.   But I don’t 
> know anyone else to ask off hand.
>
> I went to Java.com to find out the “latest public stable release”.   I was 
> expecting Java 9 point something.But I was hoping for 10, 11 or maybe 12. 
>   Low and behold it is still on Java8 u 221?
>
>
> Isn’t Java 9 stable enough for public?   As a person that writes software for 
> the customers of my company, I am loath to write code using a version of Java 
> that won’t be compatible with what most people already have installed on 
> their machine. And if they don’t have any version of Java installed on 
> their computer, which is increasingly the case,  then my code should be 
> compatible with the JRE they download from the most obvious place, Java.com.
>
> I was just wondering if maybe Java.com wasn’t the right place anymore.  It 
> doesn’t seem like the site is stagnate.   8u221 was released just a few 
> months ago.  But why 8? If anyone has a clue, I would appreciate some 
> enlightenment.
>
>
> —
> derik
>
> P.S.   Great work bringing such a huge project over to the Apache framework.  
>  I thought it would be a lot easier than it is.  I have watched some fo the 
> videos of Gertjan discussing the mind bogglingly large amount of tedious work 
> involved.   I applaud your efforts.

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

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



Re: Java 8 still on Java.com

2019-09-30 Thread Geertjan Wielenga
Best to join the mailing lists here and discuss further there:

https://openjdk.java.net/

Gj

On Mon, Sep 30, 2019 at 6:40 PM Scott Palmer  wrote:

> There are no JRE downloads after Java 8.
>
> You are expected to bundle Java with your application.
>
> Scott
>
>
> On Sep 30, 2019, at 12:39 PM, Derik Devecchio 
> wrote:
>
> I know that the Netbeans’s forum doesn’t maintain Java.com
> <http://java.com/>.   But I don’t know anyone else to ask off hand.
>
> I went to Java.com <http://java.com/> to find out the “latest public
> stable release”.   I was expecting Java 9 point something.But I was
> hoping for 10, 11 or maybe 12.   Low and behold it is still on Java8 u 221?
>
>
>
> Isn’t Java 9 stable enough for public?   As a person that writes software
> for the customers of my company, I am loath to write code using a version
> of Java that won’t be compatible with what most people already have
> installed on their machine. And if they don’t have any version of Java
> installed on their computer, which is increasingly the case,  then my code
> should be compatible with the JRE they download from the most obvious
> place, Java.com <http://java.com/>.
>
> I was just wondering if maybe Java.com <http://java.com/> wasn’t the
> right place anymore.  It doesn’t seem like the site is stagnate.   8u221
> was released just a few months ago.  But why 8? If anyone has a clue, I
> would appreciate some enlightenment.
>
>
> —
> derik
>
> P.S.   Great work bringing such a huge project over to the Apache
> framework.   I thought it would be a lot easier than it is.  I have watched
> some fo the videos of Gertjan discussing the mind bogglingly large amount
> of tedious work involved.   I applaud your efforts.
>
>
>


Re: Java 8 still on Java.com

2019-09-30 Thread Scott Palmer
There are no JRE downloads after Java 8.

You are expected to bundle Java with your application.

Scott


> On Sep 30, 2019, at 12:39 PM, Derik Devecchio  
> wrote:
> 
> I know that the Netbeans’s forum doesn’t maintain Java.com 
> <http://java.com/>.   But I don’t know anyone else to ask off hand.
> 
> I went to Java.com <http://java.com/> to find out the “latest public stable 
> release”.   I was expecting Java 9 point something.But I was hoping for 
> 10, 11 or maybe 12.   Low and behold it is still on Java8 u 221?  
> 
> 
> Isn’t Java 9 stable enough for public?   As a person that writes software for 
> the customers of my company, I am loath to write code using a version of Java 
> that won’t be compatible with what most people already have installed on 
> their machine. And if they don’t have any version of Java installed on 
> their computer, which is increasingly the case,  then my code should be 
> compatible with the JRE they download from the most obvious place, Java.com 
> <http://java.com/>.
> 
> I was just wondering if maybe Java.com <http://java.com/> wasn’t the right 
> place anymore.  It doesn’t seem like the site is stagnate.   8u221 was 
> released just a few months ago.  But why 8? If anyone has a clue, I would 
> appreciate some enlightenment.
> 
> 
> —
> derik
> 
> P.S.   Great work bringing such a huge project over to the Apache framework.  
>  I thought it would be a lot easier than it is.  I have watched some fo the 
> videos of Gertjan discussing the mind bogglingly large amount of tedious work 
> involved.   I applaud your efforts.



Java 8 still on Java.com

2019-09-30 Thread Derik Devecchio
I know that the Netbeans’s forum doesn’t maintain Java.com<http://Java.com>.   
But I don’t know anyone else to ask off hand.

I went to Java.com<http://Java.com> to find out the “latest public stable 
release”.   I was expecting Java 9 point something.But I was hoping for 10, 
11 or maybe 12.   Low and behold it is still on Java8 u 221?


Isn’t Java 9 stable enough for public?   As a person that writes software for 
the customers of my company, I am loath to write code using a version of Java 
that won’t be compatible with what most people already have installed on their 
machine. And if they don’t have any version of Java installed on their 
computer, which is increasingly the case,  then my code should be compatible 
with the JRE they download from the most obvious place, 
Java.com<http://Java.com>.

I was just wondering if maybe Java.com<http://Java.com> wasn’t the right place 
anymore.  It doesn’t seem like the site is stagnate.   8u221 was released just 
a few months ago.  But why 8? If anyone has a clue, I would appreciate some 
enlightenment.


—
derik

P.S.   Great work bringing such a huge project over to the Apache framework.   
I thought it would be a lot easier than it is.  I have watched some fo the 
videos of Gertjan discussing the mind bogglingly large amount of tedious work 
involved.   I applaud your efforts.


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-28 Thread Geertjan Wielenga
On Sat, Sep 28, 2019 at 1:05 AM Scott Palmer  wrote:

> This is a good first step. I think some rough edges remain though.
>
> For example, if you go to the project properties ->Build->Compile and flip
> the JDK between Java from 8 to 11+, I’m guessing everything breaks. Can we
> do anything helpful in that situation?
>

Yes: https://github.com/openjfx/javafx-maven-plugin/pull/44

Are you going to comment in the above to add your voice to it?

Here is the related issue for NetBeans:

https://issues.apache.org/jira/browse/NETBEANS-3175

And the pull request:

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

Time to move from these lengthy e-mail discussions, I think we all agree
what the problem is, to moving towards a solution, via pull requests and
issues, i.e., the above, which are all ready for you to comment on and try
out, today.

Gj





>
> JavaFX 13 requires Java 11. What version of JavaFX is used by default when
> you pick a JDK 11 JavaFX project? I think it makes sense to default to the
> latest version that runs on Java 11., but rather than having two different
> project types for JavaFX, the new project wizard should have choices for
> JDK version (when more than one JDK is configured) and a selection for
> JavaFX version where the available options depend on the selected JDK
> version.
>
>
> Scott
>
> On Sep 27, 2019, at 11:09 AM, Geertjan Wielenga 
> wrote:
>
> 
> Also, please comment your support for this PR, which updates the Maven
> plugin for OpenJFX to support both JDK 8 and beyond:
>
> https://github.com/openjfx/javafx-maven-plugin/pull/44
>
> Gj
>
> On Fri, Sep 27, 2019 at 3:30 PM Geertjan Wielenga 
> wrote:
>
>>
>> On Fri, Sep 27, 2019 at 3:27 PM Chuck Davis  wrote:
>>
>>> I think that is a fabulous idea I've been advocating for since JDK11 was
>>> released.  What is on the "create a new project" menu needs to create a
>>> project that will build and run in the IDE.
>>>
>>
>> There is a very simple way to advocate anything at all with Maven and
>> NetBeans, just tweak this file whenever you have an improvement, new
>> archetypes, new versions, and provide a pull request. Just this file is all
>> you need, print it out and stick it on your ceiling so you see it whenever
>> you wake up in the morning:
>>
>>
>> https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
>>
>> Gj
>>
>>
>>
>>
>>>
>>> On Fri, Sep 27, 2019 at 7:24 AM Geertjan Wielenga 
>>> wrote:
>>>
>>>>
>>>> On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  wrote:
>>>>
>>>>> I don't know what archetype should be "registered".  I just know what
>>>>> we've got doesn't work as expected by users.
>>>>>
>>>>
>>>> Great. So let's fix it. The idea would be to remove the "JavaFX
>>>> Application" that is currently there and causing you so much headache.
>>>> Instead of that, we'll have the two samples from Gluon there that are
>>>> hidden right now in the Samples category.
>>>>
>>>> What do you think?
>>>>
>>>>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
This is a good first step. I think some rough edges remain though. 

For example, if you go to the project properties ->Build->Compile and flip the 
JDK between Java from 8 to 11+, I’m guessing everything breaks. Can we do 
anything helpful in that situation?

JavaFX 13 requires Java 11. What version of JavaFX is used by default when you 
pick a JDK 11 JavaFX project? I think it makes sense to default to the latest 
version that runs on Java 11., but rather than having two different project 
types for JavaFX, the new project wizard should have choices for JDK version 
(when more than one JDK is configured) and a selection for JavaFX version where 
the available options depend on the selected JDK version. 


Scott

> On Sep 27, 2019, at 11:09 AM, Geertjan Wielenga  wrote:
> 
> 
> Also, please comment your support for this PR, which updates the Maven plugin 
> for OpenJFX to support both JDK 8 and beyond:
> 
> https://github.com/openjfx/javafx-maven-plugin/pull/44 
> <https://github.com/openjfx/javafx-maven-plugin/pull/44>
> 
> Gj
> 
> On Fri, Sep 27, 2019 at 3:30 PM Geertjan Wielenga  <mailto:geert...@apache.org>> wrote:
> 
> On Fri, Sep 27, 2019 at 3:27 PM Chuck Davis  <mailto:cjgun...@gmail.com>> wrote:
> I think that is a fabulous idea I've been advocating for since JDK11 was 
> released.  What is on the "create a new project" menu needs to create a 
> project that will build and run in the IDE.
> 
> There is a very simple way to advocate anything at all with Maven and 
> NetBeans, just tweak this file whenever you have an improvement, new 
> archetypes, new versions, and provide a pull request. Just this file is all 
> you need, print it out and stick it on your ceiling so you see it whenever 
> you wake up in the morning:
> 
> https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
>  
> <https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java>
> 
> Gj
> 
> 
>  
> 
> On Fri, Sep 27, 2019 at 7:24 AM Geertjan Wielenga  <mailto:geert...@apache.org>> wrote:
> 
> On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  <mailto:cjgun...@gmail.com>> wrote:
> I don't know what archetype should be "registered".  I just know what we've 
> got doesn't work as expected by users.
> 
> Great. So let's fix it. The idea would be to remove the "JavaFX Application" 
> that is currently there and causing you so much headache. Instead of that, 
> we'll have the two samples from Gluon there that are hidden right now in the 
> Samples category.
> 
> What do you think?
> 


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Chuck Davis
Done.

On Fri, Sep 27, 2019 at 8:09 AM Geertjan Wielenga 
wrote:

> Also, please comment your support for this PR, which updates the Maven
> plugin for OpenJFX to support both JDK 8 and beyond:
>
> https://github.com/openjfx/javafx-maven-plugin/pull/44
>
> Gj
>
>
>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Geertjan Wielenga
Also, please comment your support for this PR, which updates the Maven
plugin for OpenJFX to support both JDK 8 and beyond:

https://github.com/openjfx/javafx-maven-plugin/pull/44

Gj

On Fri, Sep 27, 2019 at 3:30 PM Geertjan Wielenga 
wrote:

>
> On Fri, Sep 27, 2019 at 3:27 PM Chuck Davis  wrote:
>
>> I think that is a fabulous idea I've been advocating for since JDK11 was
>> released.  What is on the "create a new project" menu needs to create a
>> project that will build and run in the IDE.
>>
>
> There is a very simple way to advocate anything at all with Maven and
> NetBeans, just tweak this file whenever you have an improvement, new
> archetypes, new versions, and provide a pull request. Just this file is all
> you need, print it out and stick it on your ceiling so you see it whenever
> you wake up in the morning:
>
>
> https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
>
> Gj
>
>
>
>
>>
>> On Fri, Sep 27, 2019 at 7:24 AM Geertjan Wielenga 
>> wrote:
>>
>>>
>>> On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  wrote:
>>>
>>>> I don't know what archetype should be "registered".  I just know what
>>>> we've got doesn't work as expected by users.
>>>>
>>>
>>> Great. So let's fix it. The idea would be to remove the "JavaFX
>>> Application" that is currently there and causing you so much headache.
>>> Instead of that, we'll have the two samples from Gluon there that are
>>> hidden right now in the Samples category.
>>>
>>> What do you think?
>>>
>>>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Geertjan Wielenga
On Fri, Sep 27, 2019 at 3:27 PM Chuck Davis  wrote:

> I think that is a fabulous idea I've been advocating for since JDK11 was
> released.  What is on the "create a new project" menu needs to create a
> project that will build and run in the IDE.
>

There is a very simple way to advocate anything at all with Maven and
NetBeans, just tweak this file whenever you have an improvement, new
archetypes, new versions, and provide a pull request. Just this file is all
you need, print it out and stick it on your ceiling so you see it whenever
you wake up in the morning:

https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java

Gj




>
> On Fri, Sep 27, 2019 at 7:24 AM Geertjan Wielenga 
> wrote:
>
>>
>> On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  wrote:
>>
>>> I don't know what archetype should be "registered".  I just know what
>>> we've got doesn't work as expected by users.
>>>
>>
>> Great. So let's fix it. The idea would be to remove the "JavaFX
>> Application" that is currently there and causing you so much headache.
>> Instead of that, we'll have the two samples from Gluon there that are
>> hidden right now in the Samples category.
>>
>> What do you think?
>>
>>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Chuck Davis
I think that is a fabulous idea I've been advocating for since JDK11 was
released.  What is on the "create a new project" menu needs to create a
project that will build and run in the IDE.

On Fri, Sep 27, 2019 at 7:24 AM Geertjan Wielenga 
wrote:

>
> On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  wrote:
>
>> I don't know what archetype should be "registered".  I just know what
>> we've got doesn't work as expected by users.
>>
>
> Great. So let's fix it. The idea would be to remove the "JavaFX
> Application" that is currently there and causing you so much headache.
> Instead of that, we'll have the two samples from Gluon there that are
> hidden right now in the Samples category.
>
> What do you think?
>
>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Scott Palmer
Using NetBeans 11.2-beta1…
Immediately after creating a new Maven JavaFX project the project shows errors.
All imports from javafx.* are indicated as errors with the message “package 
does not exist”

Building the project also fails with the bizarre error "Fatal Error: Unable to 
find package java.lang in classpath or bootclasspath”

This is running on macOS with OpenJDK 12.0.2

Build log follows:

cd /Users/scott/NetBeansProjects/mvnjfx; 
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home 
"/Applications/NetBeans/NetBeans 11.2 
Beta.app/Contents/Resources/NetBeans/java/maven/bin/mvn" install
Scanning for projects...


Building mvnjfx 1.0-SNAPSHOT

Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom
 
Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom
 (8 KB at 25.7 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/mojo-parent-28.pom
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/mojo-parent-28.pom
 (26 KB at 437.3 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/codehaus-parent-3.pom
 
Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/codehaus-parent-3.pom
 (5 KB at 80.2 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.jar
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.jar
 (37 KB at 141.0 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
 (10 KB at 293.3 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/24/maven-plugins-24.pom
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/24/maven-plugins-24.pom
 (11 KB at 301.5 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.pom
 
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.pom
 (5 KB at 132.0 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.16/surefire-2.16.pom
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.16/surefire-2.16.pom
 (19 KB at 453.7 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.jar
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.jar
 (34 KB at 851.1 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.pom
   
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.pom
 (11 KB at 272.3 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.jar
 
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.jar
 (142 KB at 1786.8 KB/sec)

--- maven-resources-plugin:2.6:resources (default-resources) @ mvnjfx ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ mvnjfx ---
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom

Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom
 (865 B at 24.8 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom
 
Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom
 (4 KB at 103.8 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.pom

Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-c

Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Geertjan Wielenga
On Fri, Sep 27, 2019 at 3:24 PM Chuck Davis  wrote:

> If using a "sample" is required that should be indicated someplace where
> users will find it a project creation time.  I've been using NB for many
> years and have never had to resort to using a sample to create a project.
> It's not what a user would expect in my opinion.
>
>
Great, so go ahead and say how happy you are with this issue and pull
request, not here, but in the issue and pull request:

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

https://issues.apache.org/jira/browse/NETBEANS-3175

Gj



> If NB wants to maintain compatibility with JDK8 and JDK11+ then if two
> different archetypes are required we need two different project types --
> JFX for JDK8 and JFX for JDK11+.  ??
>
> On Fri, Sep 27, 2019 at 7:18 AM Geertjan Wielenga 
> wrote:
>
>>
>> Ideally, use the Gluon OpenJFX samples in the Sample category in the New
>> Project dialog -- and maybe we should replace the JavaFX Application with
>> those two samples instead?
>>
>>
>>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Chuck Davis
If using a "sample" is required that should be indicated someplace where
users will find it a project creation time.  I've been using NB for many
years and have never had to resort to using a sample to create a project.
It's not what a user would expect in my opinion.

If NB wants to maintain compatibility with JDK8 and JDK11+ then if two
different archetypes are required we need two different project types --
JFX for JDK8 and JFX for JDK11+.  ??

On Fri, Sep 27, 2019 at 7:18 AM Geertjan Wielenga 
wrote:

>
> Ideally, use the Gluon OpenJFX samples in the Sample category in the New
> Project dialog -- and maybe we should replace the JavaFX Application with
> those two samples instead?
>
>
>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Geertjan Wielenga
On Fri, Sep 27, 2019 at 3:21 PM Chuck Davis  wrote:

> I don't know what archetype should be "registered".  I just know what
> we've got doesn't work as expected by users.
>

Great. So let's fix it. The idea would be to remove the "JavaFX
Application" that is currently there and causing you so much headache.
Instead of that, we'll have the two samples from Gluon there that are
hidden right now in the Samples category.

What do you think?

Gj



>
> On Fri, Sep 27, 2019 at 7:13 AM Geertjan Wielenga 
> wrote:
>
>> Here is where that archetype is registered, is there another one we
>> should register instead:
>>
>>
>> https://github.com/apache/netbeans/blob/master/java/maven/src/org/netbeans/modules/maven/newproject/MavenWizardIterator.java
>>
>> See line 76 to 80 in the above.
>>
>> Gj
>>
>>
>> On Fri, Sep 27, 2019 at 3:10 PM Chuck Davis  wrote:
>>
>>> I don't think most users are going to build a project from samples (they
>>> expect what's on the menu to work).  Fortunately, I cared enough to find
>>> work-arounds people had posted on the internet but for new users it's a
>>> bombshell.
>>>
>>> On Fri, Sep 27, 2019 at 7:07 AM Geertjan Wielenga 
>>> wrote:
>>>
>>>> Go to the Samples category in the New Project dialog and choose JavaFX.
>>>>
>>>>
>>>>


Re: Hopefully close to the finish line with Java 11 & FX

2019-09-27 Thread Geertjan Wielenga
https://issues.apache.org/jira/browse/NETBEANS-3175

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

Gj


On Fri, Sep 27, 2019 at 3:18 PM Geertjan Wielenga 
wrote:

> Let's start by being clear about what this means: "Immediately after
> creating a new Maven JavaFX project the project shows errors."
>
> Can you just do step by step what you're doing, please?
>
> Ideally, use the Gluon OpenJFX samples in the Sample category in the New
> Project dialog -- and maybe we should replace the JavaFX Application with
> those two samples instead?
>
> Gj
>
> On Fri, Sep 27, 2019 at 3:16 PM Scott Palmer  wrote:
>
>> Using NetBeans 11.2-beta1…
>> Immediately after creating a new Maven JavaFX project the project shows
>> errors.
>> All imports from javafx.* are indicated as errors with the message
>> “package does not exist”
>>
>> Building the project also fails with the bizarre error "Fatal Error:
>> Unable to find package java.lang in classpath or bootclasspath”
>>
>> This is running on macOS with OpenJDK 12.0.2
>>
>> Build log follows:
>>
>> cd /Users/scott/NetBeansProjects/mvnjfx;
>> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home
>> "/Applications/NetBeans/NetBeans 11.2
>> Beta.app/Contents/Resources/NetBeans/java/maven/bin/mvn" install
>> Scanning for projects...
>>
>> 
>> Building mvnjfx 1.0-SNAPSHOT
>> 
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom
>> (8 KB at 25.7 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/mojo-parent-28.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/mojo-parent-28.pom
>> (26 KB at 437.3 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/codehaus-parent-3.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/codehaus-parent-3.pom
>> (5 KB at 80.2 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.jar
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.jar
>> (37 KB at 141.0 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
>> (10 KB at 293.3 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/24/maven-plugins-24.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/24/maven-plugins-24.pom
>> (11 KB at 301.5 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.pom
>> (5 KB at 132.0 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.16/surefire-2.16.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.16/surefire-2.16.pom
>> (19 KB at 453.7 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.jar
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.16/maven-surefire-plugin-2.16.jar
>> (34 KB at 851.1 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugin-2.6.pom
>> (11 KB at 272.3 KB/sec)
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.6/maven-dependency-plugi

<    1   2   3   4   5   6   7   8   >