Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Learning Java With Eclipse - .swt Error

Eclipse swt

  • Please log in to reply
1 reply to this topic

#1 kavery

kavery

    CC Regular

  • Member
  • PipPipPip
  • 41 posts

Posted 13 June 2012 - 08:52 AM

I am teaching my self java.
I have just started and have got elcipse to use as the IDE.

I have never use either so started with the tutorials in eclipse. the second tutorail Hello World SWT.

after al instuction i get the error message.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-win32-3740 in java.library.path
no swt-win32 in java.library.path
Can't load library: C:\Users\Kavery\.swt\lib\win32\x86\swt-win32-3740.dll
Can't load library: C:\Users\Kavery\.swt\lib\win32\x86\swt-win32.dll

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
at HelloWorldSWT.main(HelloWorldSWT.java:12)


I can not find .swt\lib\win32\x86\swt-win32-3740.dll anyway.
there nothing in C:\Users\Kavery\ because everthing is on another drive whch confuses me aswell.

i have no understanding how the set the properities of elcipse either to corret this destination error.
any help will be a great help. or is there a better ide.
  • 0

#2 kernelcoder

kernelcoder

    CC Devotee

  • Expert Member
  • PipPipPipPipPipPip
  • 990 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal

Posted 13 June 2012 - 07:38 PM

You need to properly follow the steps for ''Configure the Java project''. See this Eclipse forum thread for details.
  • 0





Also tagged with one or more of these keywords: Eclipse, swt

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download