I want to import a class Twitter
to my project..
I copied a folder to my project. it is int winterwell folder>>jtwitter folder>> Twitter class.
the winterwell folder is inside my project
I downloaded a jar file called jtwitter, unpacked it and tried to put it as a folder.. into eclipse. I dont know what is easier to import a jar file or import it as folders.. any method will solve my problem
If it's inside one of the project's source folders, just refresh the folder.
Otherwise, right-click the project, then select Build Path > New Source Folder ...
Or you can select Import > General > File System
from the File menu.
It sounds like you already have an eclipse project, if so you will have at least one folder set up as a source folder in eclipse, if your java project is following any kind of conventions this folder will probably be called src on the filesystem. All you need to do is copy your Twitter class into any of the packages inside this source folder.
Alternatively you can add your new folder (jtwitter) as another source folder for your project will effectively achieve the same result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With