You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ulf Zibis <Ul...@CoSoCo.de> on 2024/03/01 13:43:08 UTC
Re: Missing nb-javac plugin in NetBeans IDE 21
Am 29.02.24 um 22:12 schrieb Geertjan Wielenga:
> The Apache NetBeans 21 binary releases require JDK 11+, and officially supports running on JDK 11, 17 and 21.
Thanks for the info.
In the meantime I solved the problem still using JDK 18 as follows.
- deleted user config data and reinstalled NetBeans
- started NB under root
- configured plugins to shared directory
- activated Java SE module, which also installed the profiler
- started NB as user
- again activated Java SE module
- Restart. All is fine !!!
Don't know, if that is a good workaround.
-Ulf
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Am 01.03.24 um 15:24 schrieb Michael Bien:
> NetBeans ships with nb-javac preinstalled as regular module, if you don't change anything it should just work. Start NB, open/create a project and the right modules will activate.
You want to say, that I do not have to activate "Java SE" plugin manually, before opening or creating a java project?
It will be activated automatically?
The message about nb-javac was after I tried to create a java project from existing sources, which didn't work, the dialogue didn't finish, so I had to cancel it. This is maybe of interest.
From a fresh install with all configs, cache and user dir deleteted, I get following messages:
$ /usr/bin/netbeans
WARNING: package com.apple.eio not in java.desktop
WARNING: package jdk.internal.opt not in jdk.internal.opt
WARNING: package com.sun.java.swing.plaf.windows not in java.desktop
WARNING: package com.apple.laf not in java.desktop
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.netbeans.TopSecurityManager (file:/usr/lib/apache-netbeans/platform/lib/boot.jar)
WARNING: Please consider reporting this to the maintainers of org.netbeans.TopSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
Should I worry about that?
-Ulf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Michael Bien <mb...@gmail.com>.
On 01.03.24 17:42, Ulf Zibis wrote:
>
> Am 01.03.24 um 15:24 schrieb Michael Bien:
>
>> - The "force plugin install into shared directories" is not a good
>> idea
> Why is it provided?
For historic reasons and to solve some edge cases. I vaguely remember
using this option for a native lib wrapper module in early days, since
the JVM can load the same native lib only once without causing trouble.
So by adding the module to the platform/IDE made sure that it was in
front of the class path and it wasn't loaded twice. But today you would
use other tricks to achieve something similar.
But its not there to encourage running NB with root rights.
> I prefer to install binaries under binaries locations, which is
> /usr/lib here. /home is for data and configs. Helps to minimize backup
> footprint an allows all users to profit from the installed binaries.
>> (esp with root rights)
> Under which conditions it is possible to install in shared directories
> without root rights?
e.g by launching nb from the platform independent zip.
but as mentioned before: nb-javac is part of NetBeans - it does not need
to be installed since it is already there. A fresh NetBeans distribution
with new user config not finding it would indicate some other issue, e.g
corrupted installation or some problems with access rights etc - I don't
know.
-mbien
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Am 01.03.24 um 15:24 schrieb Michael Bien:
>
> there are several red flags here which might cause you problems in future:
>
> - Don't start NB with root rights. Subsequent starts will likely not be able to write to cache/log folders.
I used `sudo -H` to avoid this.
> - The "force plugin install into shared directories" is not a good idea
Why is it provided? I prefer to install binaries under binaries locations, which is /usr/lib here. /home is for data and configs. Helps to minimize backup footprint an allows all users to profit from the installed binaries.
> (esp with root rights)
Under which conditions it is possible to install in shared directories without root rights?
> and is likely the original cause why nb-javac couldn't be found if you done that in past
It was first time I installed NB 21.
> NetBeans ships with nb-javac preinstalled as regular module, if you don't change anything it should just work. Start NB, open/create a project and the right modules will activate.
Unfortunately this didn't happen at me.
-Ulf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Michael Bien <mb...@gmail.com>.
On 01.03.24 14:43, Ulf Zibis wrote:
> Am 29.02.24 um 22:12 schrieb Geertjan Wielenga:
>> The Apache NetBeans 21 binary releases require JDK 11+, and
>> officially supports running on JDK 11, 17 and 21.
>
> Thanks for the info.
>
> In the meantime I solved the problem still using JDK 18 as follows.
>
> - deleted user config data and reinstalled NetBeans
> - started NB under root
> - configured plugins to shared directory
> - activated Java SE module, which also installed the profiler
> - started NB as user
> - again activated Java SE module
> - Restart. All is fine !!!
>
> Don't know, if that is a good workaround.
>
> -Ulf
there are several red flags here which might cause you problems in future:
- Don't start NB with root rights. Subsequent starts will likely not
be able to write to cache/log folders.
- The "force plugin install into shared directories" is not a good
idea (esp with root rights) and is likely the original cause why
nb-javac couldn't be found if you done that in past
- Run NB on supported JDKs, there are usually 2-3 LTS versions
supported for every NB release to make this easier. There are also
community bundles available from the download page which contain a JDK.
If you don't want to use those, this page might help to find the right
JDKs download: https://javaalmanac.io/jdk/21/
NetBeans ships with nb-javac preinstalled as regular module, if you
don't change anything it should just work. Start NB, open/create a
project and the right modules will activate.
btw to reset NB completely, all you have to do is to follow the note on
the readme:
https://github.com/apache/netbeans?tab=readme-ov-file#log-config-and-cache-locations
-mbien
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Arbol One <Ar...@hotmail.ca>.
Yes!
Thank you, it is working perfectly now.
On 2024-03-01 9:25 a.m., Neil C Smith wrote:
> On Fri, 1 Mar 2024 at 13:43, Ulf Zibis<Ul...@cosoco.de> wrote:
>> In the meantime I solved the problem still using JDK 18 as follows.
>>
>> - deleted user config data and reinstalled NetBeans
> ...
>> - Restart. All is fine !!!
>>
>> Don't know, if that is a good workaround.
> The above two steps might have been what fixed it. Have you been
> using NetBeans for a while and copying forward configuration and
> plugins?
>
> nb-javac is included in NetBeans since NB13, so you should not see
> this dialog unless you've deliberately disabled this support and run
> on an older JDK. If you see it again, please report an issue.
>
> Also, include the package you're using - there are multiple options on
> Ubuntu, which might have an effect on what's happening.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail:users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
--
*/ArbolOne.ca/* Using Fire Fox and Thunderbird. ArbolOne is composed of
students and volunteers dedicated to providing free services to
charitable organizations. ArbolOne on Java Development is in progress [ í ]
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Neil C Smith <ne...@apache.org>.
On Fri, 1 Mar 2024 at 14:51, Neil C Smith <ne...@apache.org> wrote:
>
> On Fri, 1 Mar 2024 at 14:44, Ulf Zibis <Ul...@cosoco.de> wrote:
> > nb-javac is included in NetBeans since NB13, so you should not see
> > this dialog unless you've deliberately disabled this support and run
> > on an older JDK.
> >
> > This I assumed too, so I'm wondering about my ecperience.
>
> So am I! If you can find steps that reproduce what you saw it would
> be good to know. I just tried with a local JDK 18 and all seems fine.
Just to follow up, I reproduced this while debugging GH7091 on JDK 17.
https://github.com/apache/netbeans/issues/7091
Hopefully this will also be fixed by a fix for that in NB22.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Am 01.03.24 um 15:51 schrieb Neil C Smith:
> You can replicate running with a clean userdir by running
>
> netbeans --userdir /tmp/testuserdir1
Thanks for the hint.
> Sorry, should have been clearer - I meant NetBeans packaging. Between
> ASF and community options there's zip, deb (x2), appimage and snap you
> could be using on Ubuntu.
I used:
sudo apt install ./apache-netbeans_21-1_all.deb
-Ulf
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Neil C Smith <ne...@apache.org>.
On Fri, 1 Mar 2024 at 14:44, Ulf Zibis <Ul...@cosoco.de> wrote:
> nb-javac is included in NetBeans since NB13, so you should not see
> this dialog unless you've deliberately disabled this support and run
> on an older JDK.
>
> This I assumed too, so I'm wondering about my ecperience.
So am I! If you can find steps that reproduce what you saw it would
be good to know. I just tried with a local JDK 18 and all seems fine.
You can replicate running with a clean userdir by running
netbeans --userdir /tmp/testuserdir1
> Also, include the package you're using - there are multiple options on
> Ubuntu, which might have an effect on what's happening.
>
> I used package openjdk-18-jdk
Sorry, should have been clearer - I meant NetBeans packaging. Between
ASF and community options there's zip, deb (x2), appimage and snap you
could be using on Ubuntu.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Ulf Zibis <Ul...@CoSoCo.de>.
Am 01.03.24 um 15:25 schrieb Neil C Smith:
> The above two steps might have been what fixed it. Have you been
> using NetBeans for a while and copying forward configuration and
> plugins?
No, I didn't import old configuration and I deleted ~/.cache/netbeans and ~/.netbeans/21
> nb-javac is included in NetBeans since NB13, so you should not see
> this dialog unless you've deliberately disabled this support and run
> on an older JDK.
This I assumed too, so I'm wondering about my ecperience.
> Also, include the package you're using - there are multiple options on
> Ubuntu, which might have an effect on what's happening.
I used package openjdk-18-jdk
-Ulf
Re: Missing nb-javac plugin in NetBeans IDE 21
Posted by Neil C Smith <ne...@apache.org>.
On Fri, 1 Mar 2024 at 13:43, Ulf Zibis <Ul...@cosoco.de> wrote:
> In the meantime I solved the problem still using JDK 18 as follows.
>
> - deleted user config data and reinstalled NetBeans
...
> - Restart. All is fine !!!
>
> Don't know, if that is a good workaround.
The above two steps might have been what fixed it. Have you been
using NetBeans for a while and copying forward configuration and
plugins?
nb-javac is included in NetBeans since NB13, so you should not see
this dialog unless you've deliberately disabled this support and run
on an older JDK. If you see it again, please report an issue.
Also, include the package you're using - there are multiple options on
Ubuntu, which might have an effect on what's happening.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists