Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can you please let me know if there is any easy way of converting a DLL file into JAR file.?????
Posted
Comments
Sergey Alexandrovich Kryukov 28-Jul-14 13:28pm    
What do you mean by DLL, exactly? Native, managed .NET, mixed?
—SA
Xiao Ling 29-Jul-14 3:37am    
What do you want to do? Do wrap the DLL in a jar file? or Make the functionality of the jar file same as the DLL (Convert C/C++ to Java)?

1 solution

Strictly speaking, it's not possible at all, by a number of reasons. The platforms are fundamentally different. However, it's probably possible to generate a JAR from a .NET assembly which would do almost the same as the DLL for some limited set of cases. If someone offered such product, I would advise to take it with great care, and use only if it generated source code. However, I doubt that doing such work makes practical sense.

And forget about anything easy.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900