Eclipse “this compilation unit is not on the build path of a java project”

前端 未结 24 2983
故里飘歌
故里飘歌 2020-12-08 03:41

I can\'t get autocompletion to work on Eclipse.

I\'m working on the project on svn. I set up project in Eclipse by going into

File -> Import -> Checkout As

24条回答
  •  伪装坚强ぢ
    2020-12-08 04:11

    For example if there are 4 project and a root project, add the other child projects to build path of root project. If there is not selection of build path, add below codes to .project file.

    
    
        rootProject
        
        
        
        
            
                org.eclipse.jdt.core.javabuilder
                
                
            
            
                org.eclipse.m2e.core.maven2Builder
                
                
            
        
        
            org.eclipse.jdt.core.javanature
            org.eclipse.m2e.core.maven2Nature
        
    
    

提交回复
热议问题