We help IT Professionals succeed at work.

set classpath in runtime, is it possible?

khacduyst
khacduyst asked
on
Medium Priority
369 Views
Last Modified: 2010-03-31
hi experts,

my program has a function that allow user set their library at runtime of application, i know we can set classpath in bat file but i want set classpath at runtime and my application will set classpath in java code, is it possible? if yes, how can i do that job, please give me an url or example code to do that, thanks  
Comment
Watch Question

Possibly you are looking for something like this:

http://forum.java.sun.com/thread.jspa?forumID=32&threadID=300557

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
cool resource, thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.