Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a Java class containing a Scala call

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a test program which inturn calls a Java class and in this Java class, I call a Scala class (or object, whatever it means in Scala). When I try to run my Test class, I get the following error:



Initially I though it might be due to the SCALA_HOME not being set. But I have set it and still get to see this error. Any idea as to why this is not executing?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Got this to work. Added the scala-library.jar to the classpath in the java command line option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic