You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Patrik Karlström <pa...@trixon.se> on 2026/01/21 17:57:23 UTC

[platform] Sharing "platform" between two platform apps

Perhaps my most confusing subject so far... :)

I plan to distribute a platform app within another platform app and would like for them to share resources, primarily the "platform" dir in order to save space.

At first I tried with a symlink on linux at it worked just fine but I want it also to work on windows.

So then I tried editing nestedapp.clusters adding ../ before platform
It just resulted in
../platform*/lib/nbexec: No such file or directory

Then I found nbexec=`echo "$progdir"/../platform*/lib/nbexec` in the launcher script.
I guess I perhaps could patch that, but not the exe.

Is it possible to do what I want?

/Patrik

Re: [platform] Sharing "platform" between two platform apps

Posted by Patrik Karlström <pa...@trixon.se>.
Den onsdag 21 januari 2026 kl. 20:16, Neil C Smith <ne...@apache.org> skrev:

> On Wed, 21 Jan 2026 at 17:58, Patrik Karlström patrik@trixon.se wrote:
> 
> > Perhaps my most confusing subject so far... :)
> > 
> > I plan to distribute a platform app within another platform app and would like for them to share resources, primarily the "platform" dir in order to save space.
> > 
> > At first I tried with a symlink on linux at it worked just fine but I want it also to work on windows.
> > 
> > So then I tried editing nestedapp.clusters adding ../ before platform
> > It just resulted in
> > ../platform*/lib/nbexec: No such file or directory
> > 
> > Then I found nbexec=`echo "$progdir"/../platform*/lib/nbexec` in the launcher script.
> > I guess I perhaps could patch that, but not the exe.
> > 
> > Is it possible to do what I want?
> 
> 
> Can they be at the same level? Or do you need the other application
> to be in a separate subfolder?
> 
> I used to ship a platform application that had two parts, with
> separate launchers in bin, separate cluster and conf files in etc, and
> different cluster sets for each.
> 
> Best wishes,
> 
> Neil
> 

I just thought it would clash somehow being on the same level so I did not test that.

It works perfectly with your suggestion, thank you!

/Patrik

---------------------------------------------------------------------
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: [platform] Sharing "platform" between two platform apps

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 21 Jan 2026 at 17:58, Patrik Karlström <pa...@trixon.se> wrote:
>
> Perhaps my most confusing subject so far... :)
>
> I plan to distribute a platform app within another platform app and would like for them to share resources, primarily the "platform" dir in order to save space.
>
> At first I tried with a symlink on linux at it worked just fine but I want it also to work on windows.
>
> So then I tried editing nestedapp.clusters adding ../ before platform
> It just resulted in
> ../platform*/lib/nbexec: No such file or directory
>
> Then I found nbexec=`echo "$progdir"/../platform*/lib/nbexec` in the launcher script.
> I guess I perhaps could patch that, but not the exe.
>
> Is it possible to do what I want?

Can they be at the same level?  Or do you need the other application
to be in a separate subfolder?

I used to ship a platform application that had two parts, with
separate launchers in bin, separate cluster and conf files in etc, and
different cluster sets for each.

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