how can i import a class from a simple java program in my scala script?
i have:
ScalaCallsJava.scala
hello/Hello.java
hello/Hello.class
the scala:
import hello.Hello
new Hello().hi("Scala")
the java:
package hello;
public class Hello {
public void hi(String caller) {
System.out.println(caller + " calling Java");
}
public static void main(String[] args) {
(new Hello()).hi("Java");
}
}
i have blindly tried a few different permutations (package or no, same dir etc) and i do have my java class, but i keep getting "not found" on the import.