import java.applet.*; import java.awt.*; import java.net.*; public class Client { static String classURL; public static void main(String args[]) { try { String WFS = "http://osprey4.npac.syr.edu:8001/Gateway/WF/"; classURL = WFS+"WebFlow/event/PropertyVetoException.class"; URL u = new URL(classURL); URLClassLoader ucl = new URLClassLoader(u); String s = u.getFile(); String classname = s.substring(s.lastIndexOf('/')+1, s.lastIndexOf(".class")); System.out.println("classname = "+classname); Class WebFlowContextHelperClass = ucl.loadClass(classname, true); System.out.println("class loaded"); /* Applet apl = (Applet) AppletClass.newInstance(); Frame f = new Frame(); f.resize(200,200); f.move(x,y); x += 50; y += 50; f.add("Center", apl); apl.init(); apl.start(); f.show(); */ } catch (MalformedURLException e) { System.out.println(classURL+" is not a valid URL"); } catch (Exception e) { System.out.println(e);} } }