0
votes

I am trying to compile the Apache FOP v1.0 library to a .NET DLL. I followed the instructions in: Using ApacheFOP v1.0 in .NET application

However when i run the ikvmc command i get a number of warnings (which i can live with), and then an error:

System.ArgumentException: An Item with the same key has already been added.

Can anyone point me in the direction of how to fix this? Any help on this will be greatly appreciated.

Thanks Jay

3

3 Answers

2
votes

This is an ikvm regression in the development snapshot caused by the unnecessary -reference:IKVM.OpenJDK.Core.dll. If you remove that it should work, but like Horcrux7 pointed out, -recurse is not intended to be used like this either. So you can simply do:

ikvmc D:\fop\build*.jar -version:1.0 -out:D:\fop\fop.dll

1
votes

Which warnings do you receive? See the ikvmc error messages. For the exception you should give us the stacktrace and what you do as the exception occur. Also should you write which ikvm version do you use.

0
votes

Try NFOP, it does not depend on IKVM.