File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Running Java on .NET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Java in General
Bookmark "Running Java on .NET" Watch "Running Java on .NET" New topic

Running Java on .NET

Yohan Liyanage
Ranch Hand

Joined: Aug 17, 2007
Posts: 132

Hi guys,

I would like to know if there's a possibility to run a Java program (say, a .jar file or a .class file) on top of .NET Framework (say, using a C# application), just as if it's a .NET Assembly.

I came across IKVM, which says what it allows to run Java on .NET and vice versa, I'm not sure whether it solves my problem.

Thanks in advance.

Yohan Liyanage
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
If you are looking for enterprise solution, I think mainsoft company do java->.Net interop.
Yohan Liyanage
Ranch Hand

Joined: Aug 17, 2007
Posts: 132

Thanks Sharon. But I am working on an educational project. Not an enterprise solution.
[ November 10, 2007: Message edited by: Yohan Liyanage ]
pete stein

Joined: Feb 23, 2007
Posts: 1561
Have you considered creating a c or c++ app to bridge c# and java? You could link this to java via the JNI and to net via dllimport.
I agree. Here's the link:
subject: Running Java on .NET