facebook

package does not exist error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240470 Reply

    cusdx
    Member

    Hi, I’m trying myEclipse for the first time after trying Netbeans and Eclipse. Would be grateful for your help with this problem:

    My first task using myEclipse is to check out and get working a project
    which has previously only been accessed via Netbeans. The error I am
    getting when I try and run the ant compile task is this:
    [javac]
    C:\webapplications-ME403\odays\src\uk\ac\warwick\odays\app\AmendBooking.java:5:
    package javax.jdo does not exist
    [javac] import javax.jdo.*;
    The javax.jdo package is in jdo_1_0_1.jar, which is in web\WEB-INF\lib under
    my project directory – I set “web” to be the web root.

    Under project properties, the jar is listed as being under the build path,
    and I have also put it in the ant Classpath (via External Tools) for good
    measure.

    I can also see the jar in its correct location in the .classpath file.

    Any ideas what might be causing the problem or how to fix it?

    #240478 Reply

    Riyad Kalla
    Member

    I’m not an Ant guru by any means, and I don’t know how the External Tool classpath works, but I do know youi likely need to include the jdo JAR in your <classpath> element in your Ant script, and make sure your <javac> task is using it.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: package does not exist error

You must be logged in to post in the forum log in