Subject Re: Moving from JBird 1.5 to 2.1.1
Author Ian A. Newby
Hi Roman,
It works if I unpack the .jar. Very strange.

Regards
Ian Newby

--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <rrokytskyy@...>
wrote:
>
> > According to Netbeans (5.5)...
> >
> > Execute:Java13CommandLauncher: Executing 'C:\Program
> > Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments:
> > '-classpath'
> >
'C:\!Development\Libraries\FirebirdSQL\jaybird-full-2.1.1.jar;C:\!Development\JavaApplication2\build\classes'
> > 'javaapplication2.Main'
>
> Very strange. I have changed the code a bit to reflect my environment,
> but it works without any problem. Command to start was
>
> c:/Programme/jdk1.5.0/jre/bin/java -classpath
jaybird-full-2.1.1.jar;. Test
>
> and the code is the following:
>
> import java.sql.Connection;
> import org.firebirdsql.pool.FBWrappingDataSource;
>
> public class Test {
>
> /** Creates a new instance of Main */
> public Test() {
>
> }
>
> public static void main(String[] args) {
>
> try {
> FBWrappingDataSource ds = new FBWrappingDataSource();
>
> ds.setDescription("Main Aktiv Firebird Database");
>
> ds.setDatabase("localhost:D:/database/as3ap.fdb");
> ds.setUserName("sysdba");
> ds.setPassword("masterkey");
> ds.setMaxPoolSize(20);
> ds.setMaxIdleTime(60000);
> ds.setPooling(true);
> ds.setType("TYPE4");
> ds.setMinPoolSize(3);
> ds.setLoginTimeout(10);
> Connection con = ds.getConnection();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> Frankly, I can't explain, why the classloader does not find the
> .properties file in the archive.
>
> Roman
>