The class file has Groovy dependencies. Using an embedded can will fix the problem.
Using Groovy 2.4.5 if I have this script for Automate.groovy
println "Hello from Automate.groovy"
and use this manifest.txt file:
Main-class: Automate Class-path: jar/groovy-all-2.4.5.jar
and this simple script layout:
rm *.class groovyc Automate.groovy jar cvfm Automate.jar manifest.txt Automate.class
and in the control directory I do the following:
bash$ mkdir jar bash$ cp $GROOVY_HOME/embeddable/groovy-all-2.4.5.jar jar
then this works:
bash$ java -jar Automate.jar Hello from Automate.groovy
The solution will be much better if the built-in jar is included in Automate.jar itself. An example of this using Gradle is this project .
source share