I'm trying to build a desktop application using ibm rational software architect. The application works perfectly with the third party jar(Apache Poi) and produces an output.
When I export the source code into a jar, the third party jar is not included and the app does not work on the third party jar dependent place.
Third part jar is placed in c:/apps and My source code is placed in c:/workspace/user/app
You should set classpath for your app.
This can be done by adding -cp <path.to.you.3rdparty.jar>
to your starting command.
java -cp c:/apps/* -jar <path.to.jar>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.