Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » embedding SWT v4.31 jar in an app jar results in SecurityException(Embedding SWT 4.31 jar in an app jar causes Security Invalid signature file digest for Manifest main attributes)
embedding SWT v4.31 jar in an app jar results in SecurityException [message #1864517] Wed, 20 March 2024 21:04 Go to next message
Eclipse UserFriend
Looks like the manifest or signature file digest is an issue:

% jarsigner -verify swtmac_aarch64-4.31.jar
jarsigner: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

% jarsigner -verify swtmac_aarch64-4.30.jar
jar is unsigned.

This issue occurs for v4.31 Windows and Linux jars too.

[Updated on: Wed, 20 March 2024 21:06] by Moderator

Re: embedding SWT v4.31 jar in an app jar results in SecurityException [message #1864844 is a reply to message #1864517] Sun, 14 April 2024 21:04 Go to previous messageGo to next message
Eclipse UserFriend
I am having the same problem when attempting to use SWT 4.31's swt.jar from JRuby on Mac (Intel).

SecurityError: Invalid signature file digest for Manifest main attributes
       java_import at org/jruby/javasupport/ext/Module.java:91


I am using macOS Ventura 13.4.1 on Intel Core i7 (x86_64 aka x64), JDK22, JRuby 9.4.6.0, and SWT 4.31 for Mac x64 (aka x86_64).

[Updated on: Sun, 14 April 2024 21:07] by Moderator

Re: embedding SWT v4.31 jar in an app jar results in SecurityException [message #1867086 is a reply to message #1864517] Fri, 14 June 2024 05:44 Go to previous messageGo to next message
Eclipse UserFriend
I am wondering 2 things:

- This annoying error which we have no fix for is there even in the SWT release 4.32. It seems they keep releasing unusable releases. Why did this bug make it into 2 releases in a row, and why has this bug not been fixed in the many months that have passed?
- Why did nobody else reply in this thread? Is the community so small that no one else cares? Nobody else is using SWT 4.31 or 4.32? Just the three of us? Does this mean Eclipse/SWT is hopelessly abandoned at this point? I should switch to something else?

Thanks for reading.
Re: embedding SWT v4.31 jar in an app jar results in SecurityException [message #1867089 is a reply to message #1867086] Fri, 14 June 2024 09:07 Go to previous messageGo to next message
Eclipse UserFriend
I have the same problem using Raspberry/Linux.
I am an extensive User of swt Technology since many years. I would like to migrate my swt Applications from Eclipse 2022-06 to Eclipse 2024-06
Re: embedding SWT v4.31 jar in an app jar results in SecurityException [message #1867104 is a reply to message #1867086] Fri, 14 June 2024 11:17 Go to previous message
Eclipse UserFriend
A workaround for the issue is to remove the following files from jar:
META-INF/ECLIPSE_.SF, META-INF/ECLIPSE_.DSA, META-INF/ECLIPSE_.RSA.

This can be done using "zip -d" or similar command.
Previous Topic:New TextLayout created each time text is added in StyledText
Next Topic:How to enable Dark Theme Menus
Goto Forum:
  


Current Time: Mon Jul 14 15:05:29 EDT 2025

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

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

Back to the top