Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Code signature error: could not load SWT library in macOS Catalina
Code signature error: could not load SWT library in macOS Catalina [message #1828851] Fri, 19 June 2020 21:46 Go to next message
Shaokai Lin is currently offline Shaokai LinFriend
Messages: 5
Registered: June 2020
Junior Member
Hi everyone,

I am trying to run an Xtend IDE from Eclipse but after I click Run As -> Eclipse Application, Eclipse outputs the error below:

(simplified path for readability)
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/Users/.../.../.cp/libswt-cocoa-4932r18.jnilib: dlopen(/Users/.../.../.cp/libswt-cocoa-4932r18.jnilib, 1): no suitable image found.  Did find:
	/Users/.../.../.cp/libswt-cocoa-4932r18.jnilib: code signature in (/Users/.../.../.cp/libswt-cocoa-4932r18.jnilib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
	/Users/.../.../.cp/libswt-cocoa-4932r18.jnilib: stat() failed with errno=316
	no swt-cocoa in java.library.path: [/Users/xxx/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]
	/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib: dlopen(/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib, 1): no suitable image found.  Did find:
	/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib: code signature in (/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
	Can't load library: /Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa.jnilib
	/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib: dlopen(/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib, 1): no suitable image found.  Did find:
	/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib: code signature in (/Users/shaokai/.swt/lib/macosx/x86_64/libswt-cocoa-4932r18.jnilib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs

	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:342)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
	at org.eclipse.swt.internal.C.<clinit>(C.java:19)
	at org.eclipse.swt.widgets.Display.<clinit>(Display.java:107)
	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:760)
	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166)
	at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:180)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1420)


I am using Eclipse 2020-03 (4.15.0) and my platform is macOS Catalina (10.15.4). My SWT library is libswt-cocoa-4932r18, which seems to be relatively recent.

I suspect this is an OS X Catalina problem, as I've heard that it enforces a stricter requirement on code signatures in this new version. I also found a relevant thread here, but I am not sure how the solution maps to my case, as I am not able to start the new IDE from Eclipse.

Any thoughts on resolving this issue? Thanks very much.

Shaokai

index.php/fa/38377/0/

[Updated on: Fri, 19 June 2020 21:47]

Report message to a moderator

Re: Code signature error: could not load SWT library in macOS Catalina [message #1828865 is a reply to message #1828851] Sat, 20 June 2020 09:57 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
When you are launching the application, the plain JVM is used, not the Eclipse executable.

Ensure that you have a JVM that supports OS X Catalina:
https://www.oracle.com/technetwork/java/javase/using-jdk-jre-macos-catalina-5781620.html
Re: Code signature error: could not load SWT library in macOS Catalina [message #1828893 is a reply to message #1828865] Sun, 21 June 2020 16:36 Go to previous message
Shaokai Lin is currently offline Shaokai LinFriend
Messages: 5
Registered: June 2020
Junior Member
Rolf Theunissen wrote on Sat, 20 June 2020 09:57
When you are launching the application, the plain JVM is used, not the Eclipse executable.

Ensure that you have a JVM that supports OS X Catalina:
https://www.oracle.com/technetwork/java/javase/using-jdk-jre-macos-catalina-5781620.html


Thank you so much for your answer! I installed JDK14 and it worked!
Previous Topic:Is TLS certificate on marketplace site used by 2020-06 self-signed?
Next Topic:Missing copyright info in RCP Application
Goto Forum:
  


Current Time: Sun Apr 28 11:17:53 GMT 2024

Powered by FUDForum. Page generated in 0.03184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top