Converting Java Jars’s into .Net dll’s

You can use a jar file in your .Net application using IVKM.Net. IVKM.NET includes an application called ikvmc. Here’s the documentation for this tool:
http://www.ikvm.net/userguide/ikvmc.html To use it compile your java code into a Jar.
Then run the ikvmc program:
ikvmc myCode.jar

If your jar contains a main() function it will be converted into an exe that can be run on the CIL. Otherwise it will be converted into dll’s. To use the dll’s in your project just add them as references in Visual Studio and the same API that was available to you in Java will be accessible in your .Net application.

You can also include the IKVM.GNU.Classpath.dll dll from ikvmc and use the standard java class libraries in tour application.

About these ads

About Stephen Curial

Co-founder of Pure Project Tools PureProjectTools.com, that simplifies managing projects. I am currently a Software Development Engineer at Amazon and have worked as a developer on IBM's XLC Compiler, a government organization and a start-up company. In my free time I enjoy skiing, Brazilian Jiu-Jitsu (BJJ) and motorcycle racing. These views are my own and not that of my employer. View all posts by Stephen Curial

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 150 other followers

%d bloggers like this: