This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
to set classpath dynammically
Posted by Prashanth on April 11, 2000 at 2:15 PM
Try using System class, There are methods like setproperty/getproperty etc... u can retrieve a class path using getproperty(java.class.path), so my guess is u can set the path using setproperty, check this out... only problem u may face is regarding permissions
> In one of my applications, I am trying to create folders at runtime
> and copy some .class files into these folders. folders are
> dynamically created with dynamic names. I want to include
> these folders in the classpath at runtime. How do i achieve this?