http://stackoverflow.com/questions/402330/is-it-possible-to-add-to-classpath-dynamically-in-java
this may help you Prashant Malviya Sent from Bangalore, KA, India 2010/1/13 Saurabh Manohar <saurabhmano...@gmail.com> > Hi All, > I have a program which takes the classpath from the user as a > variable. Can I include the path when I run the program itself. Lets > say the user inputs "C:\Data\Lib" as the path for libraries, how can I > include the classpath when making a call to a method in the program > itself. Or would reading the path from a text file be a better option? > > Thanks in Advance > > Saurabh > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en >
-- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en