Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working with java and scala in eclipse

Am working on a project, it contains both java and scala classes.
My folder structure: is
src>main>java -> for java classes
src>main>scala -> for scala classes
When am importing scala classes in java, eclipse saying that no type found. I already installed scala IDE in eclipse. I don't know how to fix this problem. Can anyone help me with the configuration of eclipse to work with both java and scala?

like image 459
Dilip Kumar Avatar asked Jun 19 '26 04:06

Dilip Kumar


1 Answers

I solved the problem by adding scala nature to project, As told by @jny:

Right click on Project -> Configure -> Add Scala Nature

like image 106
Dilip Kumar Avatar answered Jun 21 '26 00:06

Dilip Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!