0

I was wondering if anyone have experience writing codes in Java while compiling it into .Net assemblies? What are your thoughts? What library did you use to do so and what are the disadvantages of codes in Java to become .Net application?

I see there are a couple of libraries out there that help out with Java <-> .Net communication (eg. JNBridge http://www.jnbridge.com/, IKVM.NET http://www.ikvm.net/) .

Let me know if you have suggestions on how to go about doing this task, or may be a reason to why not bother doing it and better off starting out with .Net (C# may be)

2
  • Why don't you just use .Net in the first place? Or are you porting? Commented May 10, 2011 at 20:55
  • More out of curiosity of how feasible it is to write something in Java and put it out as .Net assemblies Commented May 10, 2011 at 21:07

2 Answers 2

1

I would suggest that you are almost certain to be better off starting with C#, unless you are doing a straight port and are ready to deal with lots of integration issues. C# is pretty similar to Java syntactically and conceptually, and the .NET tooling will work with it a lot better.

Sign up to request clarification or add additional context in comments.

Comments

0

I wrote my own native JNI bridge from Java to .NET since we couldn't buy one off the shelf. It worked but it was extremely painful to get right. The path of least resistance with Java/.NET integration is to use a web-service (IMHO). This way you can do your Java things in Java and your .NET things on .NET.

1 Comment

Thanks, though I am not looking for "integration" per se with communication between Java/.Net - more about writing codes in Java to create .Net assembly. Just out of curiosity about doing something like that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.