Compiler Error Free Java Project for local Setup

1. After importing the project into the eclipse IDE, first, deselect the "Build Automatically options" and clean the project.



2. When you clean the project, make sure to uncheck the option "Start Build immediately"
3. Open problem screen to get clear information on build or compilation errors in the project. you may or may not have a problem screen open in the Eclipse IDE. Go to windows > show view > others and select the Problem screen.













4. You will find many errors in the problem screen, some will be related to "missing 
external libraries", Server Libraries and JRE System Library


External Dependency Jars :



JRE Libraries Errors: 

Application Server  Errors:


5. First, we should resolve the JRE system library. To resolve the JRE errors, Go to build the Path of the project and make sure to replace the correct system configured JRE or Server JRE  in-place of existing unbound JRE.
















Remove the unbound jars :

   

Click on Add library and select the JRE and add it to the classpath:















6. After correcting JRE in the classpath, Go to build Path of the project and make sure to replace the correct  Server libraries in-place of existing unbound Server libraries. 

Remove the unbound server libraries: 




     












You may have server run-time configured or may not. If you don't have server run-time then first add the application server 

   A ) Go to server screen and click on add new server :















   B) Select the Application server. 






   C) Provide the installation Directory 





   D) Select any profile




















Once the server is setup, Go to Build Path and  Click on Add library and select the "Server Run-time" and add it to the classpath:

  



   






6. After correcting Server Runtime in the classpath, Go to build the Path of the project and make sure to replace the correct external libraries in-place of missing external libraries.

 Remove external libraries :

 
   
 Click on external Jars and add the jars into the classPath.

    

   

7. Once you corrected all the jars in the Classpath then build the project. 


8. Once the project is built. you may find all the errors are gone or in case of any error, rearrange the order of all jars as shown below. 

9) Once the class-path is set as per the above instruction, build the project and you will find all the error-free projects in eclipse IDE.

Please let me know if you are able to resolve the errors and let me know if you face any other issues, I will look and get this into this forum, Thanks, and Happy Learning. 

Comments