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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:39:25+00:00 2026-06-13T20:39:25+00:00

I have a *.jar file and i want to use some classes from it.

  • 0

I have a *.jar file and i want to use some classes from it. Among the others, it contains class “a” from package “com.a.a” and package “com.a.a.a.a.e” with class “a”. When i try to access the class as “com.a.a.a.a.e.a”, there is an error: com.a.a.a.a cannot be resolved to a type. It happens because compiler tries to get the field “a” of class “com.a.a.a” rather than package “com.a.a.a.a”. I also tried to import this class, but it makes no difference, and i get the error “The import com.a.a.a.a cannot be resolved”.

Is there any way to use the class “com.a.a.a.a.e.a”? Are there any tools that are able to rename classes in *.jar? Or may be reflection can help here?

  • 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-13T20:39:26+00:00Added an answer on June 13, 2026 at 8:39 pm

    The JAR you’re trying to use has most likely been obfuscated, probably for the purpose of preventing what you’re trying to do. Some Java obfuscators change the package, class, method, and variable names to violate the JLS but still be valid compiled bytecode; that appears to be exactly what has been done to this JAR. It will be very difficult to make sense of the de-compiled code in that case.

    JARs that are obfuscated usually leave just their public API un-obfuscated for your code to use; everything else is scrambled to prevent you from de-compiling it and/or using it directly.

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

Sidebar

Related Questions

I have a jar file exporting some functions which i want to use in
I have a Java project in Netbeans and I want to use some classes
I have user defined jar file which has .class files Ex: abc.jar. I want
I have a jar file that I want to put in the shared lib
I have a executable jar file and i want to see code behind it.
I have a project, in which I want to invoke another Jar file in
I have a ivy.xml - https://gist.github.com/1898060 I also have the jar file related to
I have a program.jar file which includes some external libraries. Additionally I wan't to
I have developed some android application like Phonegap. I want to make a jar
I have some 3rd party jar files that I want to reference in my

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.