Subject | Re: Embedded FB on Windows - using Java - help appreciated. |
---|---|
Author | plinehan |
Post date | 2009-01-16T20:03:30Z |
In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
This worked a treat in getting rid of that error.
Now I have a new problem.
con = DriverManager.getConnection
("jdbc:firebirdsql:embedded/3050:
D:\\Test1\\EMPLOYEE.FDB",
"SYSDBA",
"masterkey");
produces this error - any ideas anyone?
java.lang.RuntimeException: Failed to initilize Jaybird native
library. This is most likley due to a failure to load the firebird
client library.
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:100)
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:219)
at
org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(FBManagedConnectionFactory.java:117)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:125)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at TestDB.main(TestDB.java:52)
TIA and rgs.
Paul...
> set CLASSPATH=%CLASSPATH%;D:\Paulie\Test1\jaybird-Thanks Roman,
> full-2.1.6.jar;.
This worked a treat in getting rid of that error.
Now I have a new problem.
con = DriverManager.getConnection
("jdbc:firebirdsql:embedded/3050:
D:\\Test1\\EMPLOYEE.FDB",
"SYSDBA",
"masterkey");
produces this error - any ideas anyone?
java.lang.RuntimeException: Failed to initilize Jaybird native
library. This is most likley due to a failure to load the firebird
client library.
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:100)
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:219)
at
org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(FBManagedConnectionFactory.java:117)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:125)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at TestDB.main(TestDB.java:52)
TIA and rgs.
Paul...
> or simply add the driver to your project settings in BlueJ.should use
>
> > From the dos prompt I get
> >
> >
> > D:\Paulie\Test1>java TestDB.class
>
> If the current directory (".") is added to classpath, then you
>D:\Paulie\Test1.
> java TestDB
>
> (without .class at the end). Also ensure that you have set the FIREBIRD
> environment variable:
>
> set FIREBIRD=D:\Paulie\Test1
>
> if you have unzipped the Firebird Embedded directly into
>
> Also, if you will use Linux, there are appropriate shared libraries
> (libjaybird21.so and libfbembed.so) also on that platform.
>
> Roman
>