- Pacito Nefulda
- PowerBuilder
- Monday, 21 January 2019 04:30 PM UTC
Guys,
We are trying to convert our current PB 12.5 application to PB 2017 R3. We managed to convert our application to 32Bit and currently testing it and at the same time we are trying the 64Bit version. Unfortunately one feature of our system seems to be encounter a problem with the 64BIt version. The code below is the one that seems to hang when executing it in 64 BIT. We are using JAVA JDK 1.7.0_02 32 bit. We downloaded the 64 bit JAVA JDK 1.8 something and add it to our path and JAVA_HOME environment but seems to hang at line 'll_return = &
iJavaVM.CreateJavaVM("", FALSE) '. Any idea why? Thank you in advance.
EJBConnection lEJBConn
long ll_return
iJavaVM = CREATE JavaVM
// need to specify the classpath form the Simple class
ll_return = &
iJavaVM.CreateJavaVM("", FALSE)
CHOOSE CASE ll_return
CASE 1
CASE 0
CASE -1
MessageBox ( "u_p8 Error", "jvm.dll was not found in the classpath.")
CASE -2
MessageBox ( "u_p8 Error", "pbejbclient125.jar file was not found." )
CASE ELSE
MessageBox ( "u_p8 Error", "Unknown result (" + String (ll_return ) + ")" )
END CHOOSE
IF ll_return
DESTROY iJavaVM
END IF
MessageBox('Running...','lEJBConn = CREATE EJBConnection')
lEJBConn = CREATE EJBConnection
MessageBox('Running...','ll_return = lEJBConn.CreateJavaInstance( inv_createDoc, "CreateDoc")')
ll_return = lEJBConn.CreateJavaInstance( inv_createDoc, "CreateDoc")
MessageBox('Result Running...','ll_return = lEJBConn.CreateJavaInstance( inv_createDoc, "CreateDoc") is ' + string(ll_return))
IF ll_return 0 THEN
MessageBox("u_p8 Error", "CreateJavaInstance returned " +string(ll_return))
destroy lEJBConn
END IF
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.