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
Define an Implementation-Version
in the manifest of the Jar at build time. It is common to use some form of the date as the version number. E.G. 14.07.28
The value can be retrieved in code using..
String version = this.getClass().getPackage().getImplementationVersion();
...
This comes from a build file for a project I have open at the moment. The relevant attribute is the last one in the manifest section.