tags:

views:

59

answers:

3

I suppose the question I'm asking is it possible to host a JVM inside a WPF application?

WPF = Windows Presentation Foundation

Found this so far:

http://www.jnbridge.com/jnbp-examples.htm

+2  A: 

The thing you found looks reasonable.

Otherwise, you could look at IKVM and see if you can use that to solve your problem.

erikkallen
+1  A: 

Since you can P/invoke out to anything, you could create a native c/c++ library that starts up the vm and does whatever other things you need, and then call methods on it from c#.

If you're going to try to host UI stuff, then something like jnbridge would probably be useful instead of trying to roll all that yourself.

John Gardner
A: 

If you do it like John Gardner says, here's a good example of using JNI_CreateJavaVM.

Catalina Island