Error importing JDOM

1

Galera,

I'm following a tutorial to learn about a Java Calculator done in a distributed way.

However, I'm having an import error from the JDOM library, I've imported it anyway: - Zipado - Archive by file - Only the main file

But the error persists:

error: package org.jdom does not exist import org.jdom.Document;

What am I doing wrong?

Hugs,

    
asked by anonymous 24.04.2015 / 23:36

1 answer

1

For package org.jdom you will need an older version of JDOM . See in the image below that for the version 2.0.6 there is no package org.jdom , but org.jdom2 :

The1.1.3versionwasthemostrecentversionIfoundthathastheorg.jdompackage.Followimageofversion1.1.3:

Using the 1.1.3 version, if other errors appear, such as NoClassDefFoundError and LinkageError , you should test with versions lower than 1.1.3 .

You can download the 1.1.3 version at this link: download .

Another solution is to change the import s in your classes from org.jdom to org.jdom2 , if you want to use the most recent version of the library.

    
25.04.2015 / 05:48