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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -