Subject | Re: [Firebird-Java] Embedded FB on Windows - using Java - help appreciated. |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-01-16T13:09:42Z |
> This code fails (and as a result, nothing works!)Seems that your CLASSPATH entry is not correct. Ensure that you have
>
> try
> {
> Class.forName("org.firebirdsql.jdbc.FBDriver");
> }
> catch(Exception e)
> {
> System.out.println("TEST");
> System.out.println(e.toString());
> }
>
>
> and I get the error (in BlueJ)
>
> TEST
> java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
something like:
set CLASSPATH=%CLASSPATH%;D:\Paulie\Test1\jaybird-full-2.1.6.jar;.
or simply add the driver to your project settings in BlueJ.
> From the dos prompt I getIf the current directory (".") is added to classpath, then you should use
>
>
> D:\Paulie\Test1>java TestDB.class
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 D:\Paulie\Test1.
Also, if you will use Linux, there are appropriate shared libraries
(libjaybird21.so and libfbembed.so) also on that platform.
Roman