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 8074951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:49:58+00:00 2026-06-05T14:49:58+00:00

I am trying to obfuscate a bundle with proguard. Because of project specific reasons,

  • 0

I am trying to obfuscate a bundle with proguard. Because of project specific reasons, my bundles have library jars in them, such as:

bundle.jar
   |
   |-META-INF
   |
   |-library.jar
   |
   \-org (and the rest of my source tree)

The Manifest.mf file in META-INF includes the line:

Bundle-ClassPath: .,library.jar

And this is all auto-generated and good.

Now, the problem comes when proguard tries to obfuscate methods from library.jar (let’s say I have a good reason to do that). In those cases, it won’t find library.jar since it’s not part of the dependent libraries, and proguard seemingly ignores the Bundle-Classpath entry in the manifest file.

So, the question is: can that be done at all? Or is proguard completely osgi agnostic and can’t handle those tags at all? Is there a way I can provide an in-jar dependency to proguard?

Thanks!

  • 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-05T14:50:01+00:00Added an answer on June 5, 2026 at 2:50 pm

    Why not assemble the bundle with its embedded JAR after obfuscating with Proguard, rather than before?

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

Sidebar

Related Questions

I'm trying to use proguard in a Maven project this is a obfuscate plugin,
I'm trying to obfuscate my android application using proguard and ant ( eclipse +
Im trying to obfuscate a Java MIDlet with proguard. It runs ok on the
I am trying to obfuscate a string in a program. Currently, I only have
I'm trying to create an Android library JAR and would like to use ant
I am trying to obfuscate my GWT (Vaadin) application using Proguard. Ive never obfuscated
I'm trying to use ProGuard to obfuscate a Java application. I'm experiencing a problem
I'm trying to use Proguard to obfuscate my code. I use Mobclix for advertisements,
I am currently trying to obfuscate my Eclipse RCP application with ProGuard. The problem
I am trying to obfuscate my code using Proguard using the Android SDK. I'm

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.