Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Although, not quite what you want, but you can make a wizard dynamic, like
this, if you like, though again it's not exactly what you're looking for:

https://blogs.oracle.com/geertjan/extension-to-extended-java-project-part-1

https://blogs.oracle.com/geertjan/extension-to-extended-java-project-part-2

Gj

On Sat, Jan 4, 2020 at 5:01 PM Geertjan Wielenga 
wrote:

> As you've learned so far in this discussion, that's not what the New
> Project dialog is used for.
>
> Gj
>
> On Sat, Jan 4, 2020 at 4:47 PM Bilu  wrote:
>
>> 1. You think that you should be able to open newly generated projects via
>> the New Project dialog.
>>
>> =>this is not what i am expecting.
>>
>> 2. But that is not what the New Project dialog is for. That is for
>> generating new projects, which you’ve already done some other way.
>>
>> => Indeed i want to generate new project for my type of project i
>> already set via a project type module. and i want the basic files including
>> into the new
>>
>> generated project of my specific project type to be add
>> dynamically.
>>
>>
>> Le 04/01/2020 à 18:30, Geertjan Wielenga a écrit :
>>
>> Each project you generate should simply be openable via the Open Project
>> menu item, assuming it conforms to your project type.
>>
>> What you think you’re doing is different to what you’re actually doing:
>>
>> 1. You think that you should be able to open newly generated projects via
>> the New Project dialog.
>>
>> 2. But that is not what the New Project dialog is for. That is for
>> generating new projects, which you’ve already done some other way.
>>
>> Can you use the Open Project dialog to open your projects?
>>
>> Gj
>>
>>
>> On Sat, 4 Jan 2020 at 14:24, Bilu  wrote:
>>
>>> well thanks anyway :)
>>> Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit :
>>>
>>>
>>> Again, it does not work in the way you intend.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:57, Bilu  wrote:
>>>
 this is related to the Project sample registration. i want to add a
 sample to the New Project wizard. The sample could function either as an
 example to the user or as a new project template that provides the basic
 files needed to get started working on a technology of some kind:
 https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking

 In the example in the tutorial the basic files are provided via the
 content element as a resource relative to the package and what i want
 is to provide a resource outside instead

 @TemplateRegistration(
 folder = "Project/Samples/Standard",
 displayName = "#MySampleApplication_displayName",
 description = "MySampleApplicationDescription.html",
 iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
 *content = "MySampleApplicationProject.zip")*

 i hope it is more clear for you
 Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :

 It sounds like what you’re generating should simply be opened via Open
 Project menu item, i.e., this does not relate to the New Project wizard at
 all.

 Gj

 On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga 
 wrote:

> I think what you’re trying to achieve is not something that makes
> sense from the point of view of how NetBeans works.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:
>
>> i don't think this will works as i can not generate the resource into
>> a package once the module is build and running that's why i would like to
>> generate it to a temp folder and fetch it each time the New project 
>> wizard
>> is called
>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>>
>>
>> So generate it into a package in your module instead if generating it
>> in your temp folder.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:
>>
>>> because the resource has to be generated dynamically. so i need to
>>> generate it somewhere on the drive (lets say C:/Temp/) before make
>>> it available to the New project Wizard each time to be sure to have the
>>> last version of the resource.
>>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>>
>>>
>>> Why?
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>>>
 Hello

 Documentation talk about File contents, as resources relative to
 the package of this declaration:
 http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()

 But is there a way to declare file outside of the package?

 Thanks to help
 Le 29/12/2019 à 10:39, Bilu Al a écrit :

 Hello, is there a way to specify Template registation (Project sample 
 declaration) content outside package declaration as my ressource is 
 available 

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
As you've learned so far in this discussion, that's not what the New
Project dialog is used for.

Gj

On Sat, Jan 4, 2020 at 4:47 PM Bilu  wrote:

