Subject Embedded FB on Windows - using Java - help appreciated.
Author plinehan
Hi all,

Have gone back to College and am trying to get an app
working with Firebird Embedded on Windows, using the
dll (no equivalent on Unix?).


I don't have admin access to the machine, but can change
the user variables and have put everything into
D:\Paulie\Test1 and have added this to the CLASSPATH
and PATH variables.

I also put all the files from the
Jaybird-2.1.6JDK_1.6.zip into this directory.

I also put IBOConsole into this dir and it runs fine!


This code fails (and as a result, nothing works!)

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

From the dos prompt I get


D:\Paulie\Test1>java TestDB.class
Exception in thread "main" java.lang.NoClassDefFoundError: TestDB/class
Caused by: java.lang.ClassNotFoundException: TestDB.class
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

===========================

Does anybody have a solution to my problem - i.e. connecting to
Firebird dll?


TIA and rgs.


Paul...