I'm trying to reference some classes in the Scala Interpreter that were writen and compiled using Eclipse. Eclipse stores compiled Java byte code in a folder {workspace}/myProject/bin. Is there some command which will add this folder to the classpath used by the Scala Interpreter?
Maybe scala.bat should be edited or parameterized with some argument?
Use the -classpath or -cp flags when launching the interpreter:
scala -cp /path/to/classfiles
You can edit scala.bat, or rather make a copy to leave the original unchanged.
You will probably want to use call :add_cpath "..." to add it, as is used somewhere in that batch file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With