Found this gem that should save a lot of time:
sudo sh -c ‘echo sun-java6-jre shared/accepted-sun-dlj-v1-1 select true | /usr/bin/debconf-set-selections’; sudo apt-get install —yes sun-java6-jre;
http://www.davidpashley.com/blog/debian/java-license
Discussing application development and other interests, including guitars, graphics, and video games.
sudo sh -c ‘echo sun-java6-jre shared/accepted-sun-dlj-v1-1 select true | /usr/bin/debconf-set-selections’; sudo apt-get install —yes sun-java6-jre;
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative;
MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap();
mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain");
mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html");
mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml");
mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true");
mc.addMailcap("message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822");
CommandMap.setDefaultCommandMap(mc);
DataContentHandler dhmm = new com.sun.mail.handlers.multipart_mixed();
DataFlavor[] dtf = dhmm.getTransferDataFlavors();
for (DataFlavor tmpdf : dtf) {
log.debug(" isSupported? " + tmpdf.getMimeType() + ":" + message.getDataHandler().isDataFlavorSupported(tmpdf));
}
isSupported? multipart/mixed:true// There is an issue in the OSGi framework preventing the MailCap
// from loading correctly. When getting the session here,
// temporarily set the ClassLoader to the loader inside the bundle
// that houses javax.mail. Reset at the end.
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
try {
// Set the ClassLoader to the javax.mail bundle loader.
Thread.currentThread().setContextClassLoader(javax.mail.Session.class.getClassLoader());
...
} finally {
// Reset the ClassLoader where it should be.
Thread.currentThread().setContextClassLoader(tcl);
}
Java::ComSunMessagingJmqJmsclient::TextMessageImpl).message = deserialize(message.getText())