Is there anyway that I can change the classpath
during runtime and make my server program use the new classpath without
exiting the program??
this doesn't seem to work:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
String key = "java.class.path";
String value = "C:\jakarta-tomcat\webapps\cms\web-inf\classes\pack1.jar";
System.setProperty(key, value);
Class cls = Class.forName ("pack1.ClassA");
cls.newInstance();
ClassA.callMethod();
~~~~~~~~~~~~~~~~~~~~~
thank you....
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com