JNIPort - Primitive failed on JNI_CreateJavaVM

66 views
Skip to first unread message

bonndias

unread,
Nov 10, 2020, 10:28:57 AM11/10/20
to VA Smalltalk
Hi All,
played around with JNIPort, which I downloaded from VAStGoodies and imported into my VASt 8.6.2. Unfortunately the provided sample code fails with a "Primitive failed" in JNIPortJNIInterface>>#JNI_CreateJavaVM:with:with:

'Primitive failed calling ''c:\Program Files (x86)\Java\jre1.8.0_202\bin\client\jvm.dll'':JNI_CreateJavaVM from PlatformFunction>>#callWith:with:with: due to Floating point underflow'


Sample Code taken from VAStGoodies too:
JVMSettings default usesGhosts: true. "optional" 
JVMSettings default ghostClassSettings retainMethodSource: true. "optional"
"JVMSettings default runtimeSettings classpath: 'c:\Program Files (x86)\Java\jre1.8.0_202\lib\rt.jar;'. ""optional: classpath will be read from environment"
JNIPortJNIInterface libraryFile: 'c:\Program Files (x86)\Java\jre1.8.0_202\bin\client\jvm.dll'. "probably optional too"
JVM newWithDefaultSettings

Who can help?

Ben van Dijk

unread,
Nov 13, 2020, 3:13:33 PM11/13/20
to VA Smalltalk
Hi,
We used JNIPort a while ago succesfully with a java 1.7 jre.  You might give that a try

Op dinsdag 10 november 2020 om 16:28:57 UTC+1 schreef bonndias:

bonndias

unread,
Nov 17, 2020, 8:48:02 AM11/17/20
to VA Smalltalk
Hi,
thanks for your input and I can confirm it works with a 1.7 jre. But unfortunately this is no option. You wrote you used it a while ago, did you change to an alternative or is JNI no longer used by you? 

Ben van Dijk

unread,
Nov 18, 2020, 2:16:00 PM11/18/20
to VA Smalltalk
Hi, 
we no longer use JNI. The java stuff we used before was no longer needed

Op dinsdag 17 november 2020 om 14:48:02 UTC+1 schreef bonndias:
Reply all
Reply to author
Forward
0 new messages