Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread zahid



It is the final  and static engineering truth

V1.0 hard coded solution Struts

V2.0 Flexible and configurable,

interface  class loosely coupled with implementation class.

Spring boot MBeans etc.


www.backbutton.co.uk
¯\_(ツ)_/¯
Engineering Truth
V1.0 hard code
V2.0 Flexible

On 04/01/2020 03:16, Peter L. Berghold wrote:

On Fri, 2020-01-03 at 22:09 -0500, Carl Mosca wrote:

Albeit a slightly different direction, we tend to do a good bit of
Spring Boot which in addition to being Tomcat based and typically
includes Hibernate, has, what I believe, is a (nice) opinionated way
of doing such configurations.



Well that just gave me the impetus to take a look at Spring Boot.  Been
hearing about it and never gave it a thought



--
www.backbutton.co.uk
¯\_(ツ)_/¯
Engineering Truth
V1.0 hard code
V2.0 Flexible


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

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



Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Peter L. Berghold
On Fri, 2020-01-03 at 22:09 -0500, Carl Mosca wrote:
> 
> Albeit a slightly different direction, we tend to do a good bit of
> Spring Boot which in addition to being Tomcat based and typically
> includes Hibernate, has, what I believe, is a (nice) opinionated way
> of doing such configurations.
> 
> 

Well that just gave me the impetus to take a look at Spring Boot.  Been
hearing about it and never gave it a thought


-- 


Peter L. Berghold 
Professonally: (retired) 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: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Carl Mosca
Hi Peter,

Environment variables should be used for this purpose.  Exactly how this is
done might vary a bit depending on your preference/practice configuration
method.

What are you using now for the database configuration?

NetBeans will allow you to set the environment variables which would also
be set for the container (via Kubernetes in your case).

Albeit a slightly different direction, we tend to do a good bit of Spring
Boot which in addition to being Tomcat based and typically includes
Hibernate, has, what I believe, is a (nice) opinionated way of doing such
configurations.

For Spring Boot, an application.properties file (in src/main/resources)
might contain something like this:

spring.datasource.url = jdbc:mysql://localhost:3306/mydatabase?useSSL=false

and the SPRING_DATABASE_URL environment variable would override the above
value if provided at runtime (via NetBeans, Docker, Kubernetes, etc.) but
this example only scratches the surface with the amount of flexibility you
actually have.  Environment variables can also be included in the
properties file.  The concept of profiles is also available.

The combination of NetBeans and Spring Boot is, for us, an excellent choice
for local (database) development but we also leverage the Kubernetes which
is part of Docker for Desktop (Windows and MacOS) to more closely emulate
our runtime environment.

HTH,
Carl

On Fri, Jan 3, 2020 at 8:16 PM Peter L. Berghold  wrote:

> I have a web app that I've been working on for a while now and I plan
> to deploy it into a Kubernetes cluster on top of Tomcat.  Back end is
> going to be a MariaDB deployment with no connection to the outside
> world.
>
> Given my persistance layer is Hibernate and while being developed
> points to the local MariaDB on my workstation.
>
> When I go to deploy to Kubernetes I'll be using a service name to
> connect to.  How have others handled this situation so that the
> Hibernet configuration ends up pointed to the correct host after
> deployment?
>
>
> --
>
>
> Peter L. Berghold 
> Professonally: (retired) 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
>
>

-- 
Carl J. Mosca


Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Peter L. Berghold
I have a web app that I've been working on for a while now and I plan
to deploy it into a Kubernetes cluster on top of Tomcat.  Back end is
going to be a MariaDB deployment with no connection to the outside
world. 

Given my persistance layer is Hibernate and while being developed
points to the local MariaDB on my workstation.  

When I go to deploy to Kubernetes I'll be using a service name to
connect to.  How have others handled this situation so that the
Hibernet configuration ends up pointed to the correct host after
deployment? 


-- 


Peter L. Berghold 
Professonally: (retired) 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: 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.



struts

2020-01-03 Thread zahid

Hi,

I am creating a new struts project. I am following the tutoriall on this 
page.


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

I am at

1. Choose File > New Project (Ctrl-Shift-N; ⌘-Shift-N on Mac) from the 
main menu. Select Java Web in the list of Categories and then select Web 
Application in the list of Projects. Click Next.


*problem*

after I select new project.

I do not have the  option *Java Web* in the *categories* list so I 
cannot select *struts*, even though *struts plugin* is installed.


categories options  I have options are :

Java with Maven

Java with Gradle

Java with Ant

HTML5/Javascript

PHP

Samples.


Best Regards

Zahid




--
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

>


Javadoc window interferes with project recognition?

2020-01-03 Thread Alonso Del Arte
Happy New Year, and happy new decade of system time.

I'm using NetBeans 11.1 under macOS Catalina 10.15.2 (I think I was still
on Mojave when I first installed NetBeans 11.1).

Since last year I've been noticing that sometimes when I start NetBeans,
the Javadoc window is missing. I like to keep it grouped with Output and
Test Results. And then the last project I was working on is no longer
recognized as valid NetBeans project, but it still opens, so I have to
close all projects to close it and quit and restart NetBeans. And then I
can bring back the Javadoc window and have it function as expected.

