Re: [Ikvm-developers] 7-zip-jbinding, with ikvm.exe, for C# / .NET
Brought to you by:
jfrijters
|
From: Elfen <pem...@gm...> - 2010-03-02 05:58:14
|
Well I don't even get as far as the errors you described... I tried the compile 2 jar's into 1 dll, but I must've done something different with the C# code or Visual Studio solution reference? Unhandled Exception: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Error loading SevenZipJBinding native library into JVM: error loading property file '/C:\ikvm_generated_7-zip-jbinding\sevenzipjbinding-Windows-amd64.jar/sevenzipjbinding-lib.properties' from a jar-file 'sevenzipjbinding-<Platform>.jar'. Is the platform jar-file not in the class path? [You may also try different SevenZipJBinding initialization methods 'net.sf.sevenzipjbinding.SevenZip.init*()' in order to solve this problem] http://sourceforge.net/projects/sevenzipjbind/forums/forum/757965/topic/3563492/index/page/1 On Mon, Mar 1, 2010 at 5:10 PM, Elfen <pem...@gm...> wrote: > Btw, the 7-zip-jbinding author has attempted a patch for this (see > http://sourceforge.net/projects/sevenzipjbind/forums/forum/757965/topic/3563492/index/page/1), which I will try soon. Another thing to mention is that the 2nd jar file > is really just a zip of the 6 native dll's (x86 & x64 for Windows, Mac OS X, > Linux). > > > > > On Sun, Feb 28, 2010 at 6:54 PM, Elfen <pem...@gm...>wrote: > >> Jeroen, thank you for the reply, >> >> Do you plan to include support for this CallIntMethod returns long JNI >> usage (or whatever it is), in a binary release in the near future? Or, will >> it be up to 7-zip-jbinding to get updated to work with ikvm.net? >> >> Sounds like if I want to avoid modifying source code for ikvm.net and >> 7-zip-jbinding, then I will have to pray for the fix from ikvm.net and/or >> 7-zip-jbinding O:-) >> >> thank you >> >> >> On Sun, Feb 28, 2010 at 7:43 AM, Jeroen Frijters <je...@su...>wrote: >> >>> 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 >>> > >>> >>> >> > |