Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macos-x64] All tests crash on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" #64

Open
dmitrykolesnikovich opened this issue Mar 5, 2023 · 0 comments

Comments

@dmitrykolesnikovich
Copy link

dmitrykolesnikovich@macbook lwjgl3-awt % mvnw compile exec:java -Dexec.mainClass="org.lwjgl.opengl.awt.Core32Test" -Dexec.classpathScope=test
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< org.lwjglx:lwjgl3-awt >------------------------
[INFO] Building LWJGLX/lwjgl3-awt 0.2.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:copy-resources (copy-resources) @ lwjgl3-awt ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ lwjgl3-awt ---
[INFO] Executing: /bin/sh -c cd '/Users/dmitrykolesnikovich/workspace/lwjgl3-awt' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /Users/dmitrykolesnikovich/workspace/lwjgl3-awt
[INFO] Storing buildNumber: bc8daf521a03979ed53302398128c281b7541e08 at timestamp: 1678050642236
[INFO] Storing buildScmBranch: main
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ lwjgl3-awt ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /Users/dmitrykolesnikovich/workspace/lwjgl3-awt/res
[INFO] skip non existing resourceDirectory /Users/dmitrykolesnikovich/workspace/lwjgl3-awt/native/macosx
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ lwjgl3-awt ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ lwjgl3-awt ---
[WARNING]
java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib
    at org.lwjgl.system.Library.loadNative (Library.java:327)
    at org.lwjgl.system.Library.loadNative (Library.java:414)
    at org.lwjgl.system.Library.loadNative (Library.java:381)
    at org.lwjgl.system.jawt.JAWTFunctions.<clinit> (JAWTFunctions.java:34)
    at org.lwjgl.opengl.awt.PlatformMacOSXGLCanvas.<clinit> (PlatformMacOSXGLCanvas.java:84)
    at org.lwjgl.opengl.awt.AWTGLCanvas.createPlatformCanvas (AWTGLCanvas.java:29)
    at org.lwjgl.opengl.awt.AWTGLCanvas.<init> (AWTGLCanvas.java:20)
    at org.lwjgl.opengl.awt.Core32Test$1.<init> (Core32Test.java:30)
    at org.lwjgl.opengl.awt.Core32Test.main (Core32Test.java:30)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
    at java.lang.Thread.run (Thread.java:833)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.570 s
[INFO] Finished at: 2023-03-06T00:10:43+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project lwjgl3-awt: An exception occured while executing the Java class. Failed to locate library: libjawt.dylib -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
dmitrykolesnikovich@macbook lwjgl3-awt %
@dmitrykolesnikovich dmitrykolesnikovich changed the title [MacOS] All tests crashes on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" [MacOS / Intel Core i5 x64] All tests crashes on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" Mar 5, 2023
@dmitrykolesnikovich dmitrykolesnikovich changed the title [MacOS / Intel Core i5 x64] All tests crashes on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" [macos-x64] All tests crashes on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" Mar 6, 2023
@dmitrykolesnikovich dmitrykolesnikovich changed the title [macos-x64] All tests crashes on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" [macos-x64] All tests crash on JDK 17 with "java.lang.UnsatisfiedLinkError: Failed to locate library: libjawt.dylib" Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant