"package org.jdom does not exist" (Java package and classpath question)

Discussion in 'OT Technology' started by dinger, Sep 17, 2004.

  1. dinger

    dinger Guest

    I am trying to set up jdom to work with my project, but couldn't get it to compile. My directory structure looks like this:


    PhoneInterface.java is part of package phoneinterface and imports org.jdom.*, but when executing:

    javac phoneinterface/PhoneInterface.java

    ...it doesn't compile, saying that "package org.jdom does not exist".

    Anyone know what's going on? Thanks!
  2. dinger

    dinger Guest

    Also, my classpath is set up:

  3. AccidenT

    AccidenT Remember I will always love you, as I claw your fu

    Oct 2, 2000
    Likes Received:
    Portland, ME
    It's looking for the jar file for the jdom stuff that your code uses, but it's not on the classpath. add "/u6/jsding/cs446/project/org/jdom.jar" to your classpath and try again.

Share This Page