facebook

Java src files unable to Compile

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

    Hello,

    I have recently installed Eclipse 3.1 with MyEclipse 4.0.3GA_E3 . I created a new web project and tried to share the project with an existing CVS resource by right clicking on the project and selecting Share project. No doubt i have received all the files ie both jsp and java files.

    But once i started the server , and started to compile a .java file, i found out that therez no class file availble for that file, after inspecting i came to know that many class files are missing in the WEB-INF folder though the src files exist in the workspace/src folder.

    Consequently, when the project is deployed in to the server, these class files that are missing in the workspace/project/WEB-INF/classses folder are missing in the server folder too.

    I tried to copy manually all the missing class files from the CVS server in to my current workspace /project/webroot/web-inf/classes directory . but once i restarted eclipse, its again eliminating the copied class files and showing only a few compiled class files.

    Will you pls sugggest y is this happening? Y is Eclipse unable to compile all the src Java files and just compiling only few files?

    Thanking You

    Kishore.

    Arman Infotech

    #241850 Reply

    Riyad Kalla
    Member

    Kishore,
    Default behavior of Eclipse is to delete it’s output dir when the project is built. So all it’s doing is erasing your /classes dir every time. What you need to do is set the correct source folder, so it can compile the source code into the correct output dir.

    I bet you currently have your source dir set to JavaSource or something like that. What you need to do is open your project properties and go to Java Build Path, then the first Tab, there you can set the /src dir as a Source directory.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Java src files unable to Compile

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