java - How to run jar from cmd with reference -


i downloaded package in java, i'll call package1, , created second package, i'll call package2. package2 has reference package1.

now need export package1 jar. exported (and in process created manifest file specified main file of package).

when running package1 commandline (java -jar package1.jar), how "connect" package2? is, when run java -jar package1.jar errors not finding specific classes appear in package2.

you should add package2.jar -cp argument java command line:

java -cp package2.jar -jar package1.jar 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -