Hye i dont seem to be able to connect the database for my project and i cant figure out why . i already create the database in the Mysql workbench and i still cannot run the jdbc.java
package database;
import java.awt.Component;
import java.awt.List;
import java.io.File;
import java.math.BigInteger;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.SocketImpl;
import java.sql.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
import common_interface.Honeyword;
public class JDBC {
public static void ConnectDatabase()
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle://localhost:3306/Honeyword","root","qwertyuiop4595");
System.out.println("Connected to Database..");
}
catch (Exception e)
{
System.out.println(e);
}
}
static Connection con;