Author Topic: macos cannot load native libraries  (Read 22160 times)

Offline douglaslyon

  • byte
  • *
  • Posts: 1
    • View Profile
macos cannot load native libraries
« on: November 18, 2017, 04:19:21 pm »
 The macosx cannot load one of the native libraries. To illustrate this issue, I have written the following test program:
 public static void main(String[] args) {
Exception in thread "main" java.lang.NoSuchMethodError: getPointer
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(
   at java.lang.ClassLoader.loadLibrary(
   at java.lang.Runtime.load0(
   at java.lang.System.load(
   at nativeLibs.NativeLibDetect.main(
Are you depending on a dylib to be somewhere it isn't?
Is there a JNA approach to the problem?
 - Doug

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
Re: macos cannot load native libraries
« Reply #1 on: November 20, 2017, 08:15:03 am »
To be honest, I've no clue about MacOS. Here's a thread that deals with a same error message, with some solution in the last entry:

I'm not sure, if this applies here though. But it has to be something with your jar/native locations, I assume. I've no idea what LWJGL does here, jPCT itself doesn't do anything with native libraries, as it relies on LWJGL to handle that.