jdic
  1. jdic
  2. JDIC-428

JDIC can't work as JavaApplet over remote mode

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      428

      Description

      Java applet will not handle JDIC native stuffs,which will cause JDIC can't
      run.We need provide ways to install them over the net when running in remote model.

      1. jdicApplet.html
        0.3 kB
        michael_shan

        Activity

        Hide
        michael_shan added a comment -

        Change the title.

        Show
        michael_shan added a comment - Change the title.
        Hide
        michael_shan added a comment -

        Fixed this issue.

        Reason:
        JDIC needs put native stuffs(native libs,native executable files) to path. When
        run in applet remote mode, JDIC is downloaded into user's local machine,while,it
        can't locate native stuffs,so causes this bug.

        Fix:
        Use Java extension way, applet supports optional packages((refer
        http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/extensions.html
        for more details)).For an applet which uses JDIC, first set its extension to
        jdic.jar and jdic_native.jar(for os specific versions,for ex windows)
        jdic_crossplatform.jar for cross platform version (attention here,names of
        jdic_native.jar and jdic_crossplatform.jar are unchangeable,you should package
        them as those names),then set manifest properties of jdic.jar and sign it and
        set manifest properties of jdic_native.jar or jdic_crossplatform.jar and sign
        them. Now,deploy your app with jdic jars,which will be installed into your jre's
        ext folder,then jdic will unpack jars and set native stuffs correctly,then
        everything will work well.

        Show
        michael_shan added a comment - Fixed this issue. Reason: JDIC needs put native stuffs(native libs,native executable files) to path. When run in applet remote mode, JDIC is downloaded into user's local machine,while,it can't locate native stuffs,so causes this bug. Fix: Use Java extension way, applet supports optional packages((refer http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/extensions.html for more details)).For an applet which uses JDIC, first set its extension to jdic.jar and jdic_native.jar(for os specific versions,for ex windows) jdic_crossplatform.jar for cross platform version (attention here,names of jdic_native.jar and jdic_crossplatform.jar are unchangeable,you should package them as those names),then set manifest properties of jdic.jar and sign it and set manifest properties of jdic_native.jar or jdic_crossplatform.jar and sign them. Now,deploy your app with jdic jars,which will be installed into your jre's ext folder,then jdic will unpack jars and set native stuffs correctly,then everything will work well.
        Hide
        michael_shan added a comment -

        Created an attachment (id=252)
        Sample stuffs for JDIC to run with applet.

        Show
        michael_shan added a comment - Created an attachment (id=252) Sample stuffs for JDIC to run with applet.
        Hide
        michael_shan added a comment -

        Created an attachment (id=253)
        The html file for the applet to work.

        Show
        michael_shan added a comment - Created an attachment (id=253) The html file for the applet to work.
        Hide
        uta added a comment -

        Fixed in JDIC 0.9.5

        Show
        uta added a comment - Fixed in JDIC 0.9.5

          People

          • Assignee:
            michael_shan
            Reporter:
            michael_shan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: