Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Reporting Tutorial Issue
Reporting Tutorial Issue [message #1836827] Fri, 15 January 2021 02:33 Go to next message
Joshua Jimenez is currently offline Joshua JimenezFriend
Messages: 9
Registered: January 2021
Junior Member
So, I was told to post this here? After installing Eclipse completely new, I have trouble getting this to run:

"Create a Hello World SWT application" is the exact title of the tutorial.

These steps have been followed:

Introduction
Open the Java perspective
Import the SWT project from target platform using Plug-In Development Environment
(skiped because it told me to) - Import the SWT project from downloaded SWT archive
Verify the SWT Project in workspace
Create a Java project
Configure the Java project
Create a class
Write the Java Code

-current point- Run your Java application

To me it appears like something in the SWT library that is used in the code uses a 32 bit .DLL which isn't included in the instalation anymore.


you can find more info on my post in the newcomer section here if you need it:
https://www.eclipse.org/forums/index.php/m/1836806/#msg_1836806
Re: Reporting Tutorial Issue [message #1836842 is a reply to message #1836827] Fri, 15 January 2021 10:56 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

Eclipse doesn't support 32-bit anymore, only 64 bit is supported. I'm not sure the code is looking for 32-bit libraries, does it say so in the error?

>Import the SWT project from target platform using Plug-In Development >Environment
After this step, what is the name of the SWT project in your workspace?


Lakshmi P Shanmugam
Re: Reporting Tutorial Issue [message #1836843 is a reply to message #1836842] Fri, 15 January 2021 12:54 Go to previous messageGo to next message
Joshua Jimenez is currently offline Joshua JimenezFriend
Messages: 9
Registered: January 2021
Junior Member
error thrown is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-win32-4940r23 in java.library.path: C:\Users\joshu\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;V:/Software/eclipse-java-2020-12-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;V:/Software/eclipse-java-2020-12-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Users\joshu\AppData\Local\Microsoft\WindowsApps;V:\Software\eclipse-java-2020-12-R-win32-x86_64\eclipse;;.
no swt-win32 in java.library.path: C:\Users\joshu\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;V:/Software/eclipse-java-2020-12-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;V:/Software/eclipse-java-2020-12-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Users\joshu\AppData\Local\Microsoft\WindowsApps;V:\Software\eclipse-java-2020-12-R-win32-x86_64\eclipse;;.
Can't load library: C:\Users\joshu\.swt\lib\win32\x86_64\swt-win32-4940r23.dll
Can't load library: C:\Users\joshu\.swt\lib\win32\x86_64\swt-win32.dll


I am not new to coding, I have worked in debugging & testing about 10 years ago. I just need to refresh everything. So I know how to read an error message.

So, since you appear to not have checked out the linked post, I will reiterate what my problem is:

After installing eclipse all-new, I figured I would go through the SWT tutorial provided on first startup. So far, so good, nothing it told me was stuff I didn't know how to do by myself either but it was a nice refresher to make sure I did it right.

However, on the last step, when the tutorial is meant to compile the hello world application, it throws this error.

I checked the path and those folders exist, but they are empty. I tried uninstalling and re-installing eclipse several times with the different methods provided. (installer, package ect.) but the result is always the same.

and yes, I am quite sure that swt-win32.dll and swt-win32-4940r23.dll are 32bit files... and certainly not mine. My guess is that when you guys coded the Display class you referenced a 32bit library so you didn't have duplicate code since at the time, both 32 and 64 were available and it was easier to include a 32bit library that already existed... and then forgot about that when you stopped providing them.

Happens to Unix/Linux developers all the time.

I just want to know how to get those .DLLs, because without them, the Display class is never going to work and I need to find another library to display things.

[Updated on: Fri, 15 January 2021 12:57]

Report message to a moderator

Re: Reporting Tutorial Issue [message #1836847 is a reply to message #1836843] Fri, 15 January 2021 14:13 Go to previous messageGo to next message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Hi,
What about the JVM used to launch the SWT application ?
Please check, it should be 64bit and not 32bit.

Regards,
Niraj
Re: Reporting Tutorial Issue [message #1836855 is a reply to message #1836847] Fri, 15 January 2021 16:57 Go to previous messageGo to next message
Joshua Jimenez is currently offline Joshua JimenezFriend
Messages: 9
Registered: January 2021
Junior Member
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) Client VM (build 25.271-b09, mixed mode)
Re: Reporting Tutorial Issue [message #1836891 is a reply to message #1836855] Mon, 18 January 2021 02:22 Go to previous message
Joshua Jimenez is currently offline Joshua JimenezFriend
Messages: 9
Registered: January 2021
Junior Member
Ok, this shit just got weirder.... After making the default install workspace and doing the tutorial again on there, the code suddenly started to work on my normal workspace too... and I changed absolutely NOTHING!

So might be a problem with non-standard workspaces? At least I can move on now ^^
Previous Topic:Can't create a new JavaScript Project
Next Topic:Linker options: Where are they?
Goto Forum:
  


Current Time: Tue Apr 23 17:19:18 GMT 2024

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

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

Back to the top