groovy - How to add multiple jars to the classpath of groovyConole/groovysh? -



groovy - How to add multiple jars to the classpath of groovyConole/groovysh? -

this feels ridiculous have inquire this, can't seem add together multiple jar files classpath groovyconsole , groovysh. how add together multiple jar files classpath? here i've tried:

groovyconsole -cp ~/lib/compile/jar/mysql-connector-java-5.1.32.jar:~/lib/compile/jar/ojdbc6-11.2.0.3.jar

however, when execute code in console following:

file:/users/charlie/lib/compile/jar/mysql-connector-java-5.1.32.jar file:/users/charlie/projects/fuseanalytics/./ file:/users/charlie/.gvm/groovy/current/lib/ant-1.9.3.jar file:/users/charlie/.gvm/groovy/current/lib/ant-antlr-1.9.3.jar file:/users/charlie/.gvm/groovy/current/lib/ant-junit-1.9.3.jar file:/users/charlie/.gvm/groovy/current/lib/ant-launcher-1.9.3.jar file:/users/charlie/.gvm/groovy/current/lib/bsf-2.4.0.jar file:/users/charlie/.gvm/groovy/current/lib/commons-cli-1.2.jar file:/users/charlie/.gvm/groovy/current/lib/commons-logging-1.1.1.jar file:/users/charlie/.gvm/groovy/current/lib/gpars-1.2.1.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-ant-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-bsf-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-console-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-docgenerator-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-groovydoc-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-groovysh-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-jmx-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-json-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-jsr223-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-nio-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-servlet-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-sql-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-swing-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-templates-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-test-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-testng-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/groovy-xml-2.3.6.jar file:/users/charlie/.gvm/groovy/current/lib/hamcrest-core-1.3.jar file:/users/charlie/.gvm/groovy/current/lib/ivy-2.3.0.jar file:/users/charlie/.gvm/groovy/current/lib/jansi-1.11.jar file:/users/charlie/.gvm/groovy/current/lib/jcommander-1.35.jar file:/users/charlie/.gvm/groovy/current/lib/jline-2.11.jar file:/users/charlie/.gvm/groovy/current/lib/jsp-api-2.0.jar file:/users/charlie/.gvm/groovy/current/lib/jsr166y-1.7.0.jar file:/users/charlie/.gvm/groovy/current/lib/junit-4.11.jar file:/users/charlie/.gvm/groovy/current/lib/multiverse-core-0.7.0.jar file:/users/charlie/.gvm/groovy/current/lib/qdox-1.12.1.jar file:/users/charlie/.gvm/groovy/current/lib/servlet-api-2.4.jar file:/users/charlie/.gvm/groovy/current/lib/testng-6.8.8.jar file:/users/charlie/.gvm/groovy/current/lib/xmlpull-1.1.3.1.jar file:/users/charlie/.gvm/groovy/current/lib/xstream-1.4.7.jar

notice first jar file, mysql jar file, added classloader, sec jar file, oracle jar file, not added. i've tried using -cp argument twice like:

groovyconsole -cp ~/lib/compile/jar/mysql-connector-java-5.1.32.jar -cp ~/lib/compile/jar/ojdbc6-11.2.0.3.jar

but fails error. docs conspicuously devoid of guidance other vague hints works java. hence why frustrating first effort didn't work out of box.

i've tried add together jar files after starting groovyconsole using script > add together jar(s) class path menu option, adds none of jar files.

so why doesn't work in more straight forwards manner?

groovy jar groovyshell groovy-console

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -