facebook

MyEclipse won’t recognise JAR in build path

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

    ract
    Participant

    Hi,

    I’ve got an EJB project that is dependant on another JAR – let’s call it master.jar.
    master.jar has been added to the Java Build Path

    The project displays an Error in the Problem/Errors window saying that it cannot find the required jar (and won’t attempt to build).

    Checking the Java Build Path again I can edit the entry relating to master.jar and see that the jar exists.

    If I expand the Referenced Libraries node in the Package Explorer I do not see master.jar

    Refreshing the project and/or restarting MyEclipse doesn’t solve the problem.

    Vital statistics are:
    MyEclipse Enterprise Workbench
    Version: 10.0
    Build id: 10.0-20111028
    Windows 7 x64 (although problem is also occurring on WinXP x86)

    #322225 Reply

    support-swapna
    Moderator

    newtong ,

    Sorry that you are seeing this issue with MyEclipse. I am afraid I could not replicate the issue at my end.

    1) What are the contents of the Jar file ? Are they typically java class files / libraries ?

    2) Is the jar located locally on your machine ? Is there anything unusual about the jar file ?

    3) Can you switch to a new workspace, create a plain Java project, add the jar and see if the issue persists ? Also check the .log file which is located at <workspace dir>/.metadata/.log for any errors of interest. If yes then paste them here.

    #322283 Reply

    ract
    Participant

    Hi Swapna,

    Thanks for yor response.

    1) The contents of the jar file is java classes
    2) The jar file is located on the local machine, nothing unusual about it, it is an EJB
    3) The issue does not persist for a new workspace/project. I’ve attached some excerpts from the log file that may be relevant

    Cheers,
    Garth

    Attachments:
    You must be logged in to view attached files.
    #322288 Reply

    support-swapna
    Moderator

    Garth,

    It may be a workspace issue. Start the IDE with -clean. Here is an FAQ for -clean : https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

    Let us know how it works for you.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse won’t recognise JAR in build path

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