wood burning stoves 2.0*
The moose likes Java in General and the fly likes Using javap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using javap" Watch "Using javap" New topic
Author

Using javap

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
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

Joined: Aug 31, 2004
Posts: 295
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

Joined: Aug 03, 2001
Posts: 64
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


Ian Darwin
Many questions are answered in my Java Cookbook, 2nd Edition
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using javap