thank you so much for your reply
Rob Spoor wrote:Run the JAR file from the command line using java -jar, that way you'll get to see the actual exception / error.
ya i tried it says following error:
Exception in
thread main java.lang.NullPointerException
at sun.launcher.LauncherHelper.getMainClassFromJar<Unkown Source>
at sun.launcher.LauncherHelper.checkAndLoadMain<Unkown Source>
i have added main class in txt file before making jar file and there were no error in program
when i make jar file using JOptionPane it runs ok but when i use my code it gives error
thank you