0

Java mysql connection tutorial for beginners

With java you can easily connect java applications to a database in which you can store retrieve and manipulate data easily. Well to do this you must know the fundamentals of java programming as well as SQL as you might need to perform complex operations like retrieving data simultaneously and joining multiple tables at a single time.Today we’ll have a look at Java mysql connection tutorial for beginners -

Following are the pre-coding steps you need to do :-
1:download the database driver jar file for mysql.
2:-Add the downloaded jar file to your main applications classpath. This is generally required to prevent CLASS NOT FOUND EXCEPTION thrown when you try to execute the Below line Class.forName(“com.mysql.jdbc.Driver”); -> This line would load the Database Driver jar class files if file is not found an Exception would be thrown.
3:once you’ve done with the above two steps. . Its time for us to write a code that will connect to the project_db Database.

0

Convert jar to exe using Launch4J (Tutorial)

Although wrapping a jar in an exe file file doesn’t make any sense as it can be extracted easily using tools like WinRAR, you can still avail the benefits of it if you want to deploy your application at a no-programmer client side. Here are the steps in which you can convert jar to exe using Launch4J for a project. Before proceeding further, download this software through this link and install it on your computer/ laptop. Once this app has been completely installed, follow these below steps.
Note: Before you go ahead, make sure that you’ve successfully completed your project and the the application runs fine without displaying any errors) Continue Reading