0 Replies Latest reply: Aug 14, 2008 4:38 AM by 843810 RSS

    Java Help Set if we keep my JAR file in remote server

    843810
      Hi,

      Following are the two ways we can able to use the Java help.

      _1. JAR File in specific path :_

           HelpSet objHelpSet = new HelpSet();

           String strPath = "file:" + "C:\\JavaHelp\\Help.jar";          

           String strHelpFileName = "Help.hs";

           URL objURL = new URL(strPath);
           Vector vecTemp.addElement(objURL);
           URL urlArray[] = new URL[vecTemp.size()];
           vecTemp.copyInto(objURLArray);

           objClassLoader = new URLClassLoader(urlArray);
           URL objURL = HelpSet.findHelpSet(objClassLoader, strHelpFileName);
           


      _2. JAR File in CLASS PATH :_

      HelpSet objHelpSet = new HelpSet();

      ClassLoader objClassLoader = SampleViewer.class.getClassLoader();          
      String strHelpFileName = "MedPlexus_Help.hs";

      URL objURL = HelpSet.findHelpSet(objClassLoader, strHelpFileName);



      How can i build URLClassLoader if i keep my JAR file in remote server?

      Please help me in this regard..

      Thanks
      KM