Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


set classpath in runtime, is it possible?

Posted on 2006-03-19
Medium Priority
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  
Question by:khacduyst

Accepted Solution

SirCrofty earned 1500 total points
ID: 16232449
Possibly you are looking for something like this:


Author Comment

ID: 16232461
cool resource, thanks

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question