Open ThatCanadianGuy opened 7 months ago
Check the build output. Might need to look in the cache directory in $temp/ikvm
Thanks for the response! Looking at that path I'm seeing the following log file in the version with all the compiles from my original issue: EpubCheckInternal.dll.log
I notice there are some class not found items, though the interesting one is this:
ERROR: warning IKVMC0119: Emitted java.lang.VerificationError in "com.google.common.collect.RegularImmutableMap.fromEntryArrayCheckingBucketOverflow(I[Ljava.util.Map$Entry;Z)Lcom.google.common.collect.ImmutableMap;" ERROR: ("Incompatible object argument for function call (class: com.google.common.collect.RegularImmutableMap, method: fromEntryArrayCheckingBucketOverflow, signature: (I[Ljava.util.Map$Entry;Z)Lcom.google.common.collect.ImmutableMap;, offset: 204, instruction: invokevirtual)")
Is this an error you're familiar with? It's the same one I get at execution of the sample project.
https://github.com/ikvmnet/ikvm/issues/318
Seen it before. Status is the same though, haven't dug into it.
I am trying to use IKVM in combination with a W3C library called "epubCheck" (the release found here: https://github.com/w3c/epubcheck/releases/tag/v5.1.0). It unzips into basically a jar file and a lib folder of many jar file dependencies. It can be used against an ePub file to get syntax issues etc.
In the sample project linked below, the following command works fine:
java -jar .\IKVMTest\epub\epubcheck.jar 'IKVMTest\Book of Cheese.epub'
I've been using a
<TargetFramework>net8.0</TargetFramework>
project to attempt to use this library within .NET. Unfortunately, when I attempt to run the project (Program.cs) which is meant to load the included Epub file and validate it, the program throws the following:My IkvmReference inclusion for the csproj is as follows:
I put all the lib files into compile hoping that keeping them in the single DLL would sort out what seems to be a reference problem, but no dice. Not having them there also fails right away unsurprisingly.
I also tried importing separate IkvmReference entries for each of the lib folder jars and set all of them as
<References>
to the main jar file, but my error changes to this:I've attached the alternate IkvmReferences for the above. AlternativeIkvmReference.txt
I'm not quite sure at this point what I could be doing incorrectly. The instructions in the README seem pretty straightforward but it's certainly blocking.
The minimal test project can be found here (OneDrive as the project is 30MB which is > the 25MB limit for github) : https://1drv.ms/u/c/1db177f83744cbe2/EcfVt1Vfi_xPs_6ESJLVprEBlAOVk9UF6H4bda-3SqhDLg?e=oZfN4J
Any support would be greatly appreciated!