Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Nesting the library

Help
luthermyk
2006-10-02
2013-04-29
  • luthermyk
    luthermyk
    2006-10-02

    Hi,

    I'm trying to nest the library in an applet for viewing PDF documents. I've got problems when the library tries to access to sys/ directory. For example when Browser class tries to execute the following line:

    di = new DocInfo(URLs.toURI(getClass().getResource("/sys/Splash.html")));

    I get the following error:

    "Relative path in absolute URI: jar:http://localhost:8080/Smultivalent.jar!/sys/Splash.html"

    Can anyone give me any tip of this problem?

    Thanks

     
    • Hey there luthermyk,

      Just an idea, it may or may not work- try un-jar on the Multivalent library and then jar it back up again with your applet code before you reference it from your web page.  It sounds like the <applet> tag you are using in your page is not setting a proper path or something...  If you keep it all as a single jar file that should eliminate the problem I think.   Hope it works!