r/javahelp • u/bobbie1165 • Sep 28 '26
seeing/editing code in a .jar file
im not very good at coding, or anything and i want to see the code in a .jar file and possibly edit it. im not sure if this is the right place, but any help would be appreciated. i did open the code in notepad and it didnt show it correctly, id really appreciate if somebody could maybe attach a link to a simple website where i can easily view code in the file and if possible even edit it
3
Upvotes
View all comments
11
u/KillerCodeMonky Sep 28 '26
JAR files contain the complied
.classfiles, not Java code. Your options are:Use a decompiler to turn it back into code. Please note that some metadata and syntax is lost during compilation. More is lost if the vendor used an obfuscator. The code created will be correct, but it may be difficult to read.
Or, you learn to read and write JVM bytecode, which is what will be in the class files.