Subject Re: [Firebird-Java] Where is org package ?
Author Rick Fincher
Hi "itpcl",

The JayBird jar is not in the classpath of your aplication. You really only
need the firebirdsql-full.jar, it contains all the others.

For Windows, if your java code and firebirdsql-full.jar are in a directory
called c:\java_demo, the following will work.

set CLASSPATH=C:\java_demo\firebirdsql-full.jar

C:\j2sdk1.4.2\bin\javac DriverExample.java

C:\j2sdk1.4.2\bin\java -classpath .;%CLASSPATH% DriverExample

Note the dot and semicolon before the % above.

If C:\j2sdk1.4.2\bin is in your path or in an environment variable called
JAVA_HOME you can just use javac and java.

If you are using something other than Windows you can do something like:

export CLASSPATH=/home/mydir/firebirdsql-full.jar

/usr/local/j2sdk1.4.2/bin/javac -classpath .:$CLASSPATH DriverExample.java

Note the dot and colon before $ above.

Then execute with:

/usr/local/j2sdk1.4.2/bin/java -classpath .:$CLASSPATH DriverExample

Again with "export JAVA_HOME=/usr/local/j2sdk1.4.2/bin" you can just use
javac and java.

If you are using the C shell you need to use "setenv CLASSPATH
/home/mydir/firebirdsql-full.jar" instead of "export" etc.

Hope this helps.

Rick

----- Original Message -----
From: "itpcl" <itpcl@...>
To: <Firebird-Java@yahoogroups.com>
Sent: Friday, January 30, 2004 1:38 AM
Subject: [Firebird-Java] Where is org package ?


> Hello
> It is my first trial of writing java program to connect FB.
> After copying *.jar from JayBird 1.5 lib directory
> to CLASSPATH of JDK, then I compile the two example programs.
> And I get the following error messages.
>
> DataSourceExample.java:27: package org.firbirdsql.pool does not exist
> org.firebirdsql.pool.FBWrappingDataSource dataSource =
> 1 error
>
> DriverExample.java:179: package org.firebirdsql.jdbc does not exist
> d = new org.firebirdsql.jdbc.FBDriver ();
> 1 error
>
> How can I solve them?
> Thanks
>
>
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/Firebird-Java/
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>