我一直在开发一个连接到 Firebird 数据库并监听事件的程序。我试图让它与嵌入式数据库一起使用。
EventManager em = new FBEventManager(GDSType.getType("EMBEDDED"));
em.setHost("localhost");
em.setDatabase("C:\\test.fdb");
em.connect();
Exception in thread "main" java.lang.RuntimeException: Failed to initialize Jaybird native library. This is most likely due to a failure to load the firebird client library.
at org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:106)
at org.firebirdsql.gds.impl.jni.EmbeddedGDSImpl.<init>(EmbeddedGDSImpl.java:31)
at org.firebirdsql.gds.impl.jni.EmbeddedGDSImpl.<init>(EmbeddedGDSImpl.java:21)
at org.firebirdsql.gds.impl.jni.EmbeddedGDSFactoryPlugin.getGDS(EmbeddedGDSFactoryPlugin.java:40)
at org.firebirdsql.gds.impl.GDSFactory.getGDSForType(GDSFactory.java:220)
at org.firebirdsql.event.FBEventManager.<init>(FBEventManager.java:91)
at eventhandler.FirebirdEventMaster.<init>(FirebirdEventMaster.java:42)
at eventhandler.FirebirdEventMaster.getInstance(FirebirdEventMaster.java:33)
at eventhandler.Driver.main(Driver.java:13)
经过多次谷歌搜索,我已经尝试过......
“虚拟机选项”: -Djava.library.path="C:\Users\jrile\Downloads\Jaybird-2.2.3JDK_1.6"
“FIREBIRD”和“PATH”系统变量: “C:\Users\jrile\Downloads\Firebird-2.5.2.26540-0_x64_embed”
使用 Windows 64 位和 Firebird Embedded 64 位。任何帮助将非常感激