specifing path to class file from java command line? -
i'm running local script automatically compile .java files , deploy .class files remote server.
on remote server can issue command directory uploaded (i.e., /tmp) , works fine....
java -cp .:/usr/share/java/mysql-connector-java.jar gpimport
but execute local script need specify path of .class file in /tmp java knows it.
how do that? thought would've been simple figure out haven't had luck far!
just change first classpath .
/tmp
:
java -cp /tmp:/usr/share/java/mysql-connector-java.jar gpimport
Comments
Post a Comment