Title: How to use JAVA in .NET

Introduction :

 


The JAR file - Short and simple defn. for jar(Java Archive) files is - these files are nothing but the execution files of Java Applications. Basically jar files aggregates many files (such as .class,resourses & manifest(.mf) file) into one. Computer users can extract JAR files as these files are build on the ZIP file format.

 

 

What if want to use ths jar file in our .net technology??

 

 

There is one tool available IKVM.NET which provide the tool to convert the files like .JAR, .EXE into the .dll wich you can inset easily into you asp.net application using the "Add Reference".

 

You can also create .dll from types of file like .JAR,.exe etc

 

You can download this tool from : http://www.ikvm.net/

 

How it Work

 

After downloading this tool you can create dll by command prompt

 

 

1. From start -> Run -> cmd

 

2. Go to the directrory where you have saved the ikvm.net  -> cd d:/ikvm/bin

 

3. Perform the command ikvmc <your file name> ex: ikvmc f:\sms.JAR

 

Now you will show the message that "Output file is sms.dll"

 

it will be created in the bin directory of ikvm

 

Include it in .net project

 

To add this dll you just have right click on your project and click on "Add Reference".