Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to Create a jar file for a java application with database connection.

How can i link sql file to jar.
Please provide a solution.
Posted
Comments
Xiao Ling 2-Apr-15 2:33am    
Which database are you using? You don't need to create a jar file yourself. You can download the specific jdbc from corresponding db websites. For example, you can download sqlite-jdbc-3.7.2.jar to access SQLite.
neethujayan 2-Apr-15 6:01am    
using mysql as database.
i need to convert my java application as exe file.Please help me to create exe file.
Richard MacCutchan 2-Apr-15 3:48am    
How can i link sql file to jar.
Does not make sense. A jar file is a set of Java classes that you can run in order to process information storedin your database. There is no 'link' between the two except when making a connection from the Java app to the database server.
neethujayan 2-Apr-15 6:20am    
Sir,
Actually i need to convert my java application to exe file.
Richard MacCutchan 2-Apr-15 6:24am    
Java does not use exe files, it uses class or jar files.

1 solution

Just import all the files in any eclipse IDE... Eclipse will automatically provide connection with your database, and now you can convert your jar file to .exe file
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900