Subject Re: [Firebird-Java] Re: Moving from JBird 1.5 to 2.1.1
Author Rick Fincher
Hi Ian,

Are you putting a jar inside a jar? I.e. are you jarring up the
jaybird-full-xxx jar in you jar? If so that doesn't work.

Sorry if this is off track, but just thought I'd check.

Rick

Ian A. Newby wrote:

> Hi Roman,
> It works if I unpack the .jar. Very strange.
>
> Regards
> Ian Newby
>
> --- In Firebird-Java@yahoogroups.com
> <mailto:Firebird-Java%40yahoogroups.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
> >
>
> _
> <http://groups.yahoo.com/group/Firebird-Java/post;_ylc=X3oDMTJwOWtoYXM0BF9TAzk3MzU5NzE0BGdycElkAzIwOTUyNzkEZ3Jwc3BJZAMxNzA1MDA2NzY0BG1zZ0lkAzg4OTMEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMTY5MDUxMTE1?act=reply&messageNum=8893>
>
>




[Non-text portions of this message have been removed]