Search code examples
javaobfuscationbytecodezipwinrar

File with same case in JAR file on Windows


I'm editing the bytecode in one of my old projects to fix a bug, because I no longer have the source code. Everything was fine and dandy until I went to re-insert the modified class.

The code was obfuscated when we released it, so I have two files: hl.class and hL.class. hl.class is the one I'm re-inserting, but using WinRAR causes hl.class to just replace hL.class and delete the old hl.class! It's annoying and I can't figure out how to just re-insert the damn file.

Somehow the obfuscator put them here, but I can't change it without the file system freaking out

Does anyone have any insight? Are there programs that won't be such a diva about this?

Thanks!


Solution

  • I actually found the solution the day I posted this, I'm sorry I forgot to respond and post it!

    If you're on a Windows machine like me, I found a handy program called muCommander that's a cross platform file manager that isn't case sensitive. I managed to get the file in with it.

    There's also some registry values you can tweak to get Windows to recognize case sensitive files, but I'd recommend the program I posted above to keep it simpler.

    Thanks everyone!