0 Replies Latest reply on Jun 3, 2012 7:27 AM by Jeff Yu

    Load JDK resource from module.xml file.

    Jeff Yu Master

      Hi all,

       

      I am trying to load an extra jdk resource (com/sun/image/codec/jpeg) from sun jdk in my module.xml file by adding following entry:

       

      {code:xml}  

      <dependencies>

              <system>

                 <paths>

                   <path>com/sun/image/codec/jpeg</path>

                 </paths>

              </system>

              <module name="org.apache.commons.codec"/>

              <module name="org.apache.commons.logging"/>

         </dependencies>

      {code}

       

      But it looks like it can't be loaded successfully. I am only getting the information from console that my module couldn't be loaded successfully, no other detailed error info.

       

      However, if I am adding  <path>com/sun/image/codec/jpeg</path>into the 'sun.jdk' module, and then add the 'sun.jdk' dependency in my module, that is working great.

       

      But I don't want to change the sun.jdk, how can we achieve this?

       

      Regards

      Jeff