Convert Java class to DLL [duplicate]
问题 This question already has answers here : Is there any way to compile Java code into a DLL? (3 answers) Closed 6 years ago . I need to use Java code in .NET (C#) and am looking for a way to convert a Java class to a DLL file (which I can then reference in my .NET app). Is this a valid scenario? If yes, How can I do it? 回答1: You can use IKVM.NET to use Java classes and libraries from .NET. 回答2: Basically that is not a good idea. Since java emphasizes on platform independence, but dll is