• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using javap

 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a problem using javap. I come across an information that we can get the decompiled class, that is the source back by using javap with the -c flag passed to it.

My problem is that i have a class called Run.class.

The location is c:\jdk1.3\Run.class.

If I am using a javap -c Run command from the command line, i get the following error.

Class 'Run' not found


What's the reason behind the error? How to solve it?

Any help is highly appreciated.

Cheers,
Swamy.
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,

Sorry for posting that...

Figured out the problem....

That was due to classpath....have fixed it...

Thanks.

Cheers,
Swamy
 
Ian Darwin
author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I come across an information that we can get the decompiled class, that is the source back by using javap with the -c flag passed to it.

Glad you got your CLASSPATH sorted out. But as you've probably found out by now, -c gives you
byte Code, not source code. You need a proper decompiler program for that, which you can find
using a search engine. Javap isn't it.

Ian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic