Two Laptop Bag
The moose likes JSP and the fly likes Propietary api class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Propietary api class" Watch "Propietary api class" New topic
Author

Propietary api class

Joseph Smithern
Ranch Hand

Joined: Feb 11, 2006
Posts: 89
In my Tomcat 6.0.20 container I am using sun.misc.BASE64Encoder to get NTLM Intranet username and everything works. Unfortunately I get the below warning message after I compile the class.

It seems the sun.misc.BASE64Encoder is Sun proprietary API and is available from the rt.jar? I was wondering if I should put the rt.jar in my web app lib folder (\WEB-INF\lib) just in case it is removed from the jvm in the future?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

I would not. As has been evidenced in many posts reporting arcane errors, mucking around with the class loading of Java and container classes is like painting a big red target on your chest.

I'd either find an alternate API, or worry about it when it actually becomes a problem.






[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Propietary api class
 
Similar Threads
Where can I download a jar that has sun.misc.BASE64Decoder
remove warning for XMLSerializer class
How to Generalize the code?
Java sound: how to play a file?
175: warning: BASE64Encoder is internal proprietary API and m ay be removed in a future release