Any class can replace sun.misc.BASE64Encoder?

In my program i want encode something, so i use the sun.misc.BASE64Encoder . But according to the JDK documents, i should not call "sun.*" package. In my applet program the access control exception occurs with the sun.misc. I have to give up the sun.misc.BASE64Encoder .
Any other class replace BASE64Encoder that i can use?
Please help me.
Thank you very much!
coral9527

Read the whole page:
http://iharder.sourceforge.net/xmlizable/

Similar Messages

  • Where to find sun.misc.BASE64Encoder

    Hi!
    I'm not sure if this is the right forum but...
    I need to encode a string in Base64 but I don't know how.
    I found people using the class sun.misc.BASE64Encoder but I can�t find it.
    I suppose it is part of a package that is downloadable (i hope at least) but I don't know where to search.
    I don't need an automatic encoder really. I just want to encode a particular string. Is there another one-time-solution?
    Please help
    Kind regards
    /Stefan F�gersten, InfoGrator

    There are a number of free open source Base64 encoders. As a rule, you should not rely on classes in 'com.sun'. It's somewhat unfortunate that they didn't provide a Base64 encoder/decoder in the stock library, it's quite a common request.
    http://www.google.com/search?q=Java+Base64+Encode
    Good luck,
    -Derek

  • Import sun.misc.BASE64Encoder;

    Hi,
    Can we use "import sun.misc.BASE64Encoder;" library in java mapping?
    Thanks,
    Best Regards.

    Yes,you can.
    Check out the following blog for an example : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1015865250DB11252644827406985331End?blog=/pub/wlg/9793%3Fpage%3Dlast%26x-order%3Ddate
    Thanks,
    Pooja Pandey

  • Sun.misc.BASE64Encoder and JDK 1.4.1 for Unix

    I apologize for asking what seems like such a basic question in this forum, but my search for help with this issue has been unsuccessful so far.
    I developed a Java application under JDK 1.3.0 for Windows 9x/NT4 which uses sun.misc.BASE64Encoder in HTTP basic authentication transactions. It works as expected under JRE 1.3.0 for Win9x/NT. Now I'm running JDK 1.4.1 on Mandrake Linux 9.0. This same application throws "error:Cannot find type "sun/misc/BASE64Encoder".
    Do I need a JAR file that was not packaged with JDK 1.4.1 for Linux? Any ideas on how to get this working?
    Thank you,
    J. Davis

    It's working now.
    Thank you for reading.

  • JCS is not supporting sun.misc.BASE64Encoder().encode()

    Hi All,
    We were used sun.misc.BASE64Encoder().encode() in one of our products and its not supporting in JCS. This class is not mentioned in white list errors. We are able to deploy this product in cloud and whenever it executes the above method its throwing an error and it is "Error Message: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)". Please suggest work around for the above code.
    Thanks&Regards,
    Raghu

    Hi,
    Whitelist processing is our best effort to indicate what "will" work in Java Cloud Service. There are situations where we cannot definitively indicate if you are using an API that wont work on JCS. The runtime process is the source of truth. I have passed along this message to our development team. They will investigate and if possible introduce a warning in the whitelist in our next release. Thanks and I appreciate you pointing that out. This package is not supported in JCS.
    Thanks,
    -Anand.

  • Where to find sun.misc package???

    Hi everybody,
    I need to do uuencoding and read about appropriate classes within the sun.misc package. Regrettably I can't it.
    Any advice???
    Kind regards,
    Gunnar Osterode

    By the way, the sun.misc.* package is included in
    rt.jar, the Java runtime classes - these should always
    be available ... in the sun's implementation.
    http://java.sun.com/products/jdk/faq/faq-sun-packages.html

  • Req Help for  "warning: sun.misc.SignalHandler is Sun proprietary API "

    Hi All,
    I am getting the below exception when i am building the class. Please guide me and please provide any alternate solution for this.
    [javac] main\SignalHandler.java:35: warning: sun.misc.SignalHandler is Sun proprietary API and may be removed in a future release
    [javac] implements sun.misc.SignalHandler
    [javac] ^
    [javac] main\SignalHandler.java:69: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] public void handle( final sun.misc.Signal signal )
    [javac] ^
    [javac] auditlog\core\AuditLogFileWriter.java:26: warning: com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable is Sun proprietary API and may be removed in a future release
    [javac] public static Hashtable writingStatus=new Hashtable();
    [javac] ^
    [javac] ftpcommon\ftp\PasswordEnDecrypt.java:156: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac] return new sun.misc.BASE64Encoder().encode(enc);
    [javac] ^
    [javac] ftpcommon\ftp\PasswordEnDecrypt.java:182: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
    [javac] byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
    [javac] ^
    [javac] ftpcommon\main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
    [javac] ^
    [javac] main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
    Thanks & Regards,
    Rajeshwar
    Edited by: Rajeshwar_Java on Apr 27, 2009 5:31 AM
    Edited by: Rajeshwar_Java on Apr 27, 2009 5:32 AM

    as corlettk already told you: avoid those API whenever possible.
    Regarding your cases:
    * SignalHandler: proprietary API, there's not alternative. Use it if you must. Fail gracefully if it isn't there
    * Hashtable: seems like you simply picked the wrong one. Use the one in java.util
    * Base64 stuff: Plenty of free (BSD licensed) implementations out there, I'm sure there's one in commons-codec as well. Use those instead.

  • Is there any way to find out if an apple store can replace a macbook air battery whilst you are there before you go there?

    My MacBook Air has come up with the Service Battery warning and isn't holding charge as well as it used to.  I expect the battery needs replacing.
    How do I find out if an applestore can replace it there and then?
    I've been told I need to go online to book a genius appointment, and online the nearest apple store is one that can service macbook air laptops.  However, when I go online and select book genius appointment for mac at this applestore it says "There are no available appointments at this store".
    When I speak to apple on the phone, I am told, it is not possible to tell me on the phone whether apple stores have spare batteries or not for my macbook air.
    On Tuesday I may have time to go to this apple store (Liverpool) without a genius appointment, but not to the next city (Manchester Trafford Centre).  When I look for appointments at the Trafford Centre, the only available slot in the next 7 days is on Friday which I cannot do as I am not in the country.  It is not possible to book further forward.
    So, I really don't want to be going on a wild goose chase trying to find somewhere that can provide and fit a new battery.
    Any suggestions greatly appreciated as to how I can get a new battery fitted for my macbook air as soon as possible.
    As this is not a rant or complaint (my previous post was removed), I also would like to clearly provide the same constructive criticism as included in my previous post.  When the problem "Service Battery" is highlighted by the laptop, in this "connected world" we live in, I think excellent customer service would be being able to book a genius appointment from your laptop with 1 or 2 clicks and also to be able to buy and reserve a battery to be fitted there and then.
    As my macbook air is critical for my work and I used it 7 days a week, I really need to be able to replace on applecare customer service to fix this.  Thanks.

    call them, tell them you NEED a new battery installed, and they need to tell you when they can do it.  That is their job to help you! Give pushback if necessary.

  • I need Expert Decomposition of classes in Source Code for my reaserch purpose. Any body can help me in this regard?

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=698286&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I need Expert Decomposition of classes in Source Code of Firefox for my research purpose. Any body can help me in this regard?
    == This happened
    ==
    Not sure how often
    == Firefox version
    ==
    3.0.19
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
    == Plugins installed
    ==
    *-Default Plug-in
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *6.0.12.1662
    *Office Plugin for Netscape Navigator
    *Google Update
    *Shockwave Flash 10.1 r53
    *Yahoo Application State Plugin version 1.0.0.7
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    *Adobe PDF Plug-In For Firefox and Netscape
    *DRM Netscape Network Object
    *Npdsplay dll
    *DRM Store Netscape Plugin

    Please let me tell you that I Expert Decomposition may be of any Version of Firefox or Thunder Bird.

  • After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous peopl

    After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!

    kristinaf333,
    Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • Can I increase heap memory without specify any class or jar file??

    Hi,
    I tried to increase my heap memory in this way :
    java -Xms256m -Xmx256m
    but I got an error ... it's seem that I must specify a class java or a .jar file ...
    This is the error :
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
    show splash screen with specified image
    can I increase heap memory without specify any class or jar file??
    thx

    chiara wrote:
    Hi,
    I tried to increase my heap memory in this way :
    java -Xms256m -Xmx256m
    but I got an error ... it's seem that I must specify a class java or a .jar file ...
    This is the error :
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    can I increase heap memory without specify any class or jar file??The job of java.exe is to execute java bytecode.
    What is it supposed to do with your request to use 256m of memory for heap
    when you are not giving it a class or a jar to run?

  • Can I use any Class in a Use Bean Tag of a JSP

    I have tried to modify the existing EditForm.java file and created a new Class File which changes the presentation(render method)in the Edit Form.
    can I use the new class as a Bean in the use bean tag of a JSP.

    You can use any class as part of the useBean tag. If you want to add your class to the list of available webbeans, you can add it to <jdev dir>\teamplates\webbeans.xml.

  • Is there any shop in texas ,austin where we can replace an old ipod touch 3G and get a new ipod touch 4G ??

    Is there any shop in texas ,austin where we can replace an old ipod touch 3G and get a new ipod touch 4G ??
    pls help mee

    Sorry but I am pretty sure there isn't a shop which offers such a service.
    Apple stores offer a 14 day remorse period where you can return a purchase for a full refund without having to give a reason however this has probably expired - unless you bought from a different store with a similar system which you still happen to be within the time limit for.
    Your best bet would be to sell your iPod 3G and put the money towards a new one. If you are having trouble selling it an Apple store will take it and give you 10% off a new iPod.

  • Adobe flash player doesn't support OSX10.5.8 , and i can't watch any video. Please advice? Do i need to upgrade ? or any application to replace? Please.... million thanks!

    Adobe flash player doesn't support OSX10.5.8 , and i can't watch any video. Please advice? Do i need to upgrade ? or any application to replace?
    Please HELP.... million thanks!

    Do you have a PPC G5 Mac or an Intel Mac?

  • Recently Iam purchased a Iphone from U.S, but iam residing in India, so can any body tell me in india how can i get support as my phone charger is not working from where in india i can replace i

    Recently Iam purchased a Iphone from U.S, but iam residing in India, so can any body tell me in india how can i get support as my phone charger is not working from where in india i can replace it

    gosharma wrote:
    What if we have Applecare? Applecare is worldwide. Isnt it?
    Not on an iPhone.

