[Ikvm-developers] using ikvm within the context of a dll: java.lang.ClassCastException: Unable to c
Brought to you by:
jfrijters
From: Oliver E. <oli...@ah...> - 2016-04-29 13:23:41
|
hi first thanks for that cool product, we are using it with ehealthconnector project to provide a .net api, see https://sourceforge.net/projects/ehealthconnector/ but I have a slight problem ... - i have a jar (ehc.jar) converted to a dll with ikvmc (ehc.dll) - when i use the dll within a visual studio .net project and create an executable (ehcdemo.exe) with references to ehc.dll and IKVM.OpenJDK.*.dll the program runs through ehcdemo.exe |---------ehc.dll |---------IKVM.OpenJDK.*.dll - when i try to create a dll instead of the ehcdemo.exe and use that dll (ehcdemo.dll) in my app.exe program i get a java.lang.ClassCastException: Unable to cast object of type 'java.util.PropertyResourceBundle' to type 'sun.util.resources.OpenListResourceBundle'. app.exe |---------ehcdemo.dll |---------ehc.dll |---------IKVM.OpenJDK.*.dll I can fix above exception if i add all IKVM.OpenJDK.*.dll references directly to my app app.exe |---------IKVM.OpenJDK.*.dll |---------ehcdemo.dll |---------ehc.dll |---------IKVM.OpenJDK.*.dll however I would like that app.exe has no references directly to the IKVM.OpenJDK.*.dll. Is that possible? If you would have any pointers where to start looking for a solution I would appreciate it very much! I'm not that much a .NET Person so please excuse me if my question is out of topic for ikvm. Best regards Oliver -- oliver egger mobile: +41765795005 email: oli...@ah... twitter: @oliveregger <https://twitter.com/oliveregger> http://www.ahdis.ch/ ahdis gmbh agile health data information systems bertastrasse 4 8003 zürich switzerland -- oliver egger mobile: +41765795005 email: oli...@ah... twitter: @oliveregger <https://twitter.com/oliveregger> http://www.ahdis.ch/ ahdis gmbh agile health data information systems bertastrasse 4 8003 zürich switzerland |