0

My java 1.5 application (running on Windows 7) accesses btrieve files, from Pervasive Software (PVSW). I use a JAR file supplied by PVSW, named psql.jar. This JAR accesses several DLLs. Most of the time my application runs without error, but sometimes, on the initial load of the JAR file I get a java exception:

jnibtrv.dll - cannot find dependent libraries

Restarting the computer fixes the problem - until the next time it happens. I have profiled my application with "Dependency Walker" (version 2.2). The error did not occur during profiling, but it also didn't even show that file jnibtrv.dll was loaded.

How can I find what dependent library is missing?

Abra
  • 19,142
  • 7
  • 29
  • 41
  • Check the PVSW.LOG file to see if there are any errors loading files. My guess is that you might have an older version of one of the Pervasive DLLs and it causes the error you are seeing. – mirtheil Jun 07 '17 at 20:59
  • Thank you for the reply, and forgive me if this is a stupid comment, but are you saying that the DLL is never loaded? If not then why does my application work most of the time without error? Also, where is this PVSW.LOG file located? I can't find it. – Abra Jun 08 '17 at 03:51
  • I'm not saying that the DLL is never loaded. I'm saying that since Pervasive / Btrieve has been around for a long time, sometimes older versions of DLLs interfere with the working version. I'm using PSQL v11. My PVSW.LOG is located in C:\ProgramData\Pervasive Software\PSQL\logs. What version of PSQL are you using? – mirtheil Jun 08 '17 at 11:33
  • I don't have folder C:\ProgramData\Pervasive Software. I believe I am using version 9 (nine) – Abra Jun 08 '17 at 12:31
  • It might be in C:\PVSW\BIN or maybe in C:\WINDOWS. – mirtheil Jun 08 '17 at 14:33
  • @mirtheil, I won't be back at work until Sunday morning, so I'll search then. Thanks. – Abra Jun 09 '17 at 04:51

0 Answers0