You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Matthias Bläsing <ma...@apache.org> on 2026/06/20 21:24:53 UTC
[DISCUSS] Drop Netbinox in Favor of Apache Felix
Greetings,
my understanding of the OSGI integration of NetBeans is, that both
Apache Felix and a patched version of Eclipse Equinox (Netbinox) can be
currently used.
By default Netbinox is used. The reason as I understood is that some of
the bundled eclipse modules relied on special behavior of Equinox.
While Netbinox works I think it has become a problem as it is not
maintained. We use a patched version of Equinox:
https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/netbinox/external/M20140115-0800.patch
and that patch applies to equinox as of 12 years ago. (the name of the
patch file refers to this tag):
https://github.com/eclipse-equinox/equinox.framework/releases/tag/M20140115-0800
The patch does not apply to newer versions of Equinox.
The latest change to the equinox patch added a hack to be able to load
recent versions of the bouncy castle OSGI bundles. For bouncy castle
that works as the package imports are marked optional, for other
dependencies we patch the JARs to be able to load them:
https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/o.apache.commons.lang3/build.xml#L29-L37
I was reminded of this when I tried to integrate new OSGI bundles to
support ssh signing with jgit. This fails on equinox as these import
JDK packages, which does not work on equinox. I don't think that
further patching is sustainable solution.
So I tested and did this:
- Remove NetBinox hard dependency from common code
(https://github.com/apache/netbeans/pull/9426)
- add the required jgit jars
- remove NetBinox
- remove the unused packages:
- o.eclipse.core.contenttype
- o.eclipse.core.jobs
- o.eclipse.core.net
- o.eclipse.core.runtime
- o.eclipse.core.runtime.compatibility.auth
- o.eclipse.equinox.app
- o.eclipse.equinox.common
- o.eclipse.equinox.preferences
- o.eclipse.equinox.registry
- o.eclipse.equinox.security
The hypothesis here is, that the eclipse packages were "only" there to
support Mylin (Bugtracking integration). As that was removed the
packages seem to unused and should be removed.
So before I create a PR from this:
Is there a reason to keep two OSGI runtimes?
Greetings
Matthias
PS: Sending from my apache address as the mailinglist has still broken
dmarc settings
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix (PR available)
Posted by Matthias Bläsing <ma...@apache.org>.
Hi,
I now have a PR available that implements the suggested change:
https://github.com/apache/netbeans/pull/9483
The changes introduced by that PR are:
* The first commit in the series removes NetBinox and the
org.eclipse.core* and org.eclipse.equinox.* modules
* The second adds an option to the build system that allows to declare
that the specification version must not be automatically updated
(required for the next commit)
* The third commit introduces alias modules that reexport
the packages from org.netbeans.libs.jna under the module name
com.sun.jna and org.netbeans.libs.jna.platform under the module name
com.sun.jna.platform. The intention is here that an OSGI package
having a Require-Bundle clause on the original JNA libraries will
find our module. To make this work the specification version of the
module is synced with the wrapped JNA library so that versioned
requires also work. Automatic updates to specification version (as
done on release) are blocked for these two modules.
* The fourth commits add the APache Mina SSHD packages and the JGIT
transport integration for Mina. The JSch Transport is removed.
* The fifth removes the manifest manipulation from commons-lang3
I'd appretiate a look.
Greetings
Matthias
Am Samstag, dem 20.06.2026 um 23:24 +0200 schrieb Matthias Bläsing:
> Greetings,
>
> my understanding of the OSGI integration of NetBeans is, that both
> Apache Felix and a patched version of Eclipse Equinox (Netbinox) can be
> currently used.
>
> By default Netbinox is used. The reason as I understood is that some of
> the bundled eclipse modules relied on special behavior of Equinox.
>
> While Netbinox works I think it has become a problem as it is not
> maintained. We use a patched version of Equinox:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/netbinox/external/M20140115-0800.patch
>
> and that patch applies to equinox as of 12 years ago. (the name of the
> patch file refers to this tag):
>
> https://github.com/eclipse-equinox/equinox.framework/releases/tag/M20140115-0800
>
> The patch does not apply to newer versions of Equinox.
>
>
> The latest change to the equinox patch added a hack to be able to load
> recent versions of the bouncy castle OSGI bundles. For bouncy castle
> that works as the package imports are marked optional, for other
> dependencies we patch the JARs to be able to load them:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/o.apache.commons.lang3/build.xml#L29-L37
>
> I was reminded of this when I tried to integrate new OSGI bundles to
> support ssh signing with jgit. This fails on equinox as these import
> JDK packages, which does not work on equinox. I don't think that
> further patching is sustainable solution.
>
> So I tested and did this:
>
> - Remove NetBinox hard dependency from common code
> (https://github.com/apache/netbeans/pull/9426)
> - add the required jgit jars
> - remove NetBinox
> - remove the unused packages:
> - o.eclipse.core.contenttype
> - o.eclipse.core.jobs
> - o.eclipse.core.net
> - o.eclipse.core.runtime
> - o.eclipse.core.runtime.compatibility.auth
> - o.eclipse.equinox.app
> - o.eclipse.equinox.common
> - o.eclipse.equinox.preferences
> - o.eclipse.equinox.registry
> - o.eclipse.equinox.security
>
> The hypothesis here is, that the eclipse packages were "only" there to
> support Mylin (Bugtracking integration). As that was removed the
> packages seem to unused and should be removed.
>
>
> So before I create a PR from this:
>
> Is there a reason to keep two OSGI runtimes?
>
> Greetings
>
> Matthias
>
>
>
> PS: Sending from my apache address as the mailinglist has still broken
> dmarc settings
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix
Posted by Jaroslav Tulach <ja...@gmail.com>.
Historical links:
- https://wiki.apidesign.org/wiki/Netbinox
- used by JDeveloper: https://wiki.apidesign.org/wiki/JDeveloper
Felix was the first OSGi integration I made. However then it turned out
JDeveloper was using Equinox. Hence we started to support Equinox as well and
achieved the biggest speeds ups with Equinox+NetBeans caching infrastructure.
I hadn't had a reason to try to make Felix as fast as Netbinox.
-jt
Dne sobota 20. června 2026 23:24:53, středoevropský letní čas, Matthias
Bläsing napsal(a):
> Greetings,
>
> my understanding of the OSGI integration of NetBeans is, that both
> Apache Felix and a patched version of Eclipse Equinox (Netbinox) can be
> currently used.
>
> By default Netbinox is used. The reason as I understood is that some of
> the bundled eclipse modules relied on special behavior of Equinox.
>
> While Netbinox works I think it has become a problem as it is not
> maintained. We use a patched version of Equinox:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e92348
> 03d6/platform/netbinox/external/M20140115-0800.patch
>
> and that patch applies to equinox as of 12 years ago. (the name of the
> patch file refers to this tag):
>
> https://github.com/eclipse-equinox/equinox.framework/releases/tag/M20140115-> 0800
>
> The patch does not apply to newer versions of Equinox.
>
>
> The latest change to the equinox patch added a hack to be able to load
> recent versions of the bouncy castle OSGI bundles. For bouncy castle
> that works as the package imports are marked optional, for other
> dependencies we patch the JARs to be able to load them:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e92348
> 03d6/platform/o.apache.commons.lang3/build.xml#L29-L37
>
> I was reminded of this when I tried to integrate new OSGI bundles to
> support ssh signing with jgit. This fails on equinox as these import
> JDK packages, which does not work on equinox. I don't think that
> further patching is sustainable solution.
>
> So I tested and did this:
>
> - Remove NetBinox hard dependency from common code
> (https://github.com/apache/netbeans/pull/9426)
> - add the required jgit jars
> - remove NetBinox
> - remove the unused packages:
> - o.eclipse.core.contenttype
> - o.eclipse.core.jobs
> - o.eclipse.core.net
> - o.eclipse.core.runtime
> - o.eclipse.core.runtime.compatibility.auth
> - o.eclipse.equinox.app
> - o.eclipse.equinox.common
> - o.eclipse.equinox.preferences
> - o.eclipse.equinox.registry
> - o.eclipse.equinox.security
>
> The hypothesis here is, that the eclipse packages were "only" there to
> support Mylin (Bugtracking integration). As that was removed the
> packages seem to unused and should be removed.
>
>
> So before I create a PR from this:
>
> Is there a reason to keep two OSGI runtimes?
>
> Greetings
>
> Matthias
>
>
>
> PS: Sending from my apache address as the mailinglist has still broken
> dmarc settings
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix
Posted by Michael Bien <mb...@gmail.com>.
On 6/22/26 19:59, Michael Bien wrote:
> On 6/22/26 19:36, Neil C Smith wrote:
>> On Sun, 21 Jun 2026 at 06:21, Laszlo Kishalmi <la...@gmail.com> wrote:
>>> Honestly, if it would be possible, i would like to see both OSGI runtime
>>> out.
>> I'm not sure that would be feasible. Even if we removed all use from
>> the IDE, there's the potential for platform users to be relying on it.
>> On the other hand, hopefully if we broke the platform it would only
>> affect those big companies who aren't contributing to maintenance and
>> act as a useful kick up the ... ;-)
>>
>>> So as of now, I'm supporting the idea of dropping Netbinox.
>> +1 Similar to my feeling on CoS, the profiler, and a few other
>> things, aspects of the IDE that are not being adequately maintained
>> and are causing knock-on maintenance issues should be allowed to
>> quietly rest in peace.
> +1 I do also support the effort to remove Netbinox and switch to a maintained implementation (e.g the already existing felix impl)
>
>
>
> However: I remember quickly testing Felix after Laszlo removed the equinox tree:
sorry I mean Mylyn tree, not equinox.
-mbien
>
> https://github.com/apache/netbeans/pull/9020#issuecomment-3545330910
>
> Ergonomics didn't work and startup was slower, however as you can see it was just a hack and it might therefore not indicate much.
>
> There is also some hope that the startup performance regression would be only visible on very first launch, since cached launches avoid many code paths.
>
> (we are currently at about 2.5s "on my system" #9308)
>
>
> but its still a +1 since long term maintainability > startup time
>
> best regards,
>
> michael
>
>
>> Best wishes,
>>
>> Neil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix
Posted by Michael Bien <mb...@gmail.com>.
On 6/22/26 19:36, Neil C Smith wrote:
> On Sun, 21 Jun 2026 at 06:21, Laszlo Kishalmi <la...@gmail.com> wrote:
>> Honestly, if it would be possible, i would like to see both OSGI runtime
>> out.
> I'm not sure that would be feasible. Even if we removed all use from
> the IDE, there's the potential for platform users to be relying on it.
> On the other hand, hopefully if we broke the platform it would only
> affect those big companies who aren't contributing to maintenance and
> act as a useful kick up the ... ;-)
>
>> So as of now, I'm supporting the idea of dropping Netbinox.
> +1 Similar to my feeling on CoS, the profiler, and a few other
> things, aspects of the IDE that are not being adequately maintained
> and are causing knock-on maintenance issues should be allowed to
> quietly rest in peace.
+1 I do also support the effort to remove Netbinox and switch to a maintained implementation (e.g the already existing felix impl)
However: I remember quickly testing Felix after Laszlo removed the equinox tree:
https://github.com/apache/netbeans/pull/9020#issuecomment-3545330910
Ergonomics didn't work and startup was slower, however as you can see it was just a hack and it might therefore not indicate much.
There is also some hope that the startup performance regression would be only visible on very first launch, since cached launches avoid many code paths.
(we are currently at about 2.5s "on my system" #9308)
but its still a +1 since long term maintainability > startup time
best regards,
michael
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix
Posted by Neil C Smith <ne...@apache.org>.
On Sun, 21 Jun 2026 at 06:21, Laszlo Kishalmi <la...@gmail.com> wrote:
> Honestly, if it would be possible, i would like to see both OSGI runtime
> out.
I'm not sure that would be feasible. Even if we removed all use from
the IDE, there's the potential for platform users to be relying on it.
On the other hand, hopefully if we broke the platform it would only
affect those big companies who aren't contributing to maintenance and
act as a useful kick up the ... ;-)
> So as of now, I'm supporting the idea of dropping Netbinox.
+1 Similar to my feeling on CoS, the profiler, and a few other
things, aspects of the IDE that are not being adequately maintained
and are causing knock-on maintenance issues should be allowed to
quietly rest in peace.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [DISCUSS] Drop Netbinox in Favor of Apache Felix
Posted by Laszlo Kishalmi <la...@gmail.com>.
On 6/20/26 14:24, Matthias Bläsing wrote:
> Greetings,
>
> my understanding of the OSGI integration of NetBeans is, that both
> Apache Felix and a patched version of Eclipse Equinox (Netbinox) can be
> currently used.
>
> By default Netbinox is used. The reason as I understood is that some of
> the bundled eclipse modules relied on special behavior of Equinox.
>
> While Netbinox works I think it has become a problem as it is not
> maintained. We use a patched version of Equinox:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/netbinox/external/M20140115-0800.patch
>
> and that patch applies to equinox as of 12 years ago. (the name of the
> patch file refers to this tag):
>
> https://github.com/eclipse-equinox/equinox.framework/releases/tag/M20140115-0800
>
> The patch does not apply to newer versions of Equinox.
>
>
> The latest change to the equinox patch added a hack to be able to load
> recent versions of the bouncy castle OSGI bundles. For bouncy castle
> that works as the package imports are marked optional, for other
> dependencies we patch the JARs to be able to load them:
>
> https://github.com/apache/netbeans/blob/f88a2a3dab55dc731996f4f9625065e9234803d6/platform/o.apache.commons.lang3/build.xml#L29-L37
>
> I was reminded of this when I tried to integrate new OSGI bundles to
> support ssh signing with jgit. This fails on equinox as these import
> JDK packages, which does not work on equinox. I don't think that
> further patching is sustainable solution.
>
> So I tested and did this:
>
> - Remove NetBinox hard dependency from common code
> (https://github.com/apache/netbeans/pull/9426)
> - add the required jgit jars
> - remove NetBinox
> - remove the unused packages:
> - o.eclipse.core.contenttype
> - o.eclipse.core.jobs
> - o.eclipse.core.net
> - o.eclipse.core.runtime
> - o.eclipse.core.runtime.compatibility.auth
> - o.eclipse.equinox.app
> - o.eclipse.equinox.common
> - o.eclipse.equinox.preferences
> - o.eclipse.equinox.registry
> - o.eclipse.equinox.security
>
> The hypothesis here is, that the eclipse packages were "only" there to
> support Mylin (Bugtracking integration). As that was removed the
> packages seem to unused and should be removed.
>
>
> So before I create a PR from this:
>
> Is there a reason to keep two OSGI runtimes?
>
> Greetings
>
> Matthias
Well, as someone who tried to do some standalone testing done on
Netbinox modules, and found that frustrating experience. I'd really see
that gone.
Honestly, if it would be possible, i would like to see both OSGI runtime
out. It was a great technical breakthrough of the time.
I'm not sure if we actually use anything out of that now, besides that
we have a few libraries where we use the OSGI metadata instead of
project.xml to put them into the module system. So if we would provide
the external metadata, there would be no need to have any OSGI runtime
at all.
So as of now, I'm supporting the idea of dropping Netbinox.
>
>
> PS: Sending from my apache address as the mailinglist has still broken
> dmarc settings
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists