Eclipse: The resource is not on the build path of a Java project

后端 未结 13 1572
栀梦
栀梦 2020-12-04 17:23

I have been given a Source Folder (src) of a Java Project. I have created a .project file, kept it inside that folder and imported that Project int

13条回答
  •  一向
    一向 (楼主)
    2020-12-04 17:59

    I found similar issue and fixed it by correcting .project file. For java project .project file must have below tag within natures

    org.eclipse.jdt.core.javanature


    Example of complete .project file

    
    
        SampleProjectName
        
        
        
        
            
                org.maven.ide.eclipse.maven2Builder
                
                
            
            
                oracle.eclipse.tools.weblogic.sharedLibraryFrameworkValidator
                
                
            
        
        
            org.eclipse.jdt.core.javanature
        
    
    

提交回复
热议问题