This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala library used by java app in netbeans

No replies
boris pezzatti
Joined: 2009-12-03,
User offline. Last seen 42 years 45 weeks ago.

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)

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland