I'm trying to write a simple batch script to test my Scala program. The script should be something like this:
#!/bin/bash
scala ./build/classes/MyClass "../../res/some_file.txt"
This returns:
Exception in thread "main" java.lang.RuntimeException: Cannot figure out how to run target: ./build/classes/MyClass
If I'm in the classes directory running:
#!/bin/bash
scala MyClass "../../res/some_file.txt"
works as expected.
What am I doing wrong here?
-Lee
./buildwith`pwd`/build?pwd/build.scala `pwd`/build/classes/MyClass "../../res/some_file.txt"scala -classpath `pwd`/build/classes "../../res/some_file.txt"