-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IkvmReference jar(s) to dll not working #519
Comments
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: 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;" Is this an error you're familiar with? It's the same one I get at execution of the sample project. |
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!
The text was updated successfully, but these errors were encountered: