jar to zip and back to jar
Hello
How do I open and close a .Jar file?
I tried opening it with 7zip and using an online site to copy the zip file back into the jar, but after that it stopped working.
I wanted to look at the files just out of interest ๐
8 Replies
You can find the source code here: https://gitlab.com/jeseibel/distant-horizons
GitLab
James Seibel / Distant Horizons ยท GitLab
This is a mod that adds a Level Of Detail (LOD) system to Minecraft. This implementation renders simplified chunks outside of the normal render distance allowing for an...
It doesn't work like that. What you are trying is to decompress it, but the file was compiled from the source code into the byte code it is
Is there a program for this?
I want to test something ๐
for what? for compiling?
from jar to zip (or similar) and back to jar again.
or can i edit jar directly with a program?
There are some programms, but I'm not sure if and how they work. They are called Java decompilers. You would need to compile it, to make it into a .jar file again. But I really wouldn't recommend that, you can use the link above to get to the source code, which is like the zip you want
i believe you can just rename the file from .jar to .zip
jar files are just glorified zip files
right click, open with WinRar and I can view the jar file like an open zip, swap files and it remains a jar
The renaming thing was a good idea, but it didn't work for me, but I found out how to do it during testing.
case solved, thank you very much