facebook

class not found error when opening myEclipse

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #258697 Reply

    bob54321
    Member

    Hi,
    when i open MyEclipse we have frequently “class not found error” , for class generated by automatic build of same MyEclipse project or for user Jar included in build path. At many points in time MyEclipse was not able to find some of the needed jar files.

    error extract by log:

    !ENTRY com.rational.clearcase 4 0 2006-06-28 08:54:38.25
    !MESSAGE Resource /EARPrj/.myeclipse/Myjar.jar does not exist.
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException: Resource
    /EARPaif/.myeclipse/Myjar.jar does not exist.

    these errors are tipically triggered by:

    com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDeleg
    ate.runWithEvent

    which then goes through the ClearCase plugin to find the resources, and
    finally concludes that the resources either do not exist or are not
    accessible:

    org.eclipse.core.internal.resources.ResourceException: Resource
    /EARPrj/.myeclipse/myjar2.jar does not exist.
    at
    org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:304)
    at
    org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:172)
    at
    org.eclipse.core.internal.resources.Resource.getSessionProperty(Resource
    .java:982)
    at
    com.rational.resourcemanagement.cmframework.CMUnit.getResourceData(CMUni
    t.java:246)
    at
    com.rational.clearcase.RSCMService.filterUnitsUsingPreferences(RSCMServi
    ce.java:1193)

    It also seems that all files which are reported as missing in the .log
    are contained in a folder called ” /EARPrj/.myeclipse”.

    This folder does not exist in my project.

    Some time the problem is resolved with the Clean or rebuild
    (Issue the Clean command or Simulate change in file with errorr).

    Version number is:

    Eclipse SDK
    Version: 3.1.0
    Build id: I20050627-1435

    Plug-IN
    Provider: Genuitec, LLC
    Name: MyEclipse Base Platform Feature
    Version: 4.0.0
    Id: com.genuitec.myeclipse.platform
    thanks

    #258798

    Riyad Kalla
    Member

    bob,
    The .myeclipse dir is actually a temporary directory used for building your project, you should not have any references to this directory in your build path. What is happening is these files *are* infact getting created for spurious moments in time then killed off.

    What you should be linking to is your libraries under the WEB-INF/lib directory.

    Out of curiosity, why are you linking to resources under .myeclipse? What resource is in there that you couldn’t get from another location in the project? (Also the clear case plugin might be interacting with this directory negatively, for example, stopping it from cleaning itself out which would make the files actually legitament at some points, which might be contributing to the confusion).

    Note: All dot files in eclipse are considered to be hidden files and should normally not be accessed directly by the users.

    #258853

    bob54321
    Member

    Hi,

    I know that the “.myeclipse” dir is a temporary directory.

    In fact, the not found classes are embedded in jar files in the directory

    EARprj\APP-INF\lib (where EARprj is a EAR myEclipse project).

    This folder is always included in the build path.

    In other circumstances, in same installation, “not found class” is marked

    also for classes normally generated by source of the same project.

    I believe that the build or clean process is interrupted for some reason

    with the described error.

    thanks

    #258858

    Riyad Kalla
    Member

    This is very strange then. Have you tried restarting using the -clean command line argument to see if that helps? Have you tried executing a refresh then a clean on your project to see if that helps?

    #258943

    bob54321
    Member

    I have used the clean command (menu project\clean) and sometimes the problem is resolved, but subsequently after the execution of the same command sometimes it is recreated.

    Moreover if I apply to a modification (add comment) to a source that it uses the classes not found,the automatic build process sometimes resolves the error for that source.

    Therefore I have the same unpredictable result if open myEclipse session
    (at end of the “building workspace” process) or if I execute the clean ommand.

    Which other information I can supply ?

    thanks

    #258958

    Riyad Kalla
    Member

    Are you using an external build script as part of your build cycle by chance? Or are you running an external build file (like ant ant script)?

    #259158

    bob54321
    Member

    I do not use external script.
    I use only the myEclipse standard configuration.

    #259164

    Scott Anderson
    Participant

    !ENTRY com.rational.clearcase 4 0 2006-06-28 08:54:38.25
    !MESSAGE Resource /EARPrj/.myeclipse/Myjar.jar does not exist.

    The issue here is that the Clearcase plugin you’re using things that the temporary directory ‘.myeclipse’ is a real source directory and is under source code management. To resolve the issue you’ll have to tell Clearcase to ‘ignore’ that directory and all subdirectories and contents. With CVS that is done by adding a .cvsignore file to the directory containing it. However, I don’t know how this is done with Clearcase since we don’t use it internally. But, that’s what’s causing the issue and how to address it.

    #260009

    bob54321
    Member

    Hello Scott,
    I have asked the aid to Rational Support.
    Rational Support has answered: “ClearCase not supporting third party development environments” .
    Who supplies the support for ClearCase plug-in in MyEclipse environment?

    Thanks

    #260015

    Riyad Kalla
    Member

    bob unfortunately the only support for ClearCase is going to come from the developers like Rational. But following Scott’s suggesitons should do the trick, just tell ClearCase to ignore those resources.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: class not found error when opening myEclipse

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