Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse swt(Problem using Swt with Eclipse 2024-06)
Eclipse swt [message #1867092] Fri, 14 June 2024 09:52 Go to next message
Eclipse UserFriend
I use Eclipse Swt For my java Applications since Many years on Windows and since 4 years on Raspberry pi Model 4B successfully.

I world like to update to: Raspberry pi Model 5, linux aarch64
I tried the following steps:

Installed Eclipse Java For developers 2024-06
Downloaded corresponding Swt Archive
Imported Swt Archive Into Workspace: a project org.Eclipse.Swt ist generate automatically
Created project myproject
Added org.Eclipse.Swt to project dependency : Bild Path -> project (classpath/Module?')
Created a sample Swt Java file
The Widgets are recognized And an import Statement is added on Top of the Java file. However, the Statement Implies an error
" org.Eclipse.Widgets.Display is Not accessibile"

Any suggestions?
Re: Eclipse swt [message #1867278 is a reply to message #1867092] Thu, 20 June 2024 08:54 Go to previous messageGo to next message
Eclipse UserFriend
Which Java version are you targeting? Did you inadvertently pick one that defaults to being modular by adding a module-info.java for you?
Re: Eclipse swt [message #1867362 is a reply to message #1867278] Sun, 23 June 2024 22:45 Go to previous messageGo to next message
Eclipse UserFriend
I want to uninstall everything that is now installed on my Linux computer without effecting the new install of Eclipse since I want to start from scratch. What is the process to accomplish this?
Re: Eclipse swt [message #1867368 is a reply to message #1867362] Mon, 24 June 2024 01:29 Go to previous messageGo to next message
Eclipse UserFriend
Delete the installation folder, the workspace folder, and probably everything in ~/.p2 and ~/.eclipse.
Re: Eclipse swt [message #1867581 is a reply to message #1867278] Sun, 30 June 2024 05:44 Go to previous messageGo to next message
Eclipse UserFriend
I tried it with
JRE System Library [java-17 openjdk-arm64]

for both, myProject and SWTZ project

An dnow I get the error message

Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

Re: Eclipse swt [message #1867785 is a reply to message #1867581] Sun, 07 July 2024 11:40 Go to previous message
Eclipse UserFriend
The problem is resolved.
Just take the corresponding SWT.jar and delete the two files ECLIPSE_.RSA and ECLIPSE_.SF in the directory META-INF using e.g. xarchiver.
The resulting SWT.jar works
Previous Topic:Install Old Version
Next Topic:Embedded Eclipse JLink Script Call on Run/Pause
Goto Forum:
  


Current Time: Sat Apr 26 10:31:22 EDT 2025

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

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

Back to the top