So I want to communicate to my core in OSX. I can do this no problem with the spark-cli in the terminal and it will work no problem.
I have found how to execute commands in java with help from places like this.
Only problem is I keep getting an error:
java.io.IOException: Cannot run program "spark": error=2, No such file or directory
Is it possible to send the strings I want to run straight into the terminal from java?