Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simultaneous Java and Scala development within the same project

Tags:

I want to leverage the Scala's Actor Framework while I develop the user interface in the familiar Swing way.

Is it possible to have a mixed Java - Scala project in Eclipse, NetBeans or any other IDE?

like image 645
akarnokd Avatar asked Jun 23 '09 08:06

akarnokd


2 Answers

The "official" Scala plugin for Eclipse allows you to add the "scala nature" to any project, alongside the java nature. This allows you to mix and match however you'd wish.

I was playing with scala for the first time last night, using the Eclipse IDE, and it works very well.


Also, I just ran across this article: http://www.codecommit.com/blog/scala/joint-compilation-of-scala-and-java-sources

Seems that scalac knows enough about java to be able to resolve dependencies on java source, without actually compiling them. Very smart.

like image 132
skaffman Avatar answered Oct 19 '22 13:10

skaffman


Intellij does a good job of supporting mixed Java / Scala projects. At the moment the Scala support in Intellij seems better to me than the Scala IDE for Eclipse. (I have been a long time Eclipse user, recently trying Intellij on the recommendation of some other Scala coders).

like image 41
BenjaminJackman Avatar answered Oct 19 '22 13:10

BenjaminJackman