将Scala文件转换为Dll [英] Convert Scala-Files into a Dll
问题描述
我已经尝试使用'ikvmc':我将所有的类都通过'package'包装在一个jar中。之后,我手动设置了一个包含我使用的所有依赖项(scala-library,scama,jamtio,jama)的jar。不幸的是,我收到很多警告:IKVMC0119,发出java.lang.VerificationError和IKVMC0104(类似于下面的例子)!
然后我试过使用上述方法转换一个简单的scala类(不依赖):使用sbt打包,添加scala-library.jar并尝试通过ikvmc -target:library simpleClass.jar进行转换。我获得相同的警告/错误如下所示...
如果有人可以给我一个分步说明如何提供我的Scala代码作为一个DLL,我会很高兴。
谢谢很多提前!
您使用哪个IKVM版本?
如果您已经使用了7.1,那么它似乎是一个IKVM的错误,请联系邮件列表或错误列表,并附上一份样本进行复制。
如果您使用旧的版本,那么你应该更新/ p>
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...
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!
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.
这篇关于将Scala文件转换为Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!