Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » SWT on Kepler(Cannot load 32-bit SWT libraries on 64-bit JVM)
SWT on Kepler [message #1233285] Sun, 19 January 2014 01:04 Go to next message
Eclipse UserFriend
Hi!
I'm using eclipse kepler on a 64-bit machine with Ubuntu. I am a complete novice to eclipse, so please bear with me. I needed to use swt, so I installed the jar using eclipse's import. When I ran the code I encountered the error:

Quote:
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM


This problem has been on here for about 4 days, tried many things to get it to go away, including but not limited to:

installing the 64-bit Jar (org.eclipse.SWT). This gave me an interesting error. It had missing parts of itself, for example a file in this package may have the statement:
import org.eclipse.swt.foo

and then the file foo was nowhere to be found!

Perhaps I downloaded the wrong one. I have looked all over to find the right package, but am very stuck. Please if you know what I need to do, do enlighten me.

Thanks in advance!


Re: SWT on Kepler [message #1233734 is a reply to message #1233285] Mon, 20 January 2014 06:14 Go to previous messageGo to next message
Eclipse UserFriend
You have a JDK64 bit installed but your Eclipse is 32bit.
a) download a 32bit VM and launch with that
b) download a 64bit Eclipse

Tom

On 19.01.14 07:04, Lucas Earl wrote:
> Hi!
> I'm using eclipse kepler on a 64-bit machine with Ubuntu. I am a
> complete novice to eclipse, so please bear with me. I needed to use swt,
> so I installed the jar using eclipse's import. When I ran the code I
> encountered the error:
>
> Quote:
>> Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: Cannot
>> load 32-bit SWT libraries on 64-bit JVM
>
>
> This problem has been on here for about 4 days, tried many things to get
> it to go away, including but not limited to:
> installing the 64-bit Jar (org.eclipse.SWT). This gave me an interesting
> error. It had missing parts of itself, for example a file in this
> package may have the statement:
> import org.eclipse.swt.foo
> and then the file foo was nowhere to be found!
>
> Perhaps I downloaded the wrong one. I have looked all over to find the
> right package, but am very stuck. Please if you know what I need to do,
> do enlighten me.
>
> Thanks in advance!
>
>
>
Re: SWT on Kepler [message #1233952 is a reply to message #1233734] Mon, 20 January 2014 17:44 Go to previous message
Eclipse UserFriend
Thanks for your response, Tom.

I assure you both (jdk and eclipse kepler) are 64-bit. Actually, I had to go and find org.eclipse.swt and import the jar using eclipse because it didn't come included. It appears that is the 32-bit package, but I'm having trouble finding a 64-bit org.eclipse.swt. That's where I'm at right now. As I stated earlier, I tried cloning a git repository with 64-bit swt that wasn't able to run because it was missing some of it's own java files.

[Updated on: Mon, 20 January 2014 17:44] by Moderator

Previous Topic:Query Myeclipse2013, config struts2 & Migration
Next Topic:Newbie needs your help! [Android development basics]
Goto Forum:
  


Current Time: Wed May 07 08:36:59 EDT 2025

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

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

Back to the top