Netbeans 15 with MySQL Programming #0: Connect Apache Netbeans 15 to MySQL
Vložit
- čas přidán 7. 09. 2024
- #Netbeans #programming #MySQL #programmingtutorial
Please Like and Subscribe
Please help my Channel Grow. Thank you.
Patience is a virtue.
We need patience with this kind of work.
If you don't understand this, please watch my other video on how to connect NETBEANS to MYSQL
shrinklink.in/... - Connection Code
shrinklink.in/... - Login.Java
shrinklink.in/... - MySQL connector J 8.0.30
• Netbeans 15 with MySQL... - Video on how to Connect Apache Netbeans 15 to MySQL
• Netbeans 15 with MySQL... - Login Form
Please watch my videos on how to connect NETBEANS 15 to MYSQL and the Login Form
This video shows basic tutorial of programming on how to connect mysql to Netbeans 15
Netbeans 15
MySQL
Please Help my Channel grow. Please Subscribe. Thank you.🙂🙂🙂
You saved my project la.
Please subscribe. Thank you❤️
respect
I'm sorry for the broken links, I will fix the links.
help me please
cannot be generated because ejb lite classes are not available on project classpath
www.oracle.com/webfolder/technetwork/tutorials/obe/java/EJBLiteAndJPAInJavaSE/EJBLiteAndJPAInJavaSE.html try this one sir. Or pm me on my fb page
thanks you save my day.....
You are welcome. Thank you for your positive comment.
Please don't hesitate to ask for clarification,
. Thank you.
bro i follow all of your instructions....
but again it shows the following error....
--- exec-maven-plugin:3.0.0:exec (default-cli) @ Library_management_final ---
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null
com.mysql.cj.jdbc.Driver you need to download mysql connector - shrinklink.in/jQQebnNn - mysql-connector-java-8.0.30.jar
@@christo_nimal291 Please watch this - studio.czcams.com/users/video7L173JWJakg/edit
still watching
thanks
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable code - illegal start of expression
how can i sold this?
Please check your code under public static void main (String [] args){"dont declare methods here"). Please check also where did I put the Class Connection. Please check my Connection Class code on the link for your reference.
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
*
* @author MJ
*/
public class Mysqltonetbeans {
public static Connection connectmysqldb() {
try{
String username = "root";
String pass = "1234";
String sql = "jdbc:mysql://localhost:3306/connectdb";
Class.forName("com.mysql.cj.jdbc.Driver");
Connection conn = DriverManager.getConnection(sql,username,pass);
return conn;
}catch(HeadlessException | ClassNotFoundException | SQLException e){
JOptionPane.showMessageDialog(null, e);
}
return null;
}
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Connection Established")
}
}
Please check this code for your reference. Thanks
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
*
* @author MJ
*/
public class Mysqltonetbeans {
public static Connection connectmysqldb() {
try{
String username = "root";
String pass = "1234";
String sql = "jdbc:mysql://localhost:3306/connectdb";
Class.forName("com.mysql.cj.jdbc.Driver");
Connection conn = DriverManager.getConnection(sql,username,pass);
return conn;
}catch(HeadlessException | ClassNotFoundException | SQLException e){
JOptionPane.showMessageDialog(null, e);
}
return null;
}
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Connection Established")
}
}
need helppppp for my database project pleaseee
How may I help you Maam?