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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:32:02+00:00 2026-05-22T23:32:02+00:00

I have some .class files that I need to convert to .java so I

  • 0

I have some .class files that I need to convert to .java so I did:

javap -c ClassName.class

and all the time I have the same error

ERROR:Could not find ClassName.class

Do you guys have any idea of what might be the cause? I did man javap and as far as I know, the syntax is correct. If there is another way to convert it to a .java file, I am more than willing to try.

  • 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-22T23:32:03+00:00Added an answer on May 22, 2026 at 11:32 pm

    Invoking javap to read the bytecode

    The javap command takes class-names without the .class extension. Try

    javap -c ClassName
    

    Converting .class files back to .java files

    javap will however not give you the implementations of the methods in java-syntax. It will at most give it to you in JVM bytecode format.

    To actually decompile (i.e., do the reverse of javac) you will have to use proper decompiler. See for instance the following related question:

    • How do I "decompile" Java class files?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that includes some Java APIs, some resource files, and some
I have a class library project which contains some content files configured with the
I have some class that I'm passing as a result of a service method,
the basic idea is that you have some class that has a reference type
I have some C# class libraries, that were designed without taking into account things
I have some classes that need a bunch of data tables to do their
I have some automatically generated Ant build scripts that I need to use to
I have some classes that already use DOM4J to read XML files and provide
I have five text files that need to be loaded into memory. I set
I have some code that moves files around and would like to implement a

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.