java - Accessing jar file libraries at runtime -



java - Accessing jar file libraries at runtime -

in code, near top of 1 of source files line:

import com.google.code.chatterboxapi.chatterbox;

this external jar library, , when ran code, build jar file, in command line outside ide using, java complained couldn't find com.google.code.chatterboxapi.chatterbox. how tell jvm find jar libraries are?

you utilize classpath alternative of java

-cp <class search path of directories , zip/jar files> -classpath <class search path of directories , zip/jar files> : separated list of directories, jar archives, , zip archives search class files.

java jar loading

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -