aspose file tools*
The moose likes Scala and the fly likes Calling a Java class containing a Scala call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "Calling a Java class containing a Scala call" Watch "Calling a Java class containing a Scala call" New topic
Author

Calling a Java class containing a Scala call

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Ok. Got this to work. Added the scala-library.jar to the classpath in the java command line option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a Java class containing a Scala call