> 1. You think that you should be able to open newly generated projects via
> the New Project dialog.
>
> =>this is not what i am expecting.
>
> 2. But that is not what the New Project dialog is for. That is for
> generating new projects, which you’ve already done some other way.
>
> => Indeed i want to generate new project for my type of project i
> already set via a project type module. and i want the basic files including
> into the new
>
> generated project of my specific project type to be add
> dynamically.
>
>
> Le 04/01/2020 à 18:30, Geertjan Wielenga a écrit :
>
> Each project you generate should simply be openable via the Open Project
> menu item, assuming it conforms to your project type.
>
> What you think you’re doing is different to what you’re actually doing:
>
> 1. You think that you should be able to open newly generated projects via
> the New Project dialog.
>
> 2. But that is not what the New Project dialog is for. That is for
> generating new projects, which you’ve already done some other way.
>
> Can you use the Open Project dialog to open your projects?
>
> Gj
>
>
> On Sat, 4 Jan 2020 at 14:24, Bilu  wrote:
>
>> well thanks anyway :)
>> Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit :
>>
>>
>> Again, it does not work in the way you intend.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:57, Bilu  wrote:
>>
>>> this is related to the Project sample registration. i want to add a
>>> sample to the New Project wizard. The sample could function either as an
>>> example to the user or as a new project template that provides the basic
>>> files needed to get started working on a technology of some kind:
>>> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking
>>>
>>> In the example in the tutorial the basic files are provided via the
>>> content element as a resource relative to the package and what i want
>>> is to provide a resource outside instead
>>>
>>> @TemplateRegistration(
>>> folder = "Project/Samples/Standard",
>>> displayName = "#MySampleApplication_displayName",
>>> description = "MySampleApplicationDescription.html",
>>> iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
>>> *content = "MySampleApplicationProject.zip")*
>>>
>>> i hope it is more clear for you
>>> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
>>>
>>> It sounds like what you’re generating should simply be opened via Open
>>> Project menu item, i.e., this does not relate to the New Project wizard at
>>> all.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga 
>>> wrote:
>>>
 I think what you’re trying to achieve is not something that makes sense
 from the point of view of how NetBeans works.

 Gj

 On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:

> i don't think this will works as i can not generate the resource into
> a package once the module is build and running that's why i would like to
> generate it to a temp folder and fetch it each time the New project wizard
> is called
> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>
>
> So generate it into a package in your module instead if generating it
> in your temp folder.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:
>
>> because the resource has to be generated dynamically. so i need to
>> generate it somewhere on the drive (lets say C:/Temp/) before make
>> it available to the New project Wizard each time to be sure to have the
>> last version of the resource.
>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>
>>
>> Why?
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>>
>>> Hello
>>>
>>> Documentation talk about File contents, as resources relative to the
>>> package of this declaration:
>>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>>
>>> But is there a way to declare file outside of the package?
>>>
>>> Thanks to help
>>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>>>
>>> Hello, is there a way to specify Template registation (Project sample 
>>> declaration) content outside package declaration as my ressource is 
>>> available on the disk? This only work when resource relative to the 
>>> package of this declaration
>>>
>>> @TemplateRegistration(
>>> folder = "Test", iconBase = 
>>> "org/netbeans/modules/templatesui/x.png",
>>> page = "org/netbeans/modules/templatesui/x.html",
>>> content = "C:/Temp/content.zip"
>>> )
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>> For 

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
1. You think that you should be able to open newly generated projects
via the New Project dialog.

    =>this is not what i am expecting.

2. But that is not what the New Project dialog is for. That is for
generating new projects, which you’ve already done some other way.

    => Indeed i want to generate new project for my type of project i
already set via a project type module. and i want the basic files
including into the new

            generated project of my specific project type to be add
dynamically.


