File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Languages » Scala
Reply 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: 8795

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

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
 
Similar Threads
code from the Head-First-Java Book don't run
Interface - AbstractClass Collision
Web Service with build.xml
Ant - How to create a runnable jar of jars and classes
mysql problems in netbeans