- Kevin Geist
- PowerBuilder
- Wednesday, 7 October 2020 04:08 PM UTC
I am trying to get a PB19 version of an application running using JDBC to connect to the a SqlAnywhere 12 db. The application is run from a share drive location. I am getting this error : Could not initialize JavaVM
I have a PB12 version of this same app connecting to the same db using JDBC and it runs fine from the share drive.
When I converted this app to PB19, I had no problem getting it run in powerbuilder after adding the jar in PB like this
To kick off the program, I use a small batch file with these commands:
set classpath=".;M:\APPS\Invoice19\SQL12\java\sajdbc4.jar"
start invoice.exe
From my PC that has PB19 installed I can run the program from the sharedrive and it works fine. It connects, however, if I try to run from a machine that doesn't have PB19 installed I get this error : Could not initialize JavaVM
I compared the PB DLLs used to run the app between PB12 and PB19 and I see I do have the PBjvm190.DLL deployed. So, I don't understand why its not working, I think there must be other DLLS that need to be deployed. PLEASE Help !
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.