Re: Getting the version of NetBeans from the files

Neil C Smith <[email protected]>
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <CAMYaZEstBEjUv1CschgSk3=D9amg-82dx4+Kw+judM1rrOkXaA@mail.gmail.com>
Hi,

On Wed, 12 Aug 2026 at 13:29, Peter Hull <[email protected]> wrote:
> Given an unpacked binary distribution of NB, is it possible to find
> out what version it is without running it? e.g is there a file that
> contains the version number?

It's funny you should ask that as I've been thinking about similar
recently.  What's your use case?  At some point, NBPackage should be
updated to understand recent launcher changes.  That will probably
require adding something to recognise the underlying platform version.
It will have to work with platform applications too, although I'm not
sure there's really an easier answer just for the IDE.  Certainly the
VERSION files we have in various places are not useful for this.

One option I can think of is to parse the manifest of one of the
modules.  The implementation version of most modules is
VERSION-GITHASH.  Using platform/lib/boot.jar might be the best one to
use to cover all cases?  Anything easier?!

For the IDE alone, the version is written into the userdir locations
in etc/netbeans.conf

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.