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

Similar Messages

  • 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

  • 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.

  • 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

  • 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/

  • Any idea where I can find sun.tools.java.Constants ?

    I've been playing around with all that syntax highlighting nonsense which seems to be a rite of passage around here. I came across the Sun version but they assume I know where to find
    sun.tools.java.Constants
    which, of course, I don't. Any ideas on where I can get this class?

    Thanks. I thought I'd looked there... still, only three bucks. Mind you, that example still isn't working.

  • 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.

  • ClassNotFound Exception Traced to sun.misc.Launcher

    ARGH!!!
    Does anyone know where I can find the source for sun.misc.Launcher? I did find a version dated 1.26 00/02/07. But I think thats the 1.3 version. I need the source to track my bug... Help me...

    You shouldn't need the source of this, travel upthe
    call stack until you reach your own code is.That
    will be the bug....
    Interesting statement, this assumes that any code in the sun namespace is error free...
    The funny thing is that if I execute the same code in 1.4 it works fine, go to 1.4.2 and it breaks, th eonly difference is the JDK. More wierdness, if the stubs and skels that would normally be created at runtime are pregenerated with 1.4 and then the app is run in 1.4.2 it works fine, pregen the files with 1.4.2 and run it in 1.4.2 and it fails... So again I ask, Does anyone know where to get the code for sun.misc.Launcher?

  • Where 2 find java file that implements the subscription email notification?

    Hello KMC Gurus,
    I saw a reply of Patricio linking to an article relating to "How to customize mail notifications?".
    In that article I was able to see how to change the XML & XSL files and their locations.
    Can anybody tell me where to find this java/class file relating to this mail notifications?
    FYI, the link to the article is as below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/90626697-0901-0010-2ca7-86e2a50ce70d
    Author is Darin Krasle.
    best regds,
    Vedu

    I've just installed JAVA into my computer.
    Then I found a folder called "Java 1.4.2 SDK" or
    something like that. but in the folder there wasn't
    any .exe file to run JAVA, os i would like to know how
    do i run JAVA after i installed it?
    Also i am runnung Java in Windows XP with SP1
    I think those information might help.Follow this link and do what it says. Generally, you do not need an IDE to run java, just a text editor and a DOS prompt :)
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Alpha

  • Where to find docs for JVM parameters for JDK 1.4?

    Can somebody tell me where to find a complete documentation for JVM parameters for jdk 1.4?
    Thanks in advance

    Start here:
    Performance Documentation for the Java HotSpot VM
    http://java.sun.com/docs/hotspot/
    One of this documents you will find there is:
    JavaTM HotSpot VM Options
    http://java.sun.com/docs/hotspot/VMOptions.html
    Hope this helps.

  • IWS6.0 WHERE TO FIND SUPPORTED STANDARDS???

    Hello everybody.
    I'm searching the supported versions for different standars in Iplanet Web Server 6.0, like jsp, JavaMail, JDBC, JTA, JCA,JavaBean, Servlets ...
    Anybody knows where to find all these specifications??
    Thank you very much!!

    The Features and Benefits pages answers some of these information: http://wwws.sun.com/software/products/web_srvr/features.html
    Java Servlets 2.2
    JSP 1.1
    JDK 1.2.2/1.3.1
    The web server is not a complete J2EE container. You can't run EJBs on it. I also don't think that it supports JTA or JCA, but I could be wrong about that.

  • Compiling Invocation Programs ? Where to find javai.lib ??

    Hello,
    I'm having J2SE 1.4, VC++ 4.0. I'm trying to compile the invocation programs given in the Java Tutorial but I'm unable to compile since I've not found javai.lib in my J2SE folder. Can anyone help me on how to compile. Where to find javai.lib ??
    Thanks
    Wah Java!

    The javai.lib/dll have been replaced by jvm.lib/dll
    since Java2 SDK 1.2. The javai.lib is in the "lib"
    directory of your JDK installation. Note that the
    invocation API has also changed, and you will probably
    need to update the method calls. See the JNI spec at
    http://java.sun.com/j2se/1.4/docs/guide/jni/spec/jniTOC
    doc.html.As you've said, I compiled the program and linked with jvm.lib but VC++ said that jvm.lib is incorrect file (or you can say corrupt file). Can you please help me how to compile with JVM.lib
    Thanks in advance,
    Ashish Shukla
    Wah Java!

  • Sun.misc.HexDumpEncoder.encodeBuffer  alternative in java se 6

    Hello all,
    One of my application used following code which is developed in java 1.2.2 but now we are migrating this application to java se 6 where the following code is depracted.
    sun.misc.HexDumpEncoder.encodeBuffer
    Can any one guide for the above code replacement in java se 6
    Thanks & Regards,

    javaHelp wrote:
    i wanted to ask that:
    is currently java se 6 has any new api for this code?The sun packages are not part of the public api.
    From [http://java.sun.com/products/jdk/faq/faq-sun-packages.html|http://java.sun.com/products/jdk/faq/faq-sun-packages.html]
    The java.*, javax.* and org.* packages documented in the Java 2 Platform Standard Edition API Specification make up the official, supported, public interface.
    If a Java program directly calls only API in these packages, it will operate on all Java-compatible platforms, regardless of the underlying OS platform.
    The sun.* packages are not part of the supported, public interface.
    A Java program that directly calls into sun.* packages is not guaranteed to work on all Java-compatible platforms. In fact, such a program is not guaranteed to work even in future versions on the same platform. If that does not answer your question, re-read reply 6.

  • Package sun.misc

    hi
    where do i download the package / jar file sun.misc
    Thnx in advance
    Vinodh

    Please read this first ("Why Developers Should Not Write Programs That Call 'sun' Packages")
    http://java.sun.com/products/jdk/faq/faq-sun-packages.html
    By the way, sun.misc package is available in rt.jar, like the java.lang package, and does not require any special parameters to javac. The source for sun.misc package can be perused in src.jar and you can generate the javadocs for that source files using the javadoc tool.

Maybe you are looking for

  • Line item report on secondary cost element (cat - 21)

    Hi Gurus, Secondary cost element with category 21 is used for internat settlement from order to wbs or wbs to cost center. But can we see line item report on this cost element. Or we cannot see any line item report on this cost element. it is just us

  • Printing of Depot Excise Invoice

    Hii, I have created a depot invoice through J1IJ. Can you all please let me know from where I could take the print of this invoice. Regards Ritam

  • What to do when Iphone 4 is stuck on connect to itunes screen?

    Please Help! I unplugged my Iphone 4 from the computer and a screen showing me to connect to itunes showed up. It has been stuck on that screen for hours and after showing the message for a couple of seconds, the phone turns off by itself. If I click

  • I cannot save data on a pdf on my tablet since most recent update

    I use Adobe reader on my Galaxy Note 8 to do audits. I fill in with forms with stylus. Since the update I cannot save any data to forms. The "Save" button, previously in upper right hand corner of screen, is gone. There is only a check mark on the sc

  • Itunes registry errors

    Registry error in my itunes and I have tried to reinstall a number of times and it doesn't fix it.