Re: [Ikvm-developers] 7-zip-jbinding, with ikvm.exe, for C# / .NET
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2010-02-28 13:57:32
|
Hi, As Volker said, you should combine both jars (I used "ikvmc -out:7zip.dll *.jar"), but doing that still doesn't result in something that works. On x64 I get a stack overflow (I didn't look into this) and on x86 it failed because sevenzipjbind uses JNI in a way that isn't supported by IKVM (and what I believe to be in violation of the spec). They use CallIntMethod to call a method [1] that returns a long. After I added a workaround for that to IKVM (just for testing this), your sample worked (i.e. I could print the number of entries in a RAR). Regards, Jeroen [1] long net.sf.sevenzipjbinding.impl.RandomAccessFileInStream.seek(long, int) > -----Original Message----- > From: Elfen [mailto:pem...@gm...] > Sent: Sunday, February 28, 2010 11:55 AM > To: ikv...@li... > Subject: [Ikvm-developers] 7-zip-jbinding, with ikvm.exe, for C# / .NET > > I compiled 7-zip-binding's sevenzipjbinding.jar and sevenzipjbinding- > AllPlatforms.jar, using ikvmc.exe. However, I got run-time errors when > I tried to use these dll's in a C# application. Any leads on what I'm > missing? > > More info is here: > http://sourceforge.net/projects/sevenzipjbind/forums/forum/757965/topic > /3563492/index/page/1 > > thank you for any leads / ideas > |