Le 04/01/2020 à 18:30, Geertjan Wielenga a écrit :
> Each project you generate should simply be openable via the Open
> Project menu item, assuming it conforms to your project type.
>
> What you think you’re doing is different to what you’re actually doing:
>
> 1. You think that you should be able to open newly generated projects
> via the New Project dialog.
>
> 2. But that is not what the New Project dialog is for. That is for
> generating new projects, which you’ve already done some other way.
>
> Can you use the Open Project dialog to open your projects?
>
> Gj
>
>
> On Sat, 4 Jan 2020 at 14:24, Bilu  > wrote:
>
> well thanks anyway :)
>
> Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit :
>>
>> Again, it does not work in the way you intend. 
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:57, Bilu > > wrote:
>>
>> this is related to the Project sample registration. i want to
>> add a sample to the New Project wizard. The sample could
>> function either as an example to the user or as a new project
>> template that provides the basic files needed to get started
>> working on a technology of some kind:
>> 
>> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking
>>
>> In the example in the tutorial the basic files are provided
>> via the content element as a resource relative to the package
>> and what i want is to provide a resource outside instead
>>
>> @TemplateRegistration(
>> folder = "Project/Samples/Standard", 
>> displayName = "#MySampleApplication_displayName", 
>> description = "MySampleApplicationDescription.html", 
>> iconBase = 
>> "org/myorg/additionalsamples/MySampleApplication.png",
>> *content = "MySampleApplicationProject.zip")*
>>
>> i hope it is more clear for you
>>
>> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
>>> It sounds like what you’re generating should simply be
>>> opened via Open Project menu item, i.e., this does not
>>> relate to the New Project wizard at all. 
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga
>>> mailto:geert...@apache.org>> wrote:
>>>
>>> I think what you’re trying to achieve is not something
>>> that makes sense from the point of view of how NetBeans
>>> works.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:22, Bilu >> > wrote:
>>>
>>> i don't think this will works as i can not generate
>>> the resource into a package once the module is build
>>> and running that's why i would like to generate it
>>> to a temp folder and fetch it each time the New
>>> project wizard is called
>>>
>>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :

 So generate it into a package in your module
 instead if generating it in your temp folder.

 Gj

 On Sat, 4 Jan 2020 at 11:00, Bilu
 mailto:albi...@gmail.com>> wrote:

 because the resource has to be generated
 dynamically. so i need to generate it somewhere
 on the drive (lets say C:/Temp/) before make it
 available to the New project Wizard each time
 to be sure to have the last version of the
 resource.

 Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>
> Why?
>
> Gj
>
> On Sat, 4 Jan 2020 at 10:16, Bilu
> mailto:albi...@gmail.com>>
> wrote:
>
> Hello
>
> Documentation talk about File contents, as
> resources relative to the package of this
> declaration:
> 
> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>
> But is there a way 

Re: Maven Error -- Illegal access exception?

2020-01-04 Thread zahid



My explanation is relevant to your warnings

If for example you create new project -> java with maven -> FXML javafx 
Maven Archetype (Gluon) -> finish.


Then go to properties of that project , select action from categories.

scroll down the actions changing them to javafx:run or clean install 
javafx:run


especially where it says  something like "com.hose ...exec".

Then run from green run arrow at the top menu.

You will find the application runs without any warnings or issues.

BUT if you run from terminal command line  "mvn javafx:run then you will 
get those same warnings.


I believe there is something in NETBEANS IDE which eliminates these 
warnings.




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

what is Maven on about here?

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
com.google.inject.internal.cglib.core.$ReflectUtils$1
(file:/usr/share/maven/lib/guice.jar) to method
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.
security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of
com.google.inject.internal.cglib.core.$ReflectUtils$1
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


--
www.backbutton.co.uk
¯\_(ツ)_/¯
Marry loose with tight
coupling
= healthy applications


-
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: Newbie to Netbeans/Maven -- best solution?

2020-01-04 Thread Chris Olsen
Zahid and All --

   Works like a charm!   Thank you yet again...

  -- Chris

- Original Message -
From: zahid 
To: Chris Olsen , users 
Sent: Sat, 04 Jan 2020 12:09:33 -0500 (EST)
Subject: Re: Newbie to Netbeans/Maven -- best solution?

There are three tabs you should  see on the left immediately below top 
menu bar.

tab:Projects  tab:Files  tab:Services

select > tab:Files

Traverse down the tree branches  to   -> src -> main

while main highlighted  {in select mode}.

! left click but the other one right click

select new -> folder

folder name:  resources {lower case}

  observe and confirm  parent folder:  src/main

->  finish


www.backbutton.co.uk
¯\_(ツ)_/¯
Marry loose with tight
coupling = healthy applications

On 03/01/2020 15:22, Chris Olsen wrote:
> 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
>
-- 
www.backbutton.co.uk
¯\_(ツ)_/¯
Marry loose with tight
coupling
= healthy applications


-
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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Each project you generate should simply be openable via the Open Project
menu item, assuming it conforms to your project type.

What you think you’re doing is different to what you’re actually doing:

1. You think that you should be able to open newly generated projects via
the New Project dialog.

