What are you really trying to do?
There are a zillion ways to do interop between Java and C#. You can break
them down into categories:
1- in process
2- out of process, directo communications
3- shared resource
For inprocess, you can do it the way Mr Agneli has described. It's a bit
messy. There are other options.
for example
Have you seen IKVM? It is a JVM written implemented on top of the CLR.
What this means is you can take any Java class and run it in a .NET
container.
Some other neat possibilities like, producing Java "stubs" for .NET class
libraries , and then being able to call them from Java code.
www.ikvm.net
For out-of-process, there you are talking about webservices, SOAP, socket
comms.
For shared resource, maybe both the Java app and the C# app read and write
the same file, or queue, or database.
Which way you choose depends on the requirements of your situation.
-Dino
http://blogs.msdn.com/DotNetInterop