Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JDBC- class.forName not working

Featured Replies

  • Newbies

Hi there! I'm trying to connect to our filemaker database using jdbc. i've written a small piece of java code to connect, however i can't get the class.forName to work. i have the file fmpjdbc.jar . where do i put this and how do i use it?

Suppose your program is called Main.java that have the class.forName in it. You can do the following:

javac Main.java

(or javac -classpath fmpjdbc12.jar; Main.java)

to run it (important that you have the classpath part when you run it):

java -classpath fmpjdbc12.jar; Main

I'm assuming here that you have the jar file in the same directory as the Main.java file.

However, I think you should throw the fmpjdbc12.jar file into your "lib" directory inside the jdk directory. From there set your CLASSPATH environment variable to include the path to the jar file and then you don't have to keep writing it out like I did above.

Also, I had trouble using the newest version of JDK to run a program using the JDBC driver for FMP. I think it was intended to be used with JDK 1.1.8. So, if you have problems in the future keep this in mind.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.