Monday, January 11, 2010

Eclipse Problems and solutions

Problem: Eclipse opens the project and shows and ‘X’ mark at the project folder. The entire java build path etc is proper. Cleaning the propjet works, but building the project fails. The progress bar stops after showing “Copying resources to folder”.

Solution: Goto project --> properties --> Build Path . Change the output folder to some other name ( usually it will be bin , change to bin1 etc ).

Root Cause : Not known .

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


Problem: A java error comes .... "ClassNotFoundException a.b.c.DOMParser" .. During compile time / run time

Solution: Find out the jar file for this class and append the path to the classpth variable. Ex: add D:\Hui\xcers.jar to classpath to support DOMParser

Root Cause : No class file found in the class path .


<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>



Problem: Tomcat was getting started and closed immediately without server stating completely.

Solution: The CLASSPATH environment variable was having 2 values "D:\xx\xxxx\tools.jar;D:\xx\xxxx\xcerse.jar"
I removed the last one and the semicolon.Tomcat is coming up and running.

Root Cause: NO idea....

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


Problem: When compiled a project, an error is shown ==> "

The hierarchy of the type is inconsistent"


Solution: Find the classes which the faulty class extends and make those base classes compile clean / If they are missed in the project source files, add them.


Root Cause : Suppose the class name here is A and A extends B, then the error is shown ifB is not compile clean / It is missed in the project source files.




No comments:

Post a Comment