title: How to enable java program to append specific path to classpath at program run time
body: <p>I have made a front end for a program which test java (foo.class) binary file for errors. The problem is that to test the file the folder must be in claspath. Now in my front end the foo.class file can be selected from any where in hard disk using a browse button but I am unable to append the selected location to class path in order to run the test. Since that folder can be different for each run of program therefore it needs to be kind of dynamic. Thanks.</p>