ikvm

Java classes can't get the resources in JAR files that compiled with IKVM

我们两清 提交于 2019-12-06 08:47:32
I've converted a java library succesfully with ikvmc. Java library uses some resources inside its self jar file. I can reach all classes of this java library, but if I call a method that calls this.getClass().getResource(), it doens't search these resources in the assembly or the jar file in the assembly. But if I put these resources to same folder with the assembly, it can find the resources. But it doesn't work well everytime. For instance, it can't find the resources if I referenced the assembly in a website project(mvc). I tried to put these resources to bin folder, root folder, the view's

How to call a dll file from c#

喜你入骨 提交于 2019-12-06 05:52:09
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. 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 should be able to use the .dll more or less in the same way as you would with a "native" .NET code. If your java

How to get IKVM to build in Visual Studio 2008?

喜夏-厌秋 提交于 2019-12-05 05:21:37
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 am used to working with Java in Eclipse. So again, I'm looking for either: step-by-step instructions

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

末鹿安然 提交于 2019-12-05 02:11:53
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 to have the same format. Edit #2 Ouch. 7 views in 16 hours. :-) I have officially reached the fringes of

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

心不动则不痛 提交于 2019-12-04 22:42:08
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. The most Java programs run with IKVM (32 bit) a little faster as with Java SE. My test show 5-10% faster. That I think that MSIL code would be run slower with a HotSpot JIT. The next problem is that MSIL has many more

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

我是研究僧i 提交于 2019-12-04 19:17:29
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-scratchpad-3.8-20120326.dll poi-ooxml-3.8-20120326.jar ikvmc -target:library -resource:poi-3.8-20120326.dll

PDFBox - Building the latest version for .NET using IKVM

自古美人都是妖i 提交于 2019-12-04 17:49:46
I would like to build the latest version of PDFBox ( http://pdfbox.apache.org/userguide/dot_net.html ) for use within my .NET project. I have no experience with Java whatsoever but I am using the steps defined here: http://www.ikvm.net/userguide/tutorial.html I am using the following versions: - IKVM (0.42.0.6) - PDFBox (1.2.1) JAR file The problem is that when I try to create the DLL a series of error messages are displayed - i.e. "java.lang.NoClassDefFoundError". I am facing the same problem as the author here ( How to use PDFBox 1.0 in .net / C# environment using IKVM ) and tried the fix

Getting java.net.MalformedURLException in MonoDeveloper

情到浓时终转凉″ 提交于 2019-12-04 04:20:23
问题 Hey I am new to MonoDeveloper. I am trying to port libgdx code to iOS platform. My Libgdx code runs perfectly on desktop & Android phone. But when i run it on iPhone simulator with MonoDeveloper its giving me this error: Unhandled Exception: 0 iosgame [ERROR] FATAL UNHANDLED EXCEPTION: java.net.MalformedURLException: unknown protocol: file. 0x000e8932 mono_handle_exception_internal_first_pass + 3058 1 iosgame 0x000ea012 mono_handle_exception_internal + 1602 2 iosgame 0x000eab5f mono_handle

Generically read any file format and convert it to .txt format

痞子三分冷 提交于 2019-12-04 02:21:41
问题 I need to make sure that the file given by the user is converted to the .txt file if contains text, before any further processing. At the moment I have a switch statement checking for the specific formats and converting from those to the .txt format. switch (extension) { case ".pdf": //Convert from .pdf to .txt file break; case ".doc": //Convert from .doc to .txt file break; default: Console.WriteLine("The file could not be converted!"); break; } The problem is, I'd need something more

Using ApacheFOP v1.0 in .NET application

余生长醉 提交于 2019-12-03 18:55:07
问题 Has anyone successfully complied the Apache FOP v1.0 library to a .NET DLL? I am using the IKVM syntax found at http://onjava.com/pub/a/onjava/2004/08/18/ikvm.html; however, the compiled DLL seems to be incomplete. For example, I cannot instantiate FopFactory object as: using org.apache.fop.apps; namespace Utils { public class PdfRender { public void Render() { FOUserAgent foUserAgent = fop.getUserAgent(); FopFactory fopFactory = FopFactory.newInstance(); } } } 回答1: (Courtesy of the folks on