2. But that is not what the New Project dialog is for. That is for
generating new projects, which you’ve already done some other way.

Can you use the Open Project dialog to open your projects?

Gj


On Sat, 4 Jan 2020 at 14:24, Bilu  wrote:

> well thanks anyway :)
> Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit :
>
>
> Again, it does not work in the way you intend.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:57, Bilu  wrote:
>
>> this is related to the Project sample registration. i want to add a
>> sample to the New Project wizard. The sample could function either as an
>> example to the user or as a new project template that provides the basic
>> files needed to get started working on a technology of some kind:
>> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking
>>
>> In the example in the tutorial the basic files are provided via the
>> content element as a resource relative to the package and what i want is
>> to provide a resource outside instead
>>
>> @TemplateRegistration(
>> folder = "Project/Samples/Standard",
>> displayName = "#MySampleApplication_displayName",
>> description = "MySampleApplicationDescription.html",
>> iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
>> *content = "MySampleApplicationProject.zip")*
>>
>> i hope it is more clear for you
>> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
>>
>> It sounds like what you’re generating should simply be opened via Open
>> Project menu item, i.e., this does not relate to the New Project wizard at
>> all.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga 
>> wrote:
>>
>>> I think what you’re trying to achieve is not something that makes sense
>>> from the point of view of how NetBeans works.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:
>>>
 i don't think this will works as i can not generate the resource into a
 package once the module is build and running that's why i would like to
 generate it to a temp folder and fetch it each time the New project wizard
 is called
 Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :


 So generate it into a package in your module instead if generating it
 in your temp folder.

 Gj

 On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:

> because the resource has to be generated dynamically. so i need to
> generate it somewhere on the drive (lets say C:/Temp/) before make it
> available to the New project Wizard each time to be sure to have the last
> version of the resource.
> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>
>
> Why?
>
> Gj
>
> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>
>> Hello
>>
>> Documentation talk about File contents, as resources relative to the
>> package of this declaration:
>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>
>> But is there a way to declare file outside of the package?
>>
>> Thanks to help
>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>>
>> Hello, is there a way to specify Template registation (Project sample 
>> declaration) content outside package declaration as my ressource is 
>> available on the disk? This only work when resource relative to the 
>> package of this declaration
>>
>> @TemplateRegistration(
>> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
>> page = "org/netbeans/modules/templatesui/x.html",
>> content = "C:/Temp/content.zip"
>> )
>>
>> -
>> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
well thanks anyway :)

Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit :
>
> Again, it does not work in the way you intend. 
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:57, Bilu  > wrote:
>
> this is related to the Project sample registration. i want to add
> a sample to the New Project wizard. The sample could function
> either as an example to the user or as a new project template that
> provides the basic files needed to get started working on a
> technology of some kind:
> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking
>
> In the example in the tutorial the basic files are provided via
> the content element as a resource relative to the package and what
> i want is to provide a resource outside instead
>
> @TemplateRegistration(
> folder = "Project/Samples/Standard", 
> displayName = "#MySampleApplication_displayName", 
> description = "MySampleApplicationDescription.html", 
> iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
> *content = "MySampleApplicationProject.zip")*
>
> i hope it is more clear for you
>
> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
>> It sounds like what you’re generating should simply be opened via
>> Open Project menu item, i.e., this does not relate to the New
>> Project wizard at all. 
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga
>> mailto:geert...@apache.org>> wrote:
>>
>> I think what you’re trying to achieve is not something that
>> makes sense from the point of view of how NetBeans works.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:22, Bilu > > wrote:
>>
>> i don't think this will works as i can not generate the
>> resource into a package once the module is build and
>> running that's why i would like to generate it to a temp
>> folder and fetch it each time the New project wizard is
>> called
>>
>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>>>
>>> So generate it into a package in your module instead if
>>> generating it in your temp folder.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:00, Bilu >> > wrote:
>>>
>>> because the resource has to be generated
>>> dynamically. so i need to generate it somewhere on
>>> the drive (lets say C:/Temp/) before make it
>>> available to the New project Wizard each time to be
>>> sure to have the last version of the resource.
>>>
>>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :

 Why?

 Gj

 On Sat, 4 Jan 2020 at 10:16, Bilu
 mailto:albi...@gmail.com>> wrote:

 Hello

 Documentation talk about File contents, as
 resources relative to the package of this
 declaration:
 
 http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()

 But is there a way to declare file outside of
 the package?

 Thanks to help

 Le 29/12/2019 à 10:39, Bilu Al a écrit :
