Closed wheineman closed 9 years ago
@wheineman, you're right. The linkage is done for macos only. Besides, the path to jni lib is hardcoded, while should be searched in runtime. The linkage for other platforms should be simpler, than on mac, using just loadLib
and symAddr
from dynlib
module. Unfortunately, I can't test it on other platforms, but would gladly accept the PRs ;)
Okay. Thanks for the heads up. I'll see what I can do for Windows and Linux.
fd32f2078c44b4434d697989d3e37201c83c0fea Should deal with other platforms, but I haven't tested it. Closing this issue for now. Please reopen if doesn't work.
This proc prevents any other OS from working:
I get this attempting to run your example:
$ testjnim Traceback (most recent call last) testjnim.nim(16) testjnim jnim.nim(413) newJavaVM jnim.nim(104) linkWithJVMLib system.nim(3058) failedAssertImpl system.nim(2280) raiseAssert Error: unhandled exception: false Not implemented! [AssertionError]