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

  • SEARCH
  • Home
  • 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 7786161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:22:19+00:00 2026-06-01T20:22:19+00:00

Basically I am trying the same as this guy: How can I tell proguard

  • 0

Basically I am trying the same as this guy: How can I tell proguard to assume a package is not used? but am not able to add any comments.

I keep getting warnings like this:

Warning: org.jboss.netty.logging.Slf4JLogger: can't find referenced class org.slf4j.Logger

Basically, org.jboss.netty.logging.Slf4JLogger is referencing third party library class org.slf4j.Logger which is not part of my project. org.jboss.netty.logging.Slf4JLogger is not used either.

So I try to tell proguard not to load/use org.jboss.netty.logging.Slf4JLogger as proposed by Eric Lafortune but constantly fail in doing so.
I added -injars libs/netty-3.3.1.Final.jar(!**Slf4JLogger) or -injars libs/netty-3.3.1.Final.jar(!**Slf4JLogger.class) but this does not seem to do anything. Even
-injars libs/netty-3.3.1.Final.jar("!whatever is in here") yields the same results so I assume this option does not do anything…

How can I tell Proguard to not consider several specific classes in the netty.jar?

  • 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-06-01T20:22:19+00:00Added an answer on June 1, 2026 at 8:22 pm

    Using the latest ADT (18.0) which fixes some problems with ProGuard integration (as compared to ADT 16.00), I was able to successfully run my Netty based app with the following additional ProGuard Settings:

     # Get rid of warnings about unreachable but unused classes referred to by Netty
    -dontwarn org.jboss.netty.**
    
    # Needed by commons logging
    -keep class org.apache.commons.logging.* {*;}
    
    #Some Factory that seemed to be pruned
    -keep class java.util.concurrent.atomic.AtomicReferenceFieldUpdater {*;}
    -keep class java.util.concurrent.atomic.AtomicReferenceFieldUpdaterImpl{*;}
    
    #Some important internal fields that where removed     
    -keep class org.jboss.netty.channel.DefaultChannelPipeline{volatile <fields>;}
    
    #A Factory which has a static factory implementation selector which is pruned
    -keep class org.jboss.netty.util.internal.QueueFactory{static <fields>;}
    
    #Some fields whose names need to be maintained because they are accessed using inflection
    -keepclassmembernames class org.jboss.netty.util.internal.**{*;}
    

    My conclusions about why a specific line is needed may not be 100% precise and this is definitly not the must tuned solutions but at least it works. Feel free to edit if you think you can improve this.

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

Sidebar

Related Questions

Basically I'm trying to do the same thing as this question but with Fluent
I'm trying to do the same thing that this guy is doing, only he's
I'm basically trying to get the target element from event.target and if not equal
Basically I want to do the opposite of what this guy did... hehe. Python
I have the exact same problem as this guy , since no one has
I am basically trying to implement a Strategy pattern, but I want to pass
Is this possible? Basically trying to test emails being sent through an SMTP server,
I saw a similar post that was trying to do this same thing with
I've seen this asked a few times, but not exactly how I'm going to
I'm trying to basically trying to separate a specific amount of text from the

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.