Good day able one, this my applications runs perfectly and insert data to database when i runs it as APPleme.java, but when i make executale and save it as Example.jar, when i runs it, open but on trying to insert values, it refuses to connect to database . can you tell me what is the problem
below is the code
so how do i make my executable files to connect my database via mysql connector
Without seeing the actual error (please post), I'm only guessing. I infer from your post that you got your application running in Eclipse. Check that you have all the necessary dependent jar files in your jar file or that your classpath points to those dependent jar files.
Without seeing a stack trace it's pretty hard to guess, but quite likely your executable jar's manifest doesn't specify the relative path to the JDBC driver's jar. Either that, or you didn't put the JDBC driver's jar in the directory where the manifest says it should go.
THey wasn't any error. the code is perfect when i saved it as Appleme.java and runs it from apache. but when i make it executable as regards to Examples.jar, its no longer seeing or connecting to mysql database. here is my manifest and how do i link mysql connector.jar to the manifest