Jump to content

Java connection to FileMaker refused


Tall

This topic is 3082 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello good people, I need help with this java programm gram doesn't want to connect to FileMaker Pro 14,, it gives out 3 errors as follow:

java.lang.ClassNotFoundException: com.ddtek.jdbc.sequelink.SequeLinkDriver
java.sql.SQLException: No suitable driver found for jdbc:sequelink://localhost:2399;serverDataSource=Onandjokwe ART;user=DSP10;password=DSP10
java.lang.NullPointerException

I have set my classpath correctly i think and now i am confused , 

 

anyone please help, I am using Windows 7

 

Here is my code

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package filemakerreader;

/**
 *
 * @author Tall
 */
import java.sql.*;
public class FileMakerReader
{
   
    public static void main(String[] args)
    {

        try {
      
            Driver d = (Driver)Class.forName("com.ddtek.jdbc.sequelink.SequeLinkDriver").newInstance();
            } catch(Exception e)
            {
            System.out.println(e);
            }
        
            Connection con = null;
            try 
            {

            DriverManager.getConnection("jdbc:filemaker://localhost:2399;serverDataSource=Onandjokwe ART;user=DSP10;password=DSP10");
               
            } catch(Exception e) 
            {
            System.out.println(e);
            }
            // get connection warnings
            SQLWarning warning = null;
            try
            {
            warning = con.getWarnings();
            if (warning == null)
            {
            System.out.println("No warnings");
            return;
            }
            while (warning != null) 
            {
            System.out.println("Warning: "+warning);
            warning = warning.getNextWarning();
            }
            } catch (Exception e)
            {
            System.out.println(e);
        }
    }
}
 

Link to comment
Share on other sites

This topic is 3082 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.