Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can't use SWT in eclipse(get a security exception when using external SWT jar)
Can't use SWT in eclipse [message #1865400] Thu, 02 May 2024 14:19 Go to next message
ss ss is currently offline ss ssFriend
Messages: 1
Registered: May 2024
Junior Member
I have downloaded the SWT jar from the eclipse website and added it to:

java build path -> libraries

in the properties to the project

i can import classes from the jar but when i try to run it i get this:




Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at java.base/sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:347)
at java.base/sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:289)
at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:283)
at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:239)
at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:761)
at java.base/java.util.jar.JarFile.getInputStream(JarFile.java:849)
at java.base/jdk.internal.module.ModuleReferences$JarModuleReader.implOpen(ModuleReferences.java:265)
at java.base/jdk.internal.module.ModuleReferences$SafeCloseModuleReader.open(ModuleReferences.java:180)
at java.base/java.lang.module.ModuleReader.read(ModuleReader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:809)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:741)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:665)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at bla/bla.bla.main(bla.java:14)



can someone help? thanks

im on xubuntu 22
Re: Can't use SWT in eclipse [message #1865475 is a reply to message #1865400] Sat, 04 May 2024 05:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33229
Registered: July 2009
Senior Member
You can ask here:

https://github.com/eclipse-platform/eclipse.platform.swt/discussions

But folks will want to know, exactly which version of SWT did you get and from where exactly did you get it, as well as which version of Java you are using.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Can't use SWT in eclipse [message #1867098 is a reply to message #1865400] Fri, 14 June 2024 14:03 Go to previous message
Alex Lutat is currently offline Alex LutatFriend
Messages: 20
Registered: July 2009
Junior Member
TryThis:

https://www.eclipse.org/swt/eclipse.php
Previous Topic:Upgrade to 2024-06 unable to read workspace
Next Topic:About the required specifications of Eclipse IDE
Goto Forum:
  


Current Time: Wed Oct 16 02:35:41 GMT 2024

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

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

Back to the top