Maybe you are looking for

  • Verizon and it's lack of custoemr focus.

    I have had one of the most difficult and frankly worst customer experience with verizon I can recall in recent history. I have compliand several times about my verizon locking up and needing to rebooted at least 2 or 3 times a day. If the modem does

  • Hyper-V won't install on x64 Windows 8.1 Pro

    I can't seem to get Hyper-V installed. I am running Windows 8.1 Pro 64 Steps to reproduce: 1. Add/Remove Features 2. Add Hyper-V, and all subsets 3. Click OK. 4. Click Restart when prompted. 5. Computer will reboot and then work on configuring featur

  • [solved] hostapd and Assigning IP to Wireless Interface.

    I am using a raspberrypi as a portable WiFi hotspot. This has been working fine until a recent update and I am not sure why it is broken. I have a service that assigns and IP address to the wlan0 interface before hostapd starts: [Unit] Description=Ad

  • Working with Standaard Report

    hi ABAPERS, i have a query, there is a TCODE FBL5N (Customer Line Item Dispaly), there i have to pick two fields Reference key1(XREF1) & Reference Key2(XREF2)... and i need to place them in FD10NA (Customer Balance Display) TCODE.... is it possible t

  • Images in attachments

    When I receive catalogs and info in email attachments there aren't any pictures of merchandise. All there is is small icon with a question mark in it. Al G5   Mac OS X (10.4.7)