Hi,
I'm running DBF_JDBC30.jar on Linux (i386 RHEL 4) using the Sun 1.6.0 JDK.
I'm getting the following error:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.UnsatisfiedLinkError: no JNIFile in java.library.path
If I read the HXTT FAQ Concurrence question 5 it says: "If you are using JDBC3.0 package with JVM1.4.X or JVM1.5.X, you needn't that library."
I'm including the following properties while trying to make a connection:
properties.setProperty("lockType", "VFP");
properties.setProperty("versionNumber", "30");
Is there a JNIFile library for Linux somewhere or is there another problem?
|
>properties.setProperty("lockType", "VFP");
First, you needn't to set that connection property on Linux, if you haven't run VFP on Linux, and you haven't run HXTT DBF from two different Java VM.
>"If you are using JDBC3.0 package with JVM1.4.X or JVM1.5.X, you needn't that library."
Secondly, we enabled that library temporarily because we found JDK1.4.X on SCO Unix Open Server 5.X( and 6.0) is lame to use NIO lock.
>Is there a JNIFile library for Linux somewhere or is there another problem?
If you login into Download Page, then you will find a JNIFile.zip file, which includes that library for Linux, SCO Unix, Win64, Win32, and OS2.
|
>> properties.setProperty("lockType", "VFP");
> First, you needn't to set that connection property on Linux, if you haven't
> run VFP on Linux, and you haven't run HXTT DBF from two different Java VM.
I do not understand what you are saying. My Java program is running on Linux and accessing a Visual FoxPro database from a Windows shared folder. Several Windows clients are simultaneously using the same database using a Visual FoxPro-developed application. So my program will be the only Java program accessing the database using the HXTT database drivers...
>> Is there a JNIFile library for Linux somewhere or is there another problem?
> If you login into Download Page, then you will find a JNIFile.zip file,
> which includes that library for Linux, SCO Unix, Win64, Win32, and OS2.
OK, I found this and I am trying to add the .so file to the classpath now...
|
>Several Windows clients are simultaneously using the same database
You're correct. You should use lockType=VFP connection property:)
>OK, I found this and I am trying to add the .so file to the classpath now...
:)
|