Search code examples
javadllbin

How to open the .dll files of the Java.


I want to see the source code of the .dll file of Java which is stored in the Java installation folder that is stored in the folder bin under JRE folder which is stored in Java installation folder. I used dotpeek by JetBrains but it shows no supported. plz tell me how can I open the source code of that .dll files.


Solution

  • Java source files are compiled to .class files. As far as I know, there is no standard way to compile java code to a DLL.

    But, check this post Decompile JAVA DLL

    Check this page, is a online jar and class java decompiler https://jdec.herokuapp.com

    Although you can try this

    Read the file:

    JarInputStream input = new JarInputStream(getClass().getResourceAsStream("/myjar.dll"));
    

    Write a new file for each entry:

    JarEntry entry;
    while ((entry = input.getNextJarEntry()) != null)
    {
        // Write file
    }
    

    For dissasembly DLL, chek this https://onlinedisassembler.com/odaweb/ZWzEu8hz

    enter image description here

    enter image description here