facebook

jsp add jar cause classes folder cleared [Closed]

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

    Rutie Chen
    Member

    When I try to add a external jar file, then all of my beans in the web-inf/classes folder were disappear. Then my jsp cannot find those beans.

    My config: w2k Sp4
    eclipse 2.1.1
    myeclipse 2.6.2
    jdk 1_4_1
    tomcat 5.0

    #199312 Reply

    Scott Anderson
    Participant

    This is probably because a build is triggered, which causes the classes folder to be cleared. This is the normal way Eclipse operates. Don’t you have the source code for your beans in the java source folder of the project? How did you get them there to begin with?

    –Scott
    MyEclipse Support

    #199324 Reply

    Rutie Chen
    Member

    I compile those java files in other java package, then I drag the whole folder into the jsp project classes folder. When I add some external these java file needed, it cleared everything in the classes foler from class to .java files. Is this clear the point or correct way to do it?

    Thanks.

    #199329 Reply

    Scott Anderson
    Participant

    I think what you’re trying to do is described best in this thread:
    https://www.genuitec.com/forums/topic/dependant-projects-when-deploying-a-web-project-closed/#post-198137

    Pay particular attention to the 4th post (by Support) that explains how to set the output location of your other project to be your web project’s classes directory. That should do what you want.

    –Scott
    MyEclipse Support

    #199342 Reply

    Rutie Chen
    Member

    Thanks Scott. Yes that’s exactly what the problem is. Hope next release has improvement on it.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: jsp add jar cause classes folder cleared [Closed]

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