How to import an existing directory into Eclipse?

前端 未结 6 900
心在旅途
心在旅途 2020-12-04 07:36

I am on a mac, but I don\'t think it will make a difference. I have a directory that I want to fully import/add into Eclipse. What I did is this:

  1. Right click i
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 08:07

    I Using below simple way to create a project 1- First in a directory that desire to make it project, create a .project file with below contents:

    
        Project-Name
        
        
        
        
        
        
        
    
    

    2- Now instead of "Project-Name", write your project name, maybe current directory name

    3- Now save this file to directory that desire to make that directory as project with name ".project" ( for save like this, use Notepad )

    4- Now go to Eclips and open project and add your files to it.

提交回复
热议问题