-1

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.

212121
  • 3
  • 1
  • 2

1 Answers1

1

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

  • But there are many .dll files in the JRE folder is there no way to decompile that .dll files – 212121 Mar 14 '18 at 17:20
  • @212121 If you check the post that you put, you will see that these are not written in Java, but in another language, since Java does not create dll. Test with a decompiler of C, C ++, C #, etc It all depends on the language in which this writing, if you could leave the link to download one of those dll to see if it can be decompiled, maybe it can help you – Héctor Manuel Martínez Durán Mar 14 '18 at 17:26
  • @212121 Look this dll disassembler https://onlinedisassembler.com/odaweb/ZWzEu8hz – Héctor Manuel Martínez Durán Mar 14 '18 at 17:34