2.WAMP(Windows Apache MySql PHP) installed.
Few Steps to Connect your Java Program with your MySql Backend.
Check that your Computer has Java Installed.
Download the MySql Connection for Java.
Put the downloaded JAR(Java Archive File) in to the location where JavaHome/jdkversion/jre/lib/ext ..
Inside to the ext Directory.
Write Java Code to Connect to the MySql Database.
Sample code to connect Java with MySql.
public static void main(String ar)
ResultSet rs=st.executeQuery(“select * from tablenamehere”);
Compile your Java using javac filename.java.
On the Successful Completion of Java File you will see that the Class file has been created.
Run your Java File using java filename.
You will get Data from the MySql Database.
Feel free to share your comments and your Queries.