Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4041344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:52:07+00:00 2026-05-20T12:52:07+00:00

Is there any tool that can remove debug info from Java .class files, just

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:52:08+00:00Added an answer on May 20, 2026 at 12:52 pm

    ProGuard (which the Android SDK for example ships with to reduce code size), can do all kinds of manipulation to shrink JAR files:

    • Evaluate constant expressions.
    • Remove unnecessary field accesses and method calls.
    • Remove unnecessary branches.
    • Remove unnecessary comparisons and instanceof tests.
    • Remove unused code blocks.
    • Merge identical code blocks.
    • Reduce variable allocation.
    • Remove write-only fields and unused method parameters.
    • Inline constant fields, method parameters, and return values.
    • Inline methods that are short or only called once.
    • Simplify tail recursion calls.
    • Merge classes and interfaces.
    • Make methods private, static, and final when possible.
    • Make classes static and final when possible.
    • Replace interfaces that have single implementations.
    • Perform over 200 peephole optimizations, like replacing …*2 by …<<1.
    • Optionally remove logging code.

    They do not mention removing debug info in that list, but I guess they can also do that.

    Update: Yes, indeed:

    By default, compiled bytecode still contains a lot of debugging information: source file names, line numbers, field names, method names, argument names, variable names, etc. This information makes it straightforward to decompile the bytecode and reverse-engineer entire programs. Sometimes, this is not desirable. Obfuscators such as ProGuard can remove the debugging information and replace all names by meaningless character sequences, making it much harder to reverse-engineer the code. It further compacts the code as a bonus. The program remains functionally equivalent, except for the class names, method names, and line numbers given in exception stack traces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any tool that can parse/conver xml files to this format? I have
Is there any tool / Eclipse plugin that can remove all JavaDoc comments in
Is there any tool that can read a WSDL file and based on the
Wondering if there is any tool that can help me to detect a pronoun's
Is there any tool or method that can speed up this process? For instance
I have many js files, with some naming convention. If there any tool that
Visual Studio 2010 .NET 3.5 Is there any tool that can trace the http
Is there any tool that analyse and reports number of functions (including member functions)
Is there any tool (IDE) that provides a visual web Development for JSP and
Is there any tool or code that would enable me to Display Excel 2003

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.