ive been trying to do an import in my java project but i keep getting the following error.
The import org.jdom cannot be resolved
i have created a lib folder under my project and have put the jar files from http://www.jdom.org/downloads/index.html
into there.
there were a total of 8 different jar files which i added. then i added them in my build path. those 8 files are now in my referenced libraries. however that error keeps coming up. ive tried refreshing and cleaning my project but no luck.
am i supposed to do something different since its a org.jdom?
my import statements are…
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
thank you
I opened the jar file at the link you gave using 7zip. It looks like you will need to use the import statements: (Note the addition of the ‘2’) “import org.jdom2.Document;”