Subject A problem with BackUp procedure
Author ingenia_ingenia
Hi,
I have a problem with my BackUp procedure.
I'm using Firebird 2.0 with jaybird-full-2.0.1. The O.S. is Linux
(debian).

The code is:

private void backUp(String nameBackUpFile) throws Exception{
System.out.println("Start BackUp");
FBBackupManager fbBackup=new FBBackupManager
("NATIVE");
fbBackup.setUser(db_user);
fbBackup.setPassword(db_password);
fbBackup.setHost(db_ip);
fbBackup.setPort(db_port);
fbBackup.setDatabase(db);
fbBackup.setBackupPath(nameBackUpFile);
fbBackup.backupDatabase();
System.out.println("End BackUp");
}




and the error is:

Start BackUp
org.firebirdsql.gds.impl.jni.InternalError:
FirebirdApiBinding::Initialize - Could not find or load the firebird
client library.
at org.firebirdsql.gds.impl.jni.JniGDSImpl.nativeInitilize
(Native Method)
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFro
mList(JniGDSImpl.java:85)
at org.firebirdsql.gds.impl.jni.NativeGDSImpl.<init>
(NativeGDSImpl.java:126)
at org.firebirdsql.gds.impl.jni.NativeGDSImpl.<init>
(NativeGDSImpl.java:115)
at org.firebirdsql.gds.impl.jni.NativeGDSFactoryPlugin.getGDS
(NativeGDSFactoryPlugin.java:38)
at org.firebirdsql.gds.impl.GDSFactory.getGDSForType
(GDSFactory.java:219)
at org.firebirdsql.management.FBServiceManager.<init>
(FBServiceManager.java:72)
at org.firebirdsql.management.FBBackupManager.<init>
(FBBackupManager.java:120)
at ProvaBCK.backUp(ProvaBCK.java:71)


The same code work correctly in Windows.
Firebird is working correctly, accessing it either locally or
remotely, so I think didn't make
a installation's mistakes.

Thanks for your help and time

Gianluca
Ingenia