Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Add JAR files and Config files to CLASSPATH at runtime?

riswanbJan 23 2015 — edited Feb 12 2015

QUERY:

During runtime, I need to load the JAR files and relevant config files( .cfg files and .properties file) into CLASSPATH and run a specific java program from one of the JAR which is available in CLASSPATH.


Please advise me any relevant Java API details or a sample java program to implement the above use case.


Thanks in advance.


This post has been answered by unknown-7404 on Jan 23 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2015
Added on Jan 23 2015
4 comments
1,186 views