Maybe these two things are related, and so far it seems that as long as I
take care that Output or Test Results, and not Javadoc, is frontmost when I
quit NetBeans, I won't have this problem the next time I start NetBeans.

This is a minor nuisance, maybe it's been resolved in NetBeans 11.2 or
later. But this by itself wouldn't be enough for me to upgrade.

Alonso del Arte
Author at SmashWords.com

Musician at ReverbNation.com 


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


Newbie to Netbeans/Maven -- best solution?

2020-01-03 Thread Chris Olsen
Good morning, All --

   Thanks to Geertjan and Zahid for assistance in re my missing JavaFX runtime

   I have solved that problem, and in my later thrashing about uncovered a 
solution to a different problem that I'm not sure is the best solution.

   In my (migrating from Java 8) program I have resources, and along the way 
discovered that the default location for such is in src/main/resources.  In 
order to create this folder I finally resorted to the command line.  I also 
added:

  src/main/resources 

   to the pom file.

   My colleague, also learning Maven, did not do this -- Netbeans created this 
capability automatically.  He used the Gluon FXML archetype and I used the 
non-FXML.  It strikes me as odd that the "Other Sources" was not done for me, 
but was for him, if it is the default location for resources.  

   Is there a Netbeans-without-command-line procedure that I am just missing?  

   -- Chris 

   

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

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



Re: Newbie to Maven problem -- JavaFX runtime components missing

2020-01-03 Thread zahid

I know you have the answer you want chris,


There was still some doubt in my mind about one thing and for anyone 
following the thread.


To use the big green button to run the javafx archetypes

right click  on projects. -> properties -> actions

select action "clean and build project" from drop down lost.

remove previous text from "execute  goals :".

insert new text to set  "execute  goals :"   to "clean install 
javafx:run"  -> OK.


so now you can use the IDE to run maven projects

in all the very many different ways in NetBeans.


for web application command line it is   "mvn  jetty:run"

with the following addition to pom.xml

    
    war
    

| |
||mywebapp|   
org.eclipse.jetty 
jetty-maven-plugin 
9.4.7.v20170914   
/${build.finalName}  
CTRL+C 8999 
10  
src/main/webapp/WEB-INF/web.xml  
|


On 02/01/2020 03:08, zahid wrote:


There are no components missing you need to set command line arguments.

I think a found an answer for you on how to run from NetBeans IDE.

select project  -> right click -> run maven   ->  set goal in dialogue 
window type  javafx:run -k OK


next time you  to go project -> run maven > jafax:run will 
automatically appear.




On 02/01/2020 01:23, Chris Olsen wrote:

Zahid and All --

Thank you!   I now have had some success, and things are looking up.  I think I 
need to study some existing working pom files, and this will be very helpful!

   -- Chris

- Original Message -
From: zahid
To: Geertjan Wielenga, Chris Olsen
Cc: users
Sent: Wed, 01 Jan 2020 18:48:45 -0500 (EST)
Subject: Re: Newbie to Maven problem -- JavaFX runtime components missing


if you want to run the example at

https://openjfx.io/openjfx-docs/maven

Below is the complete pom.xml file I just made it.
I have tested it.

you also need to create the directory structure maven expects.
see
https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
with windows same directory structure.
your pom.xml file in the top directory. i.e C:\helloapp.

You run the command  mvn clean javafx:run from C:\helloapp

C:\src\main\java\HelloFX.java




http://maven.apache.org/POM/4.0.0;  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>


      4.0.0

      org.openjfx
      hellofx
      1.0-SNAPSHOT
      jar

      
UTF-8
      14-ea+6
      


      
      
      org.openjfx
      javafx-controls
      ${jfx.version}
      

      
      org.openjfx
      javafx-fxml
      ${jfx.version}
      
      
org.springframework.boot
spring-boot-starter
      2.1.7.RELEASE
      
      
      
      

      
org.apache.maven.plugins
maven-compiler-plugin
      3.8.1
      
      12
      
      

      
      org.openjfx
javafx-maven-plugin
      0.0.3
      
      HelloFX
      
      

      

      
      




On 01/01/2020 21:26, Geertjan Wielenga wrote:

https://openjfx.io/openjfx-docs/maven

Gj

On Wed, 1 Jan 2020 at 18:24, Geertjan Wielenga > wrote:



 There’s a colon in there, at least.

 javafx:run

 If I remember correctly. Really take a look at that YouTube clip
 again.

 Gj

 On Wed, 1 Jan 2020 at 18:23, Geertjan Wielenga
 mailto:geert...@apache.org>> wrote:

 Is that what you see in that YouTube clip? Can you take
 another look at it?

 Gj

 On Wed, 1 Jan 2020 at 18:17, Chris Olsen mailto:col...@mchsi.com>> wrote:

 Hi, again  (and thanks again for lightning!) --

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

   I did that (and remembered that I had watched this
 previously with the same result as follows).  I am now
 getting a message,...

   Unknown lifecycle phase "javafx"..  You must...or a goal
 in the format or...

   The immediate neighborhood  of concern (so far as I can
 tell) in the nbactions.xml file is:

       
          clean
          javafx
          run
       

    -- Chris


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

 For further information about the NetBeans mailing lists,
 visit: