0

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

Community
  • 1
  • 1

3 Answers3

2

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

Jeroen Frijters
  • 1,037
  • 8
  • 6
1

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.

Horcrux7
  • 23,758
  • 21
  • 98
  • 156
  • Please find a picture of the error message and command i am using at: http://uploadimage.co.uk/images/64641904662310269419.png. The version i am using is the latest from SourceForge(0.44.0.5). – user15198433 Dec 06 '10 at 09:12
  • EDIT: The version i am actually using is 0.45.3987 from ikvm.net – user15198433 Dec 06 '10 at 10:36
  • This look like a bug on a wrong use. The recurse parameter is for class files and not for jar files. Jar files can you simple add as separate parameter. See the docu at http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=Ikvmc – Horcrux7 Dec 06 '10 at 20:53
0

Try NFOP, it does not depend on IKVM.

Fábio Batista
  • 25,002
  • 3
  • 56
  • 68
  • 1
    Hi Fabio - Is NFOP still being actively developed? The last release i can find was 2008, i didn't go down the NFOP route because of this, i didn't want to use something which wasn't being supported and developed. Do you know what the status of this project is? – Jay Dec 04 '10 at 09:19