Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20807
  • 博文数量: 4
  • 博客积分: 233
  • 博客等级: 入伍新兵
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-05 11:38
文章分类
文章存档

2012年(4)

我的朋友
最近访客

分类: Java

2012-04-18 09:23:32


cited from 

Eclipse: Change general to Java project
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


    and change it to

    org.eclipse.jdt.core.javanature

    Save the changed file.
  3. Open the project again – now it’s a java project.
阅读(1624) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~