> Hello, is there a way to specify Template registation 
> (Project sample declaration) content outside package declaration as my 
> ressource is available on the disk? This only work when resource relative 
> to the package of this declaration 
>
> @TemplateRegistration(
> folder = "Test", iconBase = 
> "org/netbeans/modules/templatesui/x.png",
> page = "org/netbeans/modules/templatesui/x.html",
> content = "C:/Temp/content.zip"
> )
>
> 
> -
> 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 Netbeans/Maven -- best solution?

2020-01-04 Thread zahid
There are three tabs you should  see on the left immediately below top 
menu bar.


tab:Projects  tab:Files  tab:Services

select > tab:Files

Traverse down the tree branches  to   -> src -> main

while main highlighted  {in select mode}.

! left click but the other one right click

select new -> folder

folder name:  resources {lower case}

 observe and confirm  parent folder:  src/main

->  finish


www.backbutton.co.uk
¯\_(ツ)_/¯
Marry loose with tight
coupling = healthy applications

On 03/01/2020 15:22, Chris Olsen wrote:

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


--
www.backbutton.co.uk
¯\_(ツ)_/¯
Marry loose with tight
coupling
= healthy applications


-
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



Maven Error -- Illegal access exception?

2020-01-04 Thread Peter L. Berghold
what is Maven on about here?

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
com.google.inject.internal.cglib.core.$ReflectUtils$1
(file:/usr/share/maven/lib/guice.jar) to method
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.
security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of
com.google.inject.internal.cglib.core.$ReflectUtils$1
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

-- 


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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Again, it does not work in the way you intend.

Gj

On Sat, 4 Jan 2020 at 11:57, Bilu  wrote:

> this is related to the Project sample registration. i want to add a sample
> to the New Project wizard. The sample could function either as an example
> to the user or as a new project template that provides the basic files
> needed to get started working on a technology of some kind:
> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking
>
> In the example in the tutorial the basic files are provided via the
> content element as a resource relative to the package and what i want is
> to provide a resource outside instead
>
> @TemplateRegistration(
> folder = "Project/Samples/Standard",
> displayName = "#MySampleApplication_displayName",
> description = "MySampleApplicationDescription.html",
> iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
> *content = "MySampleApplicationProject.zip")*
>
> i hope it is more clear for you
> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
>
> It sounds like what you’re generating should simply be opened via Open
> Project menu item, i.e., this does not relate to the New Project wizard at
> all.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga 
> wrote:
>
>> I think what you’re trying to achieve is not something that makes sense
>> from the point of view of how NetBeans works.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:
>>
>>> i don't think this will works as i can not generate the resource into a
>>> package once the module is build and running that's why i would like to
>>> generate it to a temp folder and fetch it each time the New project wizard
>>> is called
>>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>>>
>>>
>>> So generate it into a package in your module instead if generating it in
>>> your temp folder.
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:
>>>
 because the resource has to be generated dynamically. so i need to
 generate it somewhere on the drive (lets say C:/Temp/) before make it
 available to the New project Wizard each time to be sure to have the last
 version of the resource.
 Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :


 Why?

 Gj

 On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:

> Hello
>
> Documentation talk about File contents, as resources relative to the
> package of this declaration:
> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>
> But is there a way to declare file outside of the package?
>
> Thanks to help
> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>
> Hello, is there a way to specify Template registation (Project sample 
> declaration) content outside package declaration as my ressource is 
> available on the disk? This only work when resource relative to the 
> package of this declaration
>
> @TemplateRegistration(
> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
> page = "org/netbeans/modules/templatesui/x.html",
> content = "C:/Temp/content.zip"
> )
>
> -
> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
this is related to the Project sample registration. i want to add a
sample to the New Project wizard. The sample could function either as an
example to the user or as a new project template that provides the basic
files needed to get started working on a technology of some kind:
https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking

In the example in the tutorial the basic files are provided via the
content element as a resource relative to the package and what i want is
to provide a resource outside instead

