티스토리 뷰

Eclipse 에서 SVN 내 작업할 프로젝트를 Check out 받았는데 

Check out as 를 통해 Project 환경을 지정하지 않고 그냥 했더니 

General Project 가 되어 Java build가 되지 않았다.


해결책을 찾아서 펌.


Problem: Migrate a Eclipse general project to a Eclipse Java project

You have a Eclipse project, which contains Java code – but you didn’t set it up as a Java project when you created or checked out this project. So since Eclipse doesn’t allow you to change the project type inside the Gui, you are stucked.

Solution: add the java nature

  1. Close your project.
  2. Open your project file (which is located in your root directory of the appropriate project) called .project with your default editor. Search for
    <natures>
    </natures>
    and change it to
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
    Save the changed file.
  3. Open the project again – now it’s a java project.
출처 : http://enarion.net/programming/eclipse-change-general-to-java-project/


즉, 프로젝트를 열어두었다면 Project를 닫거나 이클립스를 일단 종료하고 
프로젝트가 포함된 디렉토리로 이동하여 '.project' 확장자 파일을 문서 tool 을 통해 실행한다.
그 후 <natures> 엘리먼트로 이동하여 <nature>org.eclipse.jdt.core.javanature</nature> 를 추가한다.
다시 연다. 

끝~!



공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함