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.
Asked
Active
Viewed 3,656 times
-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. – Héctor M. Mar 14 '18 at 17:06
-
You would need to have a decompiler for the specific language the dll was written in, but depending on WHAT dll it is this action might even be illegal. I don't think this question belongs here. – ChristianM Mar 14 '18 at 17:07
-
I think answers to this question will help you https://stackoverflow.com/questions/2896727/where-to-find-java-jdk-source-code – TheJavaGuy-Ivan Milosavljević Mar 14 '18 at 17:12
1 Answers
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

Héctor M.
- 2,302
- 4
- 17
- 35
-
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 M. Mar 14 '18 at 17:26
-
@212121 Look this dll disassembler https://onlinedisassembler.com/odaweb/ZWzEu8hz – Héctor M. Mar 14 '18 at 17:34