• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add new package

 
dushantha Rathnayake
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got some source codes from internet that have "org.eclipse.swt;" package. but after run my program I got this result, "package org.eclipse.swt does not exist
import org.eclipse.swt.SWT; " Now what I want to do?? please help me.

Thank you.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to download SWT and to add the library to your classpath.
 
dushantha Rathnayake
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I can download SWT but I don't know how to add the library to my classpath ???

Thank you.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dushantha Rathnayake wrote:I can download SWT but I don't know how to add the library to my classpath ???


If you are using an IDE, then check out the help files for your IDE and it will explain how to do this. If you are compiling and running on the command line, then check out the Oracle Java tutorials and they will show you how to do this. If you're still stuck, come on back and tell us what you've tried. Best of luck!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We also have this FAQ about setting the classpath.
 
dushantha Rathnayake
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thank you everyone. I got it.

Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!