Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems importing JDOM

807606May 7 2007 — edited May 8 2007
I'm trying to use the JDOM package for a little web app, but I can't seem to get my code to compile properly so I think I'm making a rookie mistake somewhere...

I've got
C:\Tomcat\webapps\ROOT\WEB-INF\
in my classpath,
and jdom.jar is located in
C:\Tomcat\webapps\ROOT\WEB-INF\lib\

(along with xerces.jar -not sure if this is necessary but can't hurt until I get it working)

My java file starts off with,
import org.jdom.*;
import org.jdom.input.*;
which give me the following at compilation,
MyClass.java:28: package org.jdom does not exist
import org.jdom.*;
^
MyClass.java:29: package org.jdom does not exist
import org.jdom.input.*;
^
I've also tried
import jdom.*;
which gives me the same error

jdom.jar contains:
org>jdom>"classes I need"

I've obviously not importing properly, but can't figure this out. I was simply using Eclipse to include libraries before, but I'd like to get more hands on :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2007
Added on May 7 2007
8 comments
741 views