First i want to convey is, my Question is Not duplicate to this Question, How can I convert my Java program to an .exe file?.
Since My question, I had wrote a Swing program, in that program, there is a Button called "Generate EXE" , when the Button is clicked i have to generate the EXE of that program, so i need to create EXE via Java Code, i had created EXE using Advance Installer IDE http://www.advancedinstaller.com/user-guide/tutorial-java.html, But now my requirement is i have to generate EXE via Java code not using IDE by manually, my java code has create the EXE.
Thanks