Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing a Scala project from github into Eclipse

I've installed EGit plugin in my Eclipse Helios with latest Scala IDE plugin beta. I've imported it as a "general project" using clone and I can't find any Configure -> Add Scala nature option ... what am I doing wrong? (can't compile/run/add libraries etc)

like image 376
Antonin Brettsnajdr Avatar asked Apr 19 '11 10:04

Antonin Brettsnajdr


1 Answers

I'm not familiar with the EGit Plug-in, but do you also have the option to import it as a Java project? The "Add Scala Nature" option is only available for Java projects.

If you can't create it as a Java project, you can also just modify the generated .project file and add the Java nature to it manually:

<nature>org.eclipse.jdt.core.javanature</nature>

(taken from http://enarion.net/programming/eclipse-change-general-to-java-project/)

like image 98
Mirko Stocker Avatar answered Sep 22 '22 02:09

Mirko Stocker