I developed a java application using swings and servlets(IDE used:Netbeans).I want to convert the java application to a jar file.I have gone through some questions in stackoverflow.I am bit confused between converting java program to jar and .exe,Is there any difference between jar and .exe??
Finally I want some guidelines to convert java application to jar in NETBEABNS.
I have created a jar file for the program–>It fetches data from database and displays to console..When I run the jar file I am getting class notfoundexception:com.mysql.jdbc.Driver..I think jar could not get the driver path..What is the solution??
Like DmitryB said, if you are using
servlets, you need to generate a war file. To generate war file in Netbeans, right click on the project node, select clean and build. This will generate a war file in the<project_directory>/dist/directory.