At my company we develop applications that run on the JVM (Java EE and Grails) as well as .NET applications (ASP.NET and client/server Forms apps). In your experience, when have you recommended one over the other to a customer?
I asked this question incorrectly here but I think the fact that I put an initial list got it closed. I’m looking for things like if you want to do X then Y is better because of Z. I think this would be a valuable resource/case-study to the community. For example, I tried doing some USB hardware stuff in Java/Windows and would not recommend it again because of the lack of good libraries in Java.
If you want tight integration with Windows, other Microsoft products, or COM components, .NET is better because it’s designed with such integration in mind.
If you need to provide or consume XML Web Services, then .NET is better because the tools for that kind of development are more consistent and easy to use.
If you want to develop or deploy on non-Windows platforms, then target the JVM because there are stable implementations of it available for most platforms.