Is there any tool that can remove debug info from Java .class files, just like /usr/bin/strip can from C/C++ object files on Linux?
EDIT: I liked both Thilo’s and Peter Mmm’s answers: Peter’s was short and to the point exposing my ignorance of what ships with JDK; Thilo’s ProGuard suggestion is something I’ll definitely be checking out anyway for all those extra features it appears to provide. Thank you Thilo and Peter!
ProGuard (which the Android SDK for example ships with to reduce code size), can do all kinds of manipulation to shrink JAR files:
They do not mention removing debug info in that list, but I guess they can also do that.
Update: Yes, indeed: