Answering my own question.
Just figured out a solution for it.
Neatbeans 7.4 are providing option of native packaging to package java project in .exe and .app format.
For that we have to just need to enable native packaging.
in Netbeans, right-click your project, go to 'Properties', then go to Build/Deployment and select 'Enable Native Packaging'.
Then you'll be able to right-click the project again, and choose 'Package as', and choose 'Image only', it will create an .app file in the project location.
select exe installer to create .exe file.
Asked in February 2016Viewed 3,055 timesVoted 9Answered 2 times