- This topic has 1 reply, 2 voices, and was last updated 19 years ago by Riyad Kalla.
-
AuthorPosts
-
ArmanInfotechMemberHello,
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
Riyad KallaMemberKishore,
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.
-
AuthorPosts