@TemplateRegistration(
folder = "Project/Samples/Standard", 
displayName = "#MySampleApplication_displayName", 
description = "MySampleApplicationDescription.html", 
iconBase = "org/myorg/additionalsamples/MySampleApplication.png",
*content = "MySampleApplicationProject.zip")*

i hope it is more clear for you

Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit :
> It sounds like what you’re generating should simply be opened via Open
> Project menu item, i.e., this does not relate to the New Project
> wizard at all. 
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga  > wrote:
>
> I think what you’re trying to achieve is not something that makes
> sense from the point of view of how NetBeans works.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:22, Bilu  > wrote:
>
> i don't think this will works as i can not generate the
> resource into a package once the module is build and running
> that's why i would like to generate it to a temp folder and
> fetch it each time the New project wizard is called
>
> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>>
>> So generate it into a package in your module instead if
>> generating it in your temp folder.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:00, Bilu > > wrote:
>>
>> because the resource has to be generated dynamically. so
>> i need to generate it somewhere on the drive (lets say
>> C:/Temp/) before make it available to the New project
>> Wizard each time to be sure to have the last version of
>> the resource.
>>
>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>>
>>> Why?
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 10:16, Bilu >> > wrote:
>>>
>>> Hello
>>>
>>> Documentation talk about File contents, as resources
>>> relative to the package of this declaration:
>>> 
>>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>>
>>> But is there a way to declare file outside of the
>>> package?
>>>
>>> Thanks to help
>>>
>>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
 Hello, is there a way to specify Template registation 
 (Project sample declaration) content outside package declaration as my 
 ressource is available on the disk? This only work when resource relative 
 to the package of this declaration 

 @TemplateRegistration(
 folder = "Test", iconBase = 
 "org/netbeans/modules/templatesui/x.png",
 page = "org/netbeans/modules/templatesui/x.html",
 content = "C:/Temp/content.zip"
 )

 
 -
 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
It sounds like what you’re generating should simply be opened via Open
Project menu item, i.e., this does not relate to the New Project wizard at
all.

Gj

On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga  wrote:

> I think what you’re trying to achieve is not something that makes sense
> from the point of view of how NetBeans works.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:
>
>> i don't think this will works as i can not generate the resource into a
>> package once the module is build and running that's why i would like to
>> generate it to a temp folder and fetch it each time the New project wizard
>> is called
>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>>
>>
>> So generate it into a package in your module instead if generating it in
>> your temp folder.
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:
>>
>>> because the resource has to be generated dynamically. so i need to
>>> generate it somewhere on the drive (lets say C:/Temp/) before make it
>>> available to the New project Wizard each time to be sure to have the last
>>> version of the resource.
>>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>>
>>>
>>> Why?
>>>
>>> Gj
>>>
>>> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>>>
 Hello

 Documentation talk about File contents, as resources relative to the
 package of this declaration:
 http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()

 But is there a way to declare file outside of the package?

 Thanks to help
 Le 29/12/2019 à 10:39, Bilu Al a écrit :

 Hello, is there a way to specify Template registation (Project sample 
 declaration) content outside package declaration as my ressource is 
 available on the disk? This only work when resource relative to the 
 package of this declaration

 @TemplateRegistration(
 folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
 page = "org/netbeans/modules/templatesui/x.html",
 content = "C:/Temp/content.zip"
 )

 -
 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
I think what you’re trying to achieve is not something that makes sense
from the point of view of how NetBeans works.

Gj

On Sat, 4 Jan 2020 at 11:22, Bilu  wrote:

