Is there any way that i can give a version number to my application in netbeans.And then access that version number inside my code.
Something similar to the Assembly num
In my JavaFX app created in Netbeans, I can set the build version (Implementation version) in the Project Properties window shown here:
This number is then used everywhere, for example it is automatically inserted into the filename of the installer. It is also the number retrieved by this.getClass().getPackage().getImplementationVersion();
mentioned by the accepted answer.