Skip to main content



      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 10:19 Go to next message
Eclipse UserFriend
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 01:32 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Can't use SWT in eclipse [message #1867098 is a reply to message #1865400] Fri, 14 June 2024 10:03 Go to previous message
Eclipse UserFriend
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: Tue Apr 29 08:43:53 EDT 2025

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

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

Back to the top