Re: NB 11.2 change default project path

2020-02-20 Thread Laszlo Kishalmi
I haven't known this one either. Just spent  one minute to dig it up 
from the source code.


My method was:

1. Search for "NetBeansProjects" in all properties which throw one 
Bundle.properties file in Project UI module the key was DIR_NetBeansProjects
2. Search the java files from project UI sources for 
DIR_NetBeansProjects, that way I had the code. All I needed to do is 
read it, found the system property

3. Post that in this thread.

On 2/20/20 12:00 PM, joe foe wrote:
You learn something new everyday! . Is there a complete list of all 
these parameters?




Regards,
JoeFoe

On Thu, 20 Feb 2020, 20:09 Mark Eggers, 
 wrote:


I did not know that - cool!

. . . just my two cents
/mde/
On 2/20/2020 10:59 AM, Laszlo Kishalmi wrote:
> Start Netbeans with:
>
> -J-Dnetbeans.projects.dir=
>
> you can add that option into your etc/netbeans.conf as well
>
> On 2/20/20 6:59 AM, Mark Eggers wrote:
>> I don't really understand why you described a disk crash,
recovery, and
>> then said that the default project folder wasn't to your liking
/ wasn't
>> easy to change.
>>
>> Instead, how about the following:
>>
>> I would like to change the default location of where File->New
Project
>> creates projects. I didn't find an easy or effective way to do
this. Is
>> there one?
>>
>> Can we have a start-up switch (somewhat like Eclipse) that
allows us to
>> chose a base project location? Or maybe a GUI in Tools->Options
that
>> allows us to set it easily? I will be happy to discuss my use
case on
>> the mailing list. Thanks.
>>
>> Is the above an accurate description of your issue? If it is, that
>> sounds like a simple (and possibly reasonable) request.
>>
>> Personally, I don't mind browsing around to a different
location during
>> project creation. Since I store different clusters of projects in
>> different parent directories, browsing around to open projects
is part
>> of my normal work flow. YMMV
>>
>> . . . just my two cents.
>> /mde/
>>
>> On 2/19/2020 9:22 PM, cryptearth wrote:
>>> TBH I didn'T read all of your reply, but from the first few
lines I did
>>> read: no, you got me wrong.
>>> My question is as simple as that: Is it possible, and if so:
How?, to
>>> change the default project folder where new projects supposed
to get
>>> created on disk? I didn't found any setting in whatever the
GUI gives me
>>> (as someone else on this list a few ago said: "Netbeans is
basically a
>>> graphical wrapper around maven.") and I didn't found any
config file.
>>> The one mentioned on many search results on the net doesn'T
seem to have
>>> an effect either, and the other user replied to my question
seem to
>>> didn't got my question at all and pointed me to a file wich
has nothing
>>> to do with per-user settings at all.
>>> Yes, Netbeans has many flaws - and obvious a lot of them
exists since
>>> 15(!) years (I found a bug report wich evolved into a
discusion from
>>> back late 2004 about this very topic). Is it really that much
to ask
>>> just for a simple input dialog right at the first time start
up where
>>> the user wants his default project location to be? And is it
that hard
>>> to at least somewhat follow the style many graphical programms
followed
>>> for the past three decades where you have a menu bar, starting
with
>>> File, then Edit, then maybe some more, and end with Extras and
Help -
>>> and to just put an "options" or "settings" into one of those -
and offer
>>> the same settings dialog as mentioned before? How old is
Netbeans? 15+
>>> years? And it's menus are that - sorry to say it this directly:
>>> immature? It's like an early not feature complete alpha where
someone
>>> couldn't decide just where to put it.
>>> Back to modern days: Java 11 doesn't allow compiling for Java
5 any
>>> more. It's a simple if() just to check for the version of the
compiler -
>>> and if it's 11 or above set the minimum target compiling level
to at
>>> least 6 and disable any lower versions. C'mon - don't tell me
100s of
>>> devs could get this done in the time this exists.
>>> All made fun about me cause I'm using just a simple editor
with some
>>> basic syntax highlight and a terminal to compile. If I see
what a mess
>>> and overhead all this fancy IDEs and build-tools costs - wich
in fact
>>> they're supposed to do for the dev - not in addition to it -
what's the
>>> benefit of wasting time to figure out how to get around
simplest fails
>>> done in every beginners for dummies book?
>>>
>>> I'm done with it - back to the old style - that at least did
what I told
>>> to do 

Re: NB 11.2 change default project path

2020-02-20 Thread Geertjan Wielenga
I love this thread, how it developed will be the basis of several sessions
I will be doing — essentially about everything that is truly good and truly
bad about open source (i.e., shared ownership) development.

Gj


On Thu, 20 Feb 2020 at 21:00, joe foe  wrote:

> You learn something new everyday! . Is there a complete list of all these
> parameters?
>
>
>
> Regards,
> JoeFoe
>
> On Thu, 20 Feb 2020, 20:09 Mark Eggers, 
> wrote:
>
>> I did not know that - cool!
>>
>> . . . just my two cents
>> /mde/
>> On 2/20/2020 10:59 AM, Laszlo Kishalmi wrote:
>> > Start Netbeans with:
>> >
>> > -J-Dnetbeans.projects.dir=
>> >
>> > you can add that option into your etc/netbeans.conf as well
>> >
>> > On 2/20/20 6:59 AM, Mark Eggers wrote:
>> >> I don't really understand why you described a disk crash, recovery, and
>> >> then said that the default project folder wasn't to your liking /
>> wasn't
>> >> easy to change.
>> >>
>> >> Instead, how about the following:
>> >>
>> >> I would like to change the default location of where File->New Project
>> >> creates projects. I didn't find an easy or effective way to do this. Is
>> >> there one?
>> >>
>> >> Can we have a start-up switch (somewhat like Eclipse) that allows us to
>> >> chose a base project location? Or maybe a GUI in Tools->Options that
>> >> allows us to set it easily? I will be happy to discuss my use case on
>> >> the mailing list. Thanks.
>> >>
>> >> Is the above an accurate description of your issue? If it is, that
>> >> sounds like a simple (and possibly reasonable) request.
>> >>
>> >> Personally, I don't mind browsing around to a different location during
>> >> project creation. Since I store different clusters of projects in
>> >> different parent directories, browsing around to open projects is part
>> >> of my normal work flow. YMMV
>> >>
>> >> . . . just my two cents.
>> >> /mde/
>> >>
>> >> On 2/19/2020 9:22 PM, cryptearth wrote:
>> >>> TBH I didn'T read all of your reply, but from the first few lines I
>> did
>> >>> read: no, you got me wrong.
>> >>> My question is as simple as that: Is it possible, and if so: How?, to
>> >>> change the default project folder where new projects supposed to get
>> >>> created on disk? I didn't found any setting in whatever the GUI gives
>> me
>> >>> (as someone else on this list a few ago said: "Netbeans is basically a
>> >>> graphical wrapper around maven.") and I didn't found any config file.
>> >>> The one mentioned on many search results on the net doesn'T seem to
>> have
>> >>> an effect either, and the other user replied to my question seem to
>> >>> didn't got my question at all and pointed me to a file wich has
>> nothing
>> >>> to do with per-user settings at all.
>> >>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
>> >>> 15(!) years (I found a bug report wich evolved into a discusion from
>> >>> back late 2004 about this very topic). Is it really that much to ask
>> >>> just for a simple input dialog right at the first time start up where
>> >>> the user wants his default project location to be? And is it that hard
>> >>> to at least somewhat follow the style many graphical programms
>> followed
>> >>> for the past three decades where you have a menu bar, starting with
>> >>> File, then Edit, then maybe some more, and end with Extras and Help -
>> >>> and to just put an "options" or "settings" into one of those - and
>> offer
>> >>> the same settings dialog as mentioned before? How old is Netbeans? 15+
>> >>> years? And it's menus are that - sorry to say it this directly:
>> >>> immature? It's like an early not feature complete alpha where someone
>> >>> couldn't decide just where to put it.
>> >>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
>> >>> more. It's a simple if() just to check for the version of the
>> compiler -
>> >>> and if it's 11 or above set the minimum target compiling level to at
>> >>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
>> >>> devs could get this done in the time this exists.
>> >>> All made fun about me cause I'm using just a simple editor with some
>> >>> basic syntax highlight and a terminal to compile. If I see what a mess
>> >>> and overhead all this fancy IDEs and build-tools costs - wich in fact
>> >>> they're supposed to do for the dev - not in addition to it - what's
>> the
>> >>> benefit of wasting time to figure out how to get around simplest fails
>> >>> done in every beginners for dummies book?
>> >>>
>> >>> I'm done with it - back to the old style - that at least did what I
>> told
>> >>> to do ..
>> >>>
>> >>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>>  First of all, I'm just a happy NetBeans user.
>> 
>>  Second of all, this is just my opinion.
>> 
>>  So let me try to understand your problem first.
>> 
>>  1. You crashed what appears to be a Windows data and programs disk
>> 
>>  This is different than where your user profile is stored. I
>> 

Re: NB 11.2 change default project path

2020-02-20 Thread joe foe
You learn something new everyday! . Is there a complete list of all these
parameters?



Regards,
JoeFoe

On Thu, 20 Feb 2020, 20:09 Mark Eggers, 
wrote:

> I did not know that - cool!
>
> . . . just my two cents
> /mde/
> On 2/20/2020 10:59 AM, Laszlo Kishalmi wrote:
> > Start Netbeans with:
> >
> > -J-Dnetbeans.projects.dir=
> >
> > you can add that option into your etc/netbeans.conf as well
> >
> > On 2/20/20 6:59 AM, Mark Eggers wrote:
> >> I don't really understand why you described a disk crash, recovery, and
> >> then said that the default project folder wasn't to your liking / wasn't
> >> easy to change.
> >>
> >> Instead, how about the following:
> >>
> >> I would like to change the default location of where File->New Project
> >> creates projects. I didn't find an easy or effective way to do this. Is
> >> there one?
> >>
> >> Can we have a start-up switch (somewhat like Eclipse) that allows us to
> >> chose a base project location? Or maybe a GUI in Tools->Options that
> >> allows us to set it easily? I will be happy to discuss my use case on
> >> the mailing list. Thanks.
> >>
> >> Is the above an accurate description of your issue? If it is, that
> >> sounds like a simple (and possibly reasonable) request.
> >>
> >> Personally, I don't mind browsing around to a different location during
> >> project creation. Since I store different clusters of projects in
> >> different parent directories, browsing around to open projects is part
> >> of my normal work flow. YMMV
> >>
> >> . . . just my two cents.
> >> /mde/
> >>
> >> On 2/19/2020 9:22 PM, cryptearth wrote:
> >>> TBH I didn'T read all of your reply, but from the first few lines I did
> >>> read: no, you got me wrong.
> >>> My question is as simple as that: Is it possible, and if so: How?, to
> >>> change the default project folder where new projects supposed to get
> >>> created on disk? I didn't found any setting in whatever the GUI gives
> me
> >>> (as someone else on this list a few ago said: "Netbeans is basically a
> >>> graphical wrapper around maven.") and I didn't found any config file.
> >>> The one mentioned on many search results on the net doesn'T seem to
> have
> >>> an effect either, and the other user replied to my question seem to
> >>> didn't got my question at all and pointed me to a file wich has nothing
> >>> to do with per-user settings at all.
> >>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
> >>> 15(!) years (I found a bug report wich evolved into a discusion from
> >>> back late 2004 about this very topic). Is it really that much to ask
> >>> just for a simple input dialog right at the first time start up where
> >>> the user wants his default project location to be? And is it that hard
> >>> to at least somewhat follow the style many graphical programms followed
> >>> for the past three decades where you have a menu bar, starting with
> >>> File, then Edit, then maybe some more, and end with Extras and Help -
> >>> and to just put an "options" or "settings" into one of those - and
> offer
> >>> the same settings dialog as mentioned before? How old is Netbeans? 15+
> >>> years? And it's menus are that - sorry to say it this directly:
> >>> immature? It's like an early not feature complete alpha where someone
> >>> couldn't decide just where to put it.
> >>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> >>> more. It's a simple if() just to check for the version of the compiler
> -
> >>> and if it's 11 or above set the minimum target compiling level to at
> >>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> >>> devs could get this done in the time this exists.
> >>> All made fun about me cause I'm using just a simple editor with some
> >>> basic syntax highlight and a terminal to compile. If I see what a mess
> >>> and overhead all this fancy IDEs and build-tools costs - wich in fact
> >>> they're supposed to do for the dev - not in addition to it - what's the
> >>> benefit of wasting time to figure out how to get around simplest fails
> >>> done in every beginners for dummies book?
> >>>
> >>> I'm done with it - back to the old style - that at least did what I
> told
> >>> to do ..
> >>>
> >>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>  First of all, I'm just a happy NetBeans user.
> 
>  Second of all, this is just my opinion.
> 
>  So let me try to understand your problem first.
> 
>  1. You crashed what appears to be a Windows data and programs disk
> 
>  This is different than where your user profile is stored. I understand
>  this, since I do the same thing to minimize usage of a small OS SSD
>  drive.
> 
>  2. You reinstalled NetBeans on a new disk
> 
>  3. You recovered your NetBeans projects on a new disk
> 
>  The problem is that the 'Recent Projects' list links to the wrong
>  location. I'm guessing that this is the case since either drive
> letters
>  have 

Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
I did not know that - cool!

. . . just my two cents
/mde/
On 2/20/2020 10:59 AM, Laszlo Kishalmi wrote:
> Start Netbeans with:
> 
> -J-Dnetbeans.projects.dir=
> 
> you can add that option into your etc/netbeans.conf as well
> 
> On 2/20/20 6:59 AM, Mark Eggers wrote:
>> I don't really understand why you described a disk crash, recovery, and
>> then said that the default project folder wasn't to your liking / wasn't
>> easy to change.
>>
>> Instead, how about the following:
>>
>> I would like to change the default location of where File->New Project
>> creates projects. I didn't find an easy or effective way to do this. Is
>> there one?
>>
>> Can we have a start-up switch (somewhat like Eclipse) that allows us to
>> chose a base project location? Or maybe a GUI in Tools->Options that
>> allows us to set it easily? I will be happy to discuss my use case on
>> the mailing list. Thanks.
>>
>> Is the above an accurate description of your issue? If it is, that
>> sounds like a simple (and possibly reasonable) request.
>>
>> Personally, I don't mind browsing around to a different location during
>> project creation. Since I store different clusters of projects in
>> different parent directories, browsing around to open projects is part
>> of my normal work flow. YMMV
>>
>> . . . just my two cents.
>> /mde/
>>
>> On 2/19/2020 9:22 PM, cryptearth wrote:
>>> TBH I didn'T read all of your reply, but from the first few lines I did
>>> read: no, you got me wrong.
>>> My question is as simple as that: Is it possible, and if so: How?, to
>>> change the default project folder where new projects supposed to get
>>> created on disk? I didn't found any setting in whatever the GUI gives me
>>> (as someone else on this list a few ago said: "Netbeans is basically a
>>> graphical wrapper around maven.") and I didn't found any config file.
>>> The one mentioned on many search results on the net doesn'T seem to have
>>> an effect either, and the other user replied to my question seem to
>>> didn't got my question at all and pointed me to a file wich has nothing
>>> to do with per-user settings at all.
>>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
>>> 15(!) years (I found a bug report wich evolved into a discusion from
>>> back late 2004 about this very topic). Is it really that much to ask
>>> just for a simple input dialog right at the first time start up where
>>> the user wants his default project location to be? And is it that hard
>>> to at least somewhat follow the style many graphical programms followed
>>> for the past three decades where you have a menu bar, starting with
>>> File, then Edit, then maybe some more, and end with Extras and Help -
>>> and to just put an "options" or "settings" into one of those - and offer
>>> the same settings dialog as mentioned before? How old is Netbeans? 15+
>>> years? And it's menus are that - sorry to say it this directly:
>>> immature? It's like an early not feature complete alpha where someone
>>> couldn't decide just where to put it.
>>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
>>> more. It's a simple if() just to check for the version of the compiler -
>>> and if it's 11 or above set the minimum target compiling level to at
>>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
>>> devs could get this done in the time this exists.
>>> All made fun about me cause I'm using just a simple editor with some
>>> basic syntax highlight and a terminal to compile. If I see what a mess
>>> and overhead all this fancy IDEs and build-tools costs - wich in fact
>>> they're supposed to do for the dev - not in addition to it - what's the
>>> benefit of wasting time to figure out how to get around simplest fails
>>> done in every beginners for dummies book?
>>>
>>> I'm done with it - back to the old style - that at least did what I told
>>> to do ..
>>>
>>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
 First of all, I'm just a happy NetBeans user.

 Second of all, this is just my opinion.

 So let me try to understand your problem first.

 1. You crashed what appears to be a Windows data and programs disk

 This is different than where your user profile is stored. I understand
 this, since I do the same thing to minimize usage of a small OS SSD
 drive.

 2. You reinstalled NetBeans on a new disk

 3. You recovered your NetBeans projects on a new disk

 The problem is that the 'Recent Projects' list links to the wrong
 location. I'm guessing that this is the case since either drive letters
 have changed or directories have changed.

 In addition, there may be a lot of issues with the cache.

 The best solution is to:

 1. Ignore the 'Recent Projects' list until you've opened 10 or more
 projects

 As Gj has pointed out, editing the projectui.properties file is not
 something that should be done. I confess that 

Re: NB 11.2 change default project path

2020-02-20 Thread Geertjan Wielenga
Wow, awesome.

Gj

On Thu, 20 Feb 2020 at 19:59, Laszlo Kishalmi 
wrote:

> Start Netbeans with:
>
> -J-Dnetbeans.projects.dir=
>
> you can add that option into your etc/netbeans.conf as well
>
> On 2/20/20 6:59 AM, Mark Eggers wrote:
> > I don't really understand why you described a disk crash, recovery, and
> > then said that the default project folder wasn't to your liking / wasn't
> > easy to change.
> >
> > Instead, how about the following:
> >
> > I would like to change the default location of where File->New Project
> > creates projects. I didn't find an easy or effective way to do this. Is
> > there one?
> >
> > Can we have a start-up switch (somewhat like Eclipse) that allows us to
> > chose a base project location? Or maybe a GUI in Tools->Options that
> > allows us to set it easily? I will be happy to discuss my use case on
> > the mailing list. Thanks.
> >
> > Is the above an accurate description of your issue? If it is, that
> > sounds like a simple (and possibly reasonable) request.
> >
> > Personally, I don't mind browsing around to a different location during
> > project creation. Since I store different clusters of projects in
> > different parent directories, browsing around to open projects is part
> > of my normal work flow. YMMV
> >
> > . . . just my two cents.
> > /mde/
> >
> > On 2/19/2020 9:22 PM, cryptearth wrote:
> >> TBH I didn'T read all of your reply, but from the first few lines I did
> >> read: no, you got me wrong.
> >> My question is as simple as that: Is it possible, and if so: How?, to
> >> change the default project folder where new projects supposed to get
> >> created on disk? I didn't found any setting in whatever the GUI gives me
> >> (as someone else on this list a few ago said: "Netbeans is basically a
> >> graphical wrapper around maven.") and I didn't found any config file.
> >> The one mentioned on many search results on the net doesn'T seem to have
> >> an effect either, and the other user replied to my question seem to
> >> didn't got my question at all and pointed me to a file wich has nothing
> >> to do with per-user settings at all.
> >> Yes, Netbeans has many flaws - and obvious a lot of them exists since
> >> 15(!) years (I found a bug report wich evolved into a discusion from
> >> back late 2004 about this very topic). Is it really that much to ask
> >> just for a simple input dialog right at the first time start up where
> >> the user wants his default project location to be? And is it that hard
> >> to at least somewhat follow the style many graphical programms followed
> >> for the past three decades where you have a menu bar, starting with
> >> File, then Edit, then maybe some more, and end with Extras and Help -
> >> and to just put an "options" or "settings" into one of those - and offer
> >> the same settings dialog as mentioned before? How old is Netbeans? 15+
> >> years? And it's menus are that - sorry to say it this directly:
> >> immature? It's like an early not feature complete alpha where someone
> >> couldn't decide just where to put it.
> >> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> >> more. It's a simple if() just to check for the version of the compiler -
> >> and if it's 11 or above set the minimum target compiling level to at
> >> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> >> devs could get this done in the time this exists.
> >> All made fun about me cause I'm using just a simple editor with some
> >> basic syntax highlight and a terminal to compile. If I see what a mess
> >> and overhead all this fancy IDEs and build-tools costs - wich in fact
> >> they're supposed to do for the dev - not in addition to it - what's the
> >> benefit of wasting time to figure out how to get around simplest fails
> >> done in every beginners for dummies book?
> >>
> >> I'm done with it - back to the old style - that at least did what I told
> >> to do ..
> >>
> >> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
> >>> First of all, I'm just a happy NetBeans user.
> >>>
> >>> Second of all, this is just my opinion.
> >>>
> >>> So let me try to understand your problem first.
> >>>
> >>> 1. You crashed what appears to be a Windows data and programs disk
> >>>
> >>> This is different than where your user profile is stored. I understand
> >>> this, since I do the same thing to minimize usage of a small OS SSD
> >>> drive.
> >>>
> >>> 2. You reinstalled NetBeans on a new disk
> >>>
> >>> 3. You recovered your NetBeans projects on a new disk
> >>>
> >>> The problem is that the 'Recent Projects' list links to the wrong
> >>> location. I'm guessing that this is the case since either drive letters
> >>> have changed or directories have changed.
> >>>
> >>> In addition, there may be a lot of issues with the cache.
> >>>
> >>> The best solution is to:
> >>>
> >>> 1. Ignore the 'Recent Projects' list until you've opened 10 or more
> >>> projects
> >>>
> >>> As Gj has pointed out, editing the projectui.properties 

Re: NB 11.2 change default project path

2020-02-20 Thread Laszlo Kishalmi

Start Netbeans with:

-J-Dnetbeans.projects.dir=

you can add that option into your etc/netbeans.conf as well

On 2/20/20 6:59 AM, Mark Eggers wrote:

I don't really understand why you described a disk crash, recovery, and
then said that the default project folder wasn't to your liking / wasn't
easy to change.

Instead, how about the following:

I would like to change the default location of where File->New Project
creates projects. I didn't find an easy or effective way to do this. Is
there one?

Can we have a start-up switch (somewhat like Eclipse) that allows us to
chose a base project location? Or maybe a GUI in Tools->Options that
allows us to set it easily? I will be happy to discuss my use case on
the mailing list. Thanks.

Is the above an accurate description of your issue? If it is, that
sounds like a simple (and possibly reasonable) request.

Personally, I don't mind browsing around to a different location during
project creation. Since I store different clusters of projects in
different parent directories, browsing around to open projects is part
of my normal work flow. YMMV

. . . just my two cents.
/mde/

On 2/19/2020 9:22 PM, cryptearth wrote:

TBH I didn'T read all of your reply, but from the first few lines I did
read: no, you got me wrong.
My question is as simple as that: Is it possible, and if so: How?, to
change the default project folder where new projects supposed to get
created on disk? I didn't found any setting in whatever the GUI gives me
(as someone else on this list a few ago said: "Netbeans is basically a
graphical wrapper around maven.") and I didn't found any config file.
The one mentioned on many search results on the net doesn'T seem to have
an effect either, and the other user replied to my question seem to
didn't got my question at all and pointed me to a file wich has nothing
to do with per-user settings at all.
Yes, Netbeans has many flaws - and obvious a lot of them exists since
15(!) years (I found a bug report wich evolved into a discusion from
back late 2004 about this very topic). Is it really that much to ask
just for a simple input dialog right at the first time start up where
the user wants his default project location to be? And is it that hard
to at least somewhat follow the style many graphical programms followed
for the past three decades where you have a menu bar, starting with
File, then Edit, then maybe some more, and end with Extras and Help -
and to just put an "options" or "settings" into one of those - and offer
the same settings dialog as mentioned before? How old is Netbeans? 15+
years? And it's menus are that - sorry to say it this directly:
immature? It's like an early not feature complete alpha where someone
couldn't decide just where to put it.
Back to modern days: Java 11 doesn't allow compiling for Java 5 any
more. It's a simple if() just to check for the version of the compiler -
and if it's 11 or above set the minimum target compiling level to at
least 6 and disable any lower versions. C'mon - don't tell me 100s of
devs could get this done in the time this exists.
All made fun about me cause I'm using just a simple editor with some
basic syntax highlight and a terminal to compile. If I see what a mess
and overhead all this fancy IDEs and build-tools costs - wich in fact
they're supposed to do for the dev - not in addition to it - what's the
benefit of wasting time to figure out how to get around simplest fails
done in every beginners for dummies book?

I'm done with it - back to the old style - that at least did what I told
to do ..

Am 20.02.2020 um 03:45 schrieb Mark Eggers:

First of all, I'm just a happy NetBeans user.

Second of all, this is just my opinion.

So let me try to understand your problem first.

1. You crashed what appears to be a Windows data and programs disk

This is different than where your user profile is stored. I understand
this, since I do the same thing to minimize usage of a small OS SSD
drive.

2. You reinstalled NetBeans on a new disk

3. You recovered your NetBeans projects on a new disk

The problem is that the 'Recent Projects' list links to the wrong
location. I'm guessing that this is the case since either drive letters
have changed or directories have changed.

In addition, there may be a lot of issues with the cache.

The best solution is to:

1. Ignore the 'Recent Projects' list until you've opened 10 or more
projects

As Gj has pointed out, editing the projectui.properties file is not
something that should be done. I confess that I've done it, but it's not
trivial.

Just don't do it.

2. Before starting NetBeans, delete the cache directory.

In short, both will be rebuilt properly by NetBeans as you use the IDE.

As to your setting a target below 6 with JDK 11: - you can't. This is a
JDK limitation.

If you want to compile (and be proper) a J2EE 2.5 project, with source
and target set to 1.5 (in Maven parlance), then you have one option that
I can see.

a. Install JDK / JRE 8 along with JDK / JRE 11.

Re: Runnable JAR files

2020-02-20 Thread Amn Ojee Uw
Thanks! I'll do so.

On Thu, Feb 20, 2020, 9:32 AM Neil C Smith,  wrote:

>
>
> On Thu, 20 Feb 2020, 14:24 Amn Ojee Uw,  wrote:
>
>> How come the latest NB runs OpenJFX applications, but I cannot not run
>> the jar file it creates?
>> C:\java -jar myApp.jar
>>
>
> Welcome to the fun of OpenJFX! ;-) You probably want to read through the
> section on Runtime Images at https://openjfx.io/openjfx-docs/
>
> Best wishes,
>
> Neil
>
>>


Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
I don't really understand why you described a disk crash, recovery, and
then said that the default project folder wasn't to your liking / wasn't
easy to change.

Instead, how about the following:

I would like to change the default location of where File->New Project
creates projects. I didn't find an easy or effective way to do this. Is
there one?

Can we have a start-up switch (somewhat like Eclipse) that allows us to
chose a base project location? Or maybe a GUI in Tools->Options that
allows us to set it easily? I will be happy to discuss my use case on
the mailing list. Thanks.

Is the above an accurate description of your issue? If it is, that
sounds like a simple (and possibly reasonable) request.

Personally, I don't mind browsing around to a different location during
project creation. Since I store different clusters of projects in
different parent directories, browsing around to open projects is part
of my normal work flow. YMMV

. . . just my two cents.
/mde/

On 2/19/2020 9:22 PM, cryptearth wrote:
> TBH I didn'T read all of your reply, but from the first few lines I did
> read: no, you got me wrong.
> My question is as simple as that: Is it possible, and if so: How?, to
> change the default project folder where new projects supposed to get
> created on disk? I didn't found any setting in whatever the GUI gives me
> (as someone else on this list a few ago said: "Netbeans is basically a
> graphical wrapper around maven.") and I didn't found any config file.
> The one mentioned on many search results on the net doesn'T seem to have
> an effect either, and the other user replied to my question seem to
> didn't got my question at all and pointed me to a file wich has nothing
> to do with per-user settings at all.
> Yes, Netbeans has many flaws - and obvious a lot of them exists since
> 15(!) years (I found a bug report wich evolved into a discusion from
> back late 2004 about this very topic). Is it really that much to ask
> just for a simple input dialog right at the first time start up where
> the user wants his default project location to be? And is it that hard
> to at least somewhat follow the style many graphical programms followed
> for the past three decades where you have a menu bar, starting with
> File, then Edit, then maybe some more, and end with Extras and Help -
> and to just put an "options" or "settings" into one of those - and offer
> the same settings dialog as mentioned before? How old is Netbeans? 15+
> years? And it's menus are that - sorry to say it this directly:
> immature? It's like an early not feature complete alpha where someone
> couldn't decide just where to put it.
> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> more. It's a simple if() just to check for the version of the compiler -
> and if it's 11 or above set the minimum target compiling level to at
> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> devs could get this done in the time this exists.
> All made fun about me cause I'm using just a simple editor with some
> basic syntax highlight and a terminal to compile. If I see what a mess
> and overhead all this fancy IDEs and build-tools costs - wich in fact
> they're supposed to do for the dev - not in addition to it - what's the
> benefit of wasting time to figure out how to get around simplest fails
> done in every beginners for dummies book?
> 
> I'm done with it - back to the old style - that at least did what I told
> to do ..
> 
> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>> First of all, I'm just a happy NetBeans user.
>>
>> Second of all, this is just my opinion.
>>
>> So let me try to understand your problem first.
>>
>> 1. You crashed what appears to be a Windows data and programs disk
>>
>> This is different than where your user profile is stored. I understand
>> this, since I do the same thing to minimize usage of a small OS SSD
>> drive.
>>
>> 2. You reinstalled NetBeans on a new disk
>>
>> 3. You recovered your NetBeans projects on a new disk
>>
>> The problem is that the 'Recent Projects' list links to the wrong
>> location. I'm guessing that this is the case since either drive letters
>> have changed or directories have changed.
>>
>> In addition, there may be a lot of issues with the cache.
>>
>> The best solution is to:
>>
>> 1. Ignore the 'Recent Projects' list until you've opened 10 or more
>> projects
>>
>> As Gj has pointed out, editing the projectui.properties file is not
>> something that should be done. I confess that I've done it, but it's not
>> trivial.
>>
>> Just don't do it.
>>
>> 2. Before starting NetBeans, delete the cache directory.
>>
>> In short, both will be rebuilt properly by NetBeans as you use the IDE.
>>
>> As to your setting a target below 6 with JDK 11: - you can't. This is a
>> JDK limitation.
>>
>> If you want to compile (and be proper) a J2EE 2.5 project, with source
>> and target set to 1.5 (in Maven parlance), then you have one option that
>> I can see.
>>
>> a. 

Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
Maven does this as well, and there are configurations (as well as
command line options) to manage this.

I would not be happy with a tool that changed the pom.xml or it's
meaning. I like that I get a warning, and then I get to decide how to
address it.

For me, managing JDK versions by using Tools->Java Platforms works as
long as I'm in the IDE. For a more robust solution, Maven provides
documentation on how to manage multiple (and appropriate) JDK installations.

. . . just my two cents.
/mde/

On 2/20/2020 4:15 AM, Emilian Bold wrote:
>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> more. It's a simple if() just to check for the version of the compiler -
> and if it's 11 or above set the minimum target compiling level to at
> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> devs could get this done in the time this exists
> 
> You could open an issue about this too. Note that 1M devs does not imply
> 100s of volunteers working for free to fix every issue.
> 
> --emi
> 
> joi, 20 feb. 2020, 07:22 cryptearth  a scris:
> 
>> TBH I didn'T read all of your reply, but from the first few lines I did
>> read: no, you got me wrong.
>> My question is as simple as that: Is it possible, and if so: How?, to
>> change the default project folder where new projects supposed to get
>> created on disk? I didn't found any setting in whatever the GUI gives me
>> (as someone else on this list a few ago said: "Netbeans is basically a
>> graphical wrapper around maven.") and I didn't found any config file.
>> The one mentioned on many search results on the net doesn'T seem to have
>> an effect either, and the other user replied to my question seem to
>> didn't got my question at all and pointed me to a file wich has nothing
>> to do with per-user settings at all.
>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
>> 15(!) years (I found a bug report wich evolved into a discusion from
>> back late 2004 about this very topic). Is it really that much to ask
>> just for a simple input dialog right at the first time start up where
>> the user wants his default project location to be? And is it that hard
>> to at least somewhat follow the style many graphical programms followed
>> for the past three decades where you have a menu bar, starting with
>> File, then Edit, then maybe some more, and end with Extras and Help -
>> and to just put an "options" or "settings" into one of those - and offer
>> the same settings dialog as mentioned before? How old is Netbeans? 15+
>> years? And it's menus are that - sorry to say it this directly:
>> immature? It's like an early not feature complete alpha where someone
>> couldn't decide just where to put it.
>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
>> more. It's a simple if() just to check for the version of the compiler -
>> and if it's 11 or above set the minimum target compiling level to at
>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
>> devs could get this done in the time this exists.
>> All made fun about me cause I'm using just a simple editor with some
>> basic syntax highlight and a terminal to compile. If I see what a mess
>> and overhead all this fancy IDEs and build-tools costs - wich in fact
>> they're supposed to do for the dev - not in addition to it - what's the
>> benefit of wasting time to figure out how to get around simplest fails
>> done in every beginners for dummies book?
>>
>> I'm done with it - back to the old style - that at least did what I told
>> to do ..
>>
>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>>> First of all, I'm just a happy NetBeans user.
>>>
>>> Second of all, this is just my opinion.
>>>
>>> So let me try to understand your problem first.
>>>
>>> 1. You crashed what appears to be a Windows data and programs disk
>>>
>>> This is different than where your user profile is stored. I understand
>>> this, since I do the same thing to minimize usage of a small OS SSD
>> drive.
>>>
>>> 2. You reinstalled NetBeans on a new disk
>>>
>>> 3. You recovered your NetBeans projects on a new disk
>>>
>>> The problem is that the 'Recent Projects' list links to the wrong
>>> location. I'm guessing that this is the case since either drive letters
>>> have changed or directories have changed.
>>>
>>> In addition, there may be a lot of issues with the cache.
>>>
>>> The best solution is to:
>>>
>>> 1. Ignore the 'Recent Projects' list until you've opened 10 or more
>> projects
>>>
>>> As Gj has pointed out, editing the projectui.properties file is not
>>> something that should be done. I confess that I've done it, but it's not
>>> trivial.
>>>
>>> Just don't do it.
>>>
>>> 2. Before starting NetBeans, delete the cache directory.
>>>
>>> In short, both will be rebuilt properly by NetBeans as you use the IDE.
>>>
>>> As to your setting a target below 6 with JDK 11: - you can't. This is a
>>> JDK limitation.
>>>
>>> If you want to compile (and be 

Re: Runnable JAR files

2020-02-20 Thread Neil C Smith
On Thu, 20 Feb 2020, 14:24 Amn Ojee Uw,  wrote:

> How come the latest NB runs OpenJFX applications, but I cannot not run the
> jar file it creates?
> C:\java -jar myApp.jar
>

Welcome to the fun of OpenJFX! ;-) You probably want to read through the
section on Runtime Images at https://openjfx.io/openjfx-docs/

Best wishes,

Neil

>


Fwd: error because .nbi folder was not found

2020-02-20 Thread Elias Pereira
Hello,

I install Apache with --silent --userdir C:\NBI. When I try to uninstall
the Apache Netbeans remotely and silent, always happen the error with the
content:

The specified target component - nb-all/11.2.0.0.1019
> was not found in the registry. The installer
> can continue as if the target component was not specified.


Uninstall command:
C:\Program Files\NetBeans-11.2\uninstall.exe" --silent --userdir C:\NBI
-J-Dremove.netbeans.installdir=true -J-Dremove.netbeans.userdir=true

Have another way to uninstall without that flags? A way that force
uninstalls, maybe?

-- 
Elias Pereira


Runnable JAR files

2020-02-20 Thread Amn Ojee Uw
How come the latest NB runs OpenJFX applications, but I cannot not run the
jar file it creates?
C:\java -jar myApp.jar


Re: NB 11.2 change default project path

2020-02-20 Thread Emilian Bold
> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
more. It's a simple if() just to check for the version of the compiler -
and if it's 11 or above set the minimum target compiling level to at
least 6 and disable any lower versions. C'mon - don't tell me 100s of
devs could get this done in the time this exists

You could open an issue about this too. Note that 1M devs does not imply
100s of volunteers working for free to fix every issue.

--emi

joi, 20 feb. 2020, 07:22 cryptearth  a scris:

> TBH I didn'T read all of your reply, but from the first few lines I did
> read: no, you got me wrong.
> My question is as simple as that: Is it possible, and if so: How?, to
> change the default project folder where new projects supposed to get
> created on disk? I didn't found any setting in whatever the GUI gives me
> (as someone else on this list a few ago said: "Netbeans is basically a
> graphical wrapper around maven.") and I didn't found any config file.
> The one mentioned on many search results on the net doesn'T seem to have
> an effect either, and the other user replied to my question seem to
> didn't got my question at all and pointed me to a file wich has nothing
> to do with per-user settings at all.
> Yes, Netbeans has many flaws - and obvious a lot of them exists since
> 15(!) years (I found a bug report wich evolved into a discusion from
> back late 2004 about this very topic). Is it really that much to ask
> just for a simple input dialog right at the first time start up where
> the user wants his default project location to be? And is it that hard
> to at least somewhat follow the style many graphical programms followed
> for the past three decades where you have a menu bar, starting with
> File, then Edit, then maybe some more, and end with Extras and Help -
> and to just put an "options" or "settings" into one of those - and offer
> the same settings dialog as mentioned before? How old is Netbeans? 15+
> years? And it's menus are that - sorry to say it this directly:
> immature? It's like an early not feature complete alpha where someone
> couldn't decide just where to put it.
> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> more. It's a simple if() just to check for the version of the compiler -
> and if it's 11 or above set the minimum target compiling level to at
> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> devs could get this done in the time this exists.
> All made fun about me cause I'm using just a simple editor with some
> basic syntax highlight and a terminal to compile. If I see what a mess
> and overhead all this fancy IDEs and build-tools costs - wich in fact
> they're supposed to do for the dev - not in addition to it - what's the
> benefit of wasting time to figure out how to get around simplest fails
> done in every beginners for dummies book?
>
> I'm done with it - back to the old style - that at least did what I told
> to do ..
>
> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
> > First of all, I'm just a happy NetBeans user.
> >
> > Second of all, this is just my opinion.
> >
> > So let me try to understand your problem first.
> >
> > 1. You crashed what appears to be a Windows data and programs disk
> >
> > This is different than where your user profile is stored. I understand
> > this, since I do the same thing to minimize usage of a small OS SSD
> drive.
> >
> > 2. You reinstalled NetBeans on a new disk
> >
> > 3. You recovered your NetBeans projects on a new disk
> >
> > The problem is that the 'Recent Projects' list links to the wrong
> > location. I'm guessing that this is the case since either drive letters
> > have changed or directories have changed.
> >
> > In addition, there may be a lot of issues with the cache.
> >
> > The best solution is to:
> >
> > 1. Ignore the 'Recent Projects' list until you've opened 10 or more
> projects
> >
> > As Gj has pointed out, editing the projectui.properties file is not
> > something that should be done. I confess that I've done it, but it's not
> > trivial.
> >
> > Just don't do it.
> >
> > 2. Before starting NetBeans, delete the cache directory.
> >
> > In short, both will be rebuilt properly by NetBeans as you use the IDE.
> >
> > As to your setting a target below 6 with JDK 11: - you can't. This is a
> > JDK limitation.
> >
> > If you want to compile (and be proper) a J2EE 2.5 project, with source
> > and target set to 1.5 (in Maven parlance), then you have one option that
> > I can see.
> >
> > a. Install JDK / JRE 8 along with JDK / JRE 11.
> > b. In Tools->Java Platforms, register the JDK 8 platform
> > c. In the project Properties->Build->Compile panel, configure the
> > project to use  the registered JDK 8 Java Platform
> >
> > I do this all the time, as I'm trying to get a company I consult for to
> > move from J2EE 2.5 / Tomcat 7 to servlet spec 4 and Tomcat 9.
> >
> > I do this on Windows 10 Professional, with the last Oracle JRE / JDK 8
> > and 

Re: NB 11.2 change default project path

2020-02-20 Thread Neil C Smith
On Thu, 20 Feb 2020 at 07:27, Geertjan Wielenga  wrote:
> Sure, create an issue and this could be something we implement. I don’t think 
> anyone has asked for this before but it makes sense to me. In the Options 
> window, it should be possible to specify the location of the folder where 
> projects are created by default. I agree completely, just had never thought 
> about it before.

I'm not sure this requires any more UI to confuse users.  At one point
didn't NetBeans remember the last place you created a project?!  That
would probably be more intuitive.

I admire your patience on this one! ;-)  Attitudes like the OP's on
any open-source project I'm volunteering my time to generally get
thrown in the trash pile.

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