5

I have some scala code I've written using IntelliJ with the SBT-Plugin and want to provide me code as an DLL for C++.

I already tried to use 'ikvmc': I packed all my classes via 'package' in one jar. Afterwards I manually set up one jar which contains all the dependencies I use (scala-library,scama,jamtio,jama). Unfortunately i obtain a lot of warnings:'IKVMC0119', "Emitted java.lang.VerificationError' and 'IKVMC0104' (analogously to the example below)!

Then i tried to convert a simple scala-class (no dependencies) using the method described above : package with sbt, add the scala-library.jar and try to convert it via ikvmc -target:library simpleClass.jar . I obtain the same warnings/errors as you see below... enter image description here

I would be very happy if someone could give me a step-by-step explanation how to provide my Scala-code as an DLL.

Thanks a lot in advance!

om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
user1537137
  • 121
  • 5

2 Answers2

2

Which IKVM version do you use?

If you already use 7.1 then it sounds like a bug in IKVM. Contact the mailing list or the bug list with a sample for reproduction.

If you use an older version then you should update.

Horcrux7
  • 23,758
  • 21
  • 98
  • 156
  • I use the latest version of IKVM which is '7.1.4532.2'. I use Scala 2.9.2 and SBT 1.0. I now converted my hello.jar (only dependeny is the scala-library.jar) with IKVMC '7.0.4335.0' and I obtain completely different warnings as with version 7.1.: IKVMC0100 'class not found', IKVMC0105 'missing class', IKVMC0100 'class not found', IKVMC0111 'java.lang.NoClassDefFoundError'. – user1537137 Dec 05 '12 at 08:09
  • Please post this on the mailing list of IKVM or open a bug ticket. – Horcrux7 Dec 05 '12 at 16:27
1

After converting the hello.jar with the previous version of IKVM ('7.0.4335.0') i could use the dll in c# (even though i obtained warning from ikvmc). It also worked for my Scala code: converting the sbt-packaged jar with its dependencies delivered a dll. Afterwards i could use the classes in c#!

user1537137
  • 121
  • 5