Subject | RES: [Firebird-Java] Re: Firebird connectivity |
---|---|
Author | Francisco Vieira |
Post date | 2003-09-12T00:04:50Z |
Just to test your
aplication you can extract to folders in the same folder your aplication is, the
folders are:
org
javax
you can extract the
files doing the following command in your terminal window:
jar xvf
firebirdsql-full.jar
-----Mensagem original-----On Thu, 11 Sep 2003 21:20:05 -0000, batsoww <batsoww@...> wrote:
De: John Zoetebier [mailto:john.zoetebier@...]
Enviada em: sexta-feira, 12 de setembro de 2003 17:50
Para: Firebird-Java@yahoogroups.com
Assunto: Re: [Firebird-Java] Re: Firebird connectivity
> I there any particular place the driver should be? I downloaded the
> firebirdsql-full.jar from the firebird site. Where do I put this
> file in order for it to work?
The jar file needs to be in the CLASSPATH of the class loader.
How you do that depens on the way you compile.
If you compile from a shell, ensure firebirdsql-full.jar is in CLASSPATH.
For example in bash shell on linux type:
CLASSPATH=$CLASSPATH:<path/to/firebirdsql-full.jar>
If you use an IDE you have to add firebirdsql-full.jar to the project.
For example in NetBeans you can mount a jar file as a file system.
Right-click on File Systems > Mount > Archive Files
Thereafter you can compile your java file.
--
John Zoetebier
Web site: http://www.transparent.co.nz
>
> --- In Firebird-Java@yahoogroups.com, John Zoetebier
> <john.zoetebier@t...> wrote:
>> On Thu, 11 Sep 2003 18:42:40 -0000, batsoww <batsoww@y...> wrote:
>>
>> > Hi, I am new to the world of Firebird and Java and I was
> wondering
>> > what the basic syntax of the database url and the driver url
> would
>> > look like. I am reading the database url from a file and passing
> it
>> > to the DriverManager.connection(Database_URL);
>> >
>> > I just don't understand how to write the actual URL's in the
> correct
>> > format in order to connect to the database.
>> >
>>
>> When you download FireBird there is a file FAX.txt.
>> From that file:
>> ==>
>> Two forms of JayBird can be used. FBDriver is used much like the
> old
>> Interclient driver. FBWrappingDataSource has internal connection
> pooling
>> capability. Examples of both are included here. Code examples of
> many of
>> the classes and methods used by JayBird can be found in the
> src/test
>> subdirectory of the source code available on SourceForge.net, see
> question
>> 13 below.
>>
>> JayBird supports two URL syntax formats:
>>
>> Standard format= jdbc:firebirdsql:[//host[:port]/]<database>
>>
>> FB old format= jdbc:firebirdsql:[host[/port]:]<database>
>> ==>
>>
>> Furthermore there is a samples folder with 2 Java programs.
>> The <database> is the qualified name of the database, i.e.
> includes the
>> path.
>>
>> --
>> John Zoetebier
>> Web site: http://www.transparent.co.nz
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.