[Ikvm-developers] IKVM 0.36 and javamail
Brought to you by:
jfrijters
|
From: Valdemar M. <Val...@la...> - 2008-01-23 12:54:16
|
Hi,=20
I'm having trouble using javamail with IKVM in 0.36. I've used ikvmc to
create a dll from the javamail jar and reference it in a C# .NET
project.=20
I execute the following:=20
// read multipart email message from file
FileInputStream in =3D new FileInputSTream("message.eml");
MimeMessage message =3D new MimeMessage(Session.getInstance(new
Properties()), in);
// parse content into a multipart object
MultiPart multiPart =3D (MultiPart) message.getContent();
The last line throws an UnsupportedEncodingException. This seems to be
because the ikvmc:ed javamail does not find/read the mailcap-file when
running in .NET. The mailcap-file normally resides in the META-INF
directory in the javamail jar file.=20
This seemed to work using IKVM 0.34.=20
Is there a way to make javamail find and read the mailcap-file when
running in .NET?
Regards,=20
Valdemar
|