> i don't think this will works as i can not generate the resource into a
> package once the module is build and running that's why i would like to
> generate it to a temp folder and fetch it each time the New project wizard
> is called
> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>
>
> So generate it into a package in your module instead if generating it in
> your temp folder.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:
>
>> because the resource has to be generated dynamically. so i need to
>> generate it somewhere on the drive (lets say C:/Temp/) before make it
>> available to the New project Wizard each time to be sure to have the last
>> version of the resource.
>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>
>>
>> Why?
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>>
>>> Hello
>>>
>>> Documentation talk about File contents, as resources relative to the
>>> package of this declaration:
>>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>>
>>> But is there a way to declare file outside of the package?
>>>
>>> Thanks to help
>>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>>>
>>> Hello, is there a way to specify Template registation (Project sample 
>>> declaration) content outside package declaration as my ressource is 
>>> available on the disk? This only work when resource relative to the package 
>>> of this declaration
>>>
>>> @TemplateRegistration(
>>> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
>>> page = "org/netbeans/modules/templatesui/x.html",
>>> content = "C:/Temp/content.zip"
>>> )
>>>
>>> -
>>> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
i don't think this will works as i can not generate the resource into a
package once the module is build and running that's why i would like to
generate it to a temp folder and fetch it each time the New project
wizard is called

Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit :
>
> So generate it into a package in your module instead if generating it
> in your temp folder.
>
> Gj
>
> On Sat, 4 Jan 2020 at 11:00, Bilu  > wrote:
>
> because the resource has to be generated dynamically. so i need to
> generate it somewhere on the drive (lets say C:/Temp/) before make
> it available to the New project Wizard each time to be sure to
> have the last version of the resource.
>
> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>>
>> Why?
>>
>> Gj
>>
>> On Sat, 4 Jan 2020 at 10:16, Bilu > > wrote:
>>
>> Hello
>>
>> Documentation talk about File contents, as resources relative
>> to the package of this declaration:
>> 
>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>
>> But is there a way to declare file outside of the package?
>>
>> Thanks to help
>>
>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>>> Hello, is there a way to specify Template registation (Project 
>>> sample declaration) content outside package declaration as my ressource is 
>>> available on the disk? This only work when resource relative to the package 
>>> of this declaration 
>>>
>>> @TemplateRegistration(
>>> folder = "Test", iconBase = 
>>> "org/netbeans/modules/templatesui/x.png",
>>> page = "org/netbeans/modules/templatesui/x.html",
>>> content = "C:/Temp/content.zip"
>>> )
>>>
>>> 
>>> -
>>> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
So generate it into a package in your module instead if generating it in
your temp folder.

Gj

On Sat, 4 Jan 2020 at 11:00, Bilu  wrote:

> because the resource has to be generated dynamically. so i need to
> generate it somewhere on the drive (lets say C:/Temp/) before make it
> available to the New project Wizard each time to be sure to have the last
> version of the resource.
> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit :
>
>
> Why?
>
> Gj
>
> On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:
>
>> Hello
>>
>> Documentation talk about File contents, as resources relative to the
>> package of this declaration:
>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>>
>> But is there a way to declare file outside of the package?
>>
>> Thanks to help
>> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>>
>> Hello, is there a way to specify Template registation (Project sample 
>> declaration) content outside package declaration as my ressource is 
>> available on the disk? This only work when resource relative to the package 
>> of this declaration
>>
>> @TemplateRegistration(
>> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
>> page = "org/netbeans/modules/templatesui/x.html",
>> content = "C:/Temp/content.zip"
>> )
>>
>> -
>> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Why?

Gj

On Sat, 4 Jan 2020 at 10:16, Bilu  wrote:

> Hello
>
> Documentation talk about File contents, as resources relative to the
> package of this declaration:
> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()
>
> But is there a way to declare file outside of the package?
>
> Thanks to help
> Le 29/12/2019 à 10:39, Bilu Al a écrit :
>
> Hello, is there a way to specify Template registation (Project sample 
> declaration) content outside package declaration as my ressource is available 
> on the disk? This only work when resource relative to the package of this 
> declaration
>
> @TemplateRegistration(
> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
> page = "org/netbeans/modules/templatesui/x.html",
> content = "C:/Temp/content.zip"
> )
>
> -
> 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: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
Hello

Documentation talk about File contents, as resources relative to the
package of this declaration:
http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content()

But is there a way to declare file outside of the package?

Thanks to help

Le 29/12/2019 à 10:39, Bilu Al a écrit :
> Hello, is there a way to specify Template registation (Project sample 
> declaration) content outside package declaration as my ressource is available 
> on the disk? This only work when resource relative to the package of this 
> declaration 
>
> @TemplateRegistration(
> folder = "Test", iconBase = "org/netbeans/modules/templatesui/x.png",
> page = "org/netbeans/modules/templatesui/x.html",
> content = "C:/Temp/content.zip"
> )
>
> -
> 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 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

>