ikvm

libgdx on ios GdxRuntimeException couldn't load file

不羁岁月 提交于 2019-12-11 19:19:31
问题 I decided to move my application from Android to iOS. Application use libgdx library. I generated ios subproject using libgdx and opened it using Xamarin Studio. All images are linked from my-project-android/assets/data. All images have set build Action > content. Now every time when run project from xamarin studio i get GdxRuntimeException Coldn't load file: data/background.png. This file is the first image which i load in my application. All operation i have done on my mac both with

Converting a Scala library to a DLL (.NET)

给你一囗甜甜゛ 提交于 2019-12-11 01:56:25
问题 I'm trying to create a Dll out of a scala-class. I'm using IntelliJ together with SBT. I've already found a way to convert .jar files into a Dll, using the ikvm-converter. Now the problem: When I use "package" under SBT to create a .jar file out of my .scala file and try to convert it afterwards with ikvmc into a Dll the resulting library is empty when integrated in C#... For example converting the Jama-Library (which is written in Java) works fine, where converting Scama (written in Scala)

Convert Scala-Files into a Dll

时光毁灭记忆、已成空白 提交于 2019-12-10 14:35:51
问题 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

How to call a dll file from c#

谁都会走 提交于 2019-12-10 10:43:47
问题 I am trying to call a dll file from c# The dll file is made from a java application using ikvm and for now all the code does is print hello world. How do i call the dll file in my c# code and is it possible to create an application in java that will return a boolean value to my c# code? Thanks for your time. 回答1: I'm not sure I understand what you're trying to do, so apologies if I'm misreading. IKVM should translate your java code to a .NET dll or executable. After the "translation" you

How to get IKVM to build in Visual Studio 2008?

笑着哭i 提交于 2019-12-10 04:20:58
问题 I've downloaded the IKVM sources (http://www.ikvm.net/) from http://sourceforge.net/cvs/?group_id=69637 Now I'm trying to get it to build in Visual Studio 2008 and am stuck. Does anyone know of documentation of how to build the thing, or could even give me pointers? I've tried opening the ikvm8.sln, which opens all the projects, but trying to build the solution leads to a bunch of "type or namespace could not be found" errors. As you can probably guess I'm no Visual Studio expert, but rather

What is the format of the Remap XML file for IKVM?

那年仲夏 提交于 2019-12-10 02:16:14
问题 In this article Jeroen explains an example of using an XML file to remap Java Bean getters and setters to .NET Properties. What would the XML file look like if I wanted to, say, remap a Java method called showDialog() to ShowDialog() in .NET? Has anyone worked with the remapping option before? Any idea where to get information on how it works other than inspecting the remapper.cs source code? Edit #1 - Found something that definitely helps a bit: the map.xml file in the OpenJDK folder seems

Serializing a IKVMC generated object to JSON

六月ゝ 毕业季﹏ 提交于 2019-12-08 06:19:08
问题 I have a java library that contains all the domain models for our backend REST API. The backend API is implemented in Java and translate Java objects to JSON using Jackson. Recently we need to implement a new feature and have a Windows .NET application talk to our API. However, since the domain model (contract) is all in Java, we had to translate all the Java classes to C# classes so that we can use Json.NET to serialize/deserialize JSON, but this quickly became time-consuming. In addition,

Is there a IKVM for Java? Can I run .NET assemblies on a JVM?

℡╲_俬逩灬. 提交于 2019-12-06 18:42:27
问题 IKVM is an amazing beast that lets me execute Java jars in a .NET environment. That is, it's a JVM written on the .NET runtime (CLR). Does the opposite exist? Has someone written a CLR on top of a JVM? With suitable translation and base class library implementation, we might find .NET code executes more quickly in an aggressive JIT compiler, like HotSpot, than in the CLR JIT. 回答1: The most Java programs run with IKVM (32 bit) a little faster as with Java SE. My test show 5-10% faster. That I

Serializing a IKVMC generated object to JSON

笑着哭i 提交于 2019-12-06 14:51:10
I have a java library that contains all the domain models for our backend REST API. The backend API is implemented in Java and translate Java objects to JSON using Jackson. Recently we need to implement a new feature and have a Windows .NET application talk to our API. However, since the domain model (contract) is all in Java, we had to translate all the Java classes to C# classes so that we can use Json.NET to serialize/deserialize JSON, but this quickly became time-consuming. In addition, whenver there is contract change in Java we likely have to do this for C# classes also. I searched

Convert Apache POI .jar to .dll using IKVM.Net

我们两清 提交于 2019-12-06 13:55:23
问题 I'm trying to convert Apache poi .jar to .dll . I used the script below to convert. However I'm getting lot of warnings and error Invalid option -resource:poi-3.8-20120326.dll after that. Here's the script i used. ikvmc -target:library poi-ooxml-schemas-3.8-20120326.jar ikvmc -target:library poi-3.8-20120326.jar ikvmc -target:library -resource:poi-3.8-20120326.dll poi-scratchpad-3.8-20120326.jar ikvmc -target:library -resource:poi-3.8-20120326.dll poi-ooxml-schemas-3.8-20120326.dll poi