ikvm

IKVM and Licensing

Hi all. I have been looking into IKVMing Apache's FOP project to use with our .NET app. It's a commercial product, and looking into licensing, IKVM runs into some sticky areas because of its use of GNU Classpath. From what I've seen, no one can say for sure if this stuff can be used in a commercial product. Has anyone used IKVM, or a...

BufferedImage in IKVM

What is the best and/or easiest way to replace the missing BufferedImage functionality for a Java project I am converting to .NET with IKVM? I'm basically getting "cli.System.NotImplementedException: BufferedImage" exceptions when running the application, which otherwise runs fine. ...

How to get IKVM to build in Visual Studio 2008?

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 tr...

Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory

Hey guys, I'm trying to get IKVM to build (see this question) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (from the Start Menu), I get the following error: ikvm-native-win32: [c...

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

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 ho...

ASP.NET application breaks when deploying to IIS

Hello everybody, I am developing a small ASP.NET website for online shopping, when testing it out in Visual Studio, everything works fine, however that is no longer the case when I deploy it to IIS. The problem seems to be in a DLL file that I reference, this DLL file contains the Classes I need to initialize and send query requests to ...

.NET equivalent or alternative to Java's GlyphVector?

I'm in the process of porting a Java program to .NET using IKVM. Unfortunately IKVM's Graphics2D implementation throws a NotImplementedException in drawGlyphVector, i.e. it needs to be "fleshed out" with a .NET implementation (or by reducing it to calls of other IKVM Graphics2D methods which are implemented). Any ideas for an equivalent...

IKVM and System.Core System.Runtime.CompilerServices.ExtensionAttribute

I'm using the latest release of IKVM to "compile" a Java .jar file into a .NET DLL. That all worked fine, and now I'm trying to reference the DLL in a .NET 3.5 C# project. In my C# project, I've created an static "StringExtensions" class with an extension method on string. For some reason this seemed to work yesterday, but today, I'm ...

Castor and IKVM

I've converted an api written in Java into a .net dll using IKVM, and so far it's been good. It basically uses xml behind the scenes to access some web services. The api is 3rd party, and I have no access to the source code. The api uses Castor to (I believe) bind xml into objects. However, when I started to use some of the more usef...

Problems with class loading during deserialization of type from another assembly

There are two assemblies: 1) Assembly containing serializer. This is a place from where serialization and deserialization starts. 2) Assembly containing serialized types. This is a place which is calling serializer from 1st assembly. The idea of serializer in assembly1 is simple. It has two methods which are used for conversions of objec...

JSP compiler and IKVM

Did anybody try to compile some JSP compiler into .NET assembly using IKVM? My point is that I'm trying to port an application from JSP (just pure JSP pages, but lots of them) into .NET and I'd like to make the first spike using IKVM-compiled JSP compiler to get it up and running in as little time as possible. Matthias. ...

Doesn't IKVM.net support generics (type parameters)?

I statically recompiled a Java lib which used generics a lot, like Collection<?>, but the emitted .NET dll only uses Collection, not with type parameters. How come? ...

What is IKVM.Runtime, and why is it killing intelisense?

I have a website sitting on a mapped network drive. The <%@ Page Language="C#"... tag in the markup files are all underlined with blue. The error I get is "could not load file or assembly 'IKVM.Runtime...." Beyond that Intelisense does not function for code inside <% %> blocks. The intelisense for the normal markup still works. Any ...

Extracting text from a PDF file.

I'm using PDFBox for a C# .NET project. and I'm getting a "TypeInitializationException" (The type initializer for 'java.lang.Throwable' threw an exception.) when executing the following block of code : FileStream stream = new FileStream(@"C:\1.pdf",FileMode.Open); //retrieve the pdf bytes from the stream. byte[] pdfbytes=new byte...

Setting JVM parameters at runtime

Is it possible to change/modify/adding VM parameters after the JVM is already loaded (running)? If so, how can I do it? ...

IKVM exe as a Service

How could I run my IKVM compiled exe as a Windows Service? Should I write a Wrapper Service to it? Is there already anything to do this? Thanks ...

JasperReports in .Net over IKVM

...

SVNException unable to rename file when using SVNKit in a ikvmc-ed library in C#

Hi, I used ikvmc to compile svnkit to a C# (dll) library and linked it as a reference to my project. I tried a proof of concept code to checkout: public void checkOut(Dictionary<string,List<object>> tokens) { string url_str = (string) tokens["checkout"][0]; setupLibrary(); java.io.File path = new ja...

How to use PDFBox 1.0 in .net / C# environment using IKVM

Id like to use PDFBox to generate PDF highlight files in my .net project. PDFBox states that it can be used in .net via IKVM http://www.pdfbox.org/userguide/dot_net.html BUT running ikvmc (latest version) to generate the DLLs on PDFBOX.1.0.0.jar generates a whole lot of NoClassDefFound warnings. How should I fix this, and what other ...

Weird Mono compilation error

Hi, I am using IKVM to get SVNKit on a Mono project I'm working with, I have a class that implements an interface from SVNKit, and I can't compile: On windows and on .NET, everything compiles fine, just getting this on Mono. /home/nubela/Workspace/subsync/subsync/Core/Subversion/PropGetHandler.cs(22,22): Error CS0535: Subsync.C...