- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scala library used by java app in netbeans
Mon, 2010-06-21, 14:16
I already posted this question in stackoverflow, without success ...
(http://stackoverflow.com/questions/3057227/using-scala-jar-from-java-pro...).
I'm developing a scala library, which I would like to be used by java
applications.
If I set up a java project in netbeans, with a reference to the scala
library (jar), I can compile the java project without errors.
However I get problems when running the java project directly from
netbeans (code from scala library is not executed e.g. for scala object
methods), while when running it without ant (directly with java -jar
.... on the command line in the /dist folder) everything works.
Does anyone have an idea why?
(I have added the scala-library.jar to the classpath of the scal and
java apps)