You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by nvtd4000 <nv...@gmail.com> on 2012/03/27 18:22:20 UTC

my bundle requires sun.misc (rt.jar)

In my bundle, i used sun.misc.BASE64Decoder. I also used maven-bundle-plugin
to generate MANIFEST.MF (in the import section, i saw my bundle imports
sun.misc package).
When i installed the bundle into serviceMix 4.3.0. It throwed an error
says:"Unable to resolve 334.0: missing requirement [334.0] package;
(package=sun.misc)".

I know that sun.misc package belongs to rt.jar and should be in classpath of
serviceMix.

how do i solve this problem.

--
View this message in context: http://servicemix.396122.n5.nabble.com/my-bundle-requires-sun-misc-rt-jar-tp5598274p5598274.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: my bundle requires sun.misc (rt.jar)

Posted by shri636 <sh...@evolvussolutions.com>.
Thank you very much ,its helped a lot

--
View this message in context: http://servicemix.396122.n5.nabble.com/my-bundle-requires-sun-misc-rt-jar-tp5598274p5650848.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: my bundle requires sun.misc (rt.jar)

Posted by nvtd4000 <nv...@gmail.com>.
Thanks a lot. It is working now.

--
View this message in context: http://servicemix.396122.n5.nabble.com/my-bundle-requires-sun-misc-rt-jar-tp5598274p5598508.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: my bundle requires sun.misc (rt.jar)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

You can edit etc/jre.properties, and for the corresponding JRE, add the 
sun.misc package. It should look like:

jre-1.6= \
  sun.misc, \
  javax.accessibility, \
  ...

Restart your ServiceMix, and you should have sun.misc in the exported 
packages:

karaf@root> package:export |grep -i sun
      0 sun.misc; version=0.0.0

Regards
JB

On 03/27/2012 06:22 PM, nvtd4000 wrote:
> In my bundle, i used sun.misc.BASE64Decoder. I also used maven-bundle-plugin
> to generate MANIFEST.MF (in the import section, i saw my bundle imports
> sun.misc package).
> When i installed the bundle into serviceMix 4.3.0. It throwed an error
> says:"Unable to resolve 334.0: missing requirement [334.0] package;
> (package=sun.misc)".
>
> I know that sun.misc package belongs to rt.jar and should be in classpath of
> serviceMix.
>
> how do i solve this problem.
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/my-bundle-requires-sun-misc-rt-jar-tp5598274p5598274.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com