In my system(Ubuntu 10.04) java is running fine but I am not able to run javap command
I have complile Foo class and .class file path is locate at
/home/mahesh/java/opt
when I execute
javap -c Foo.class
 I get following error message :
ERROR:Could not find Foo.class
Is there any need to set any environment variable or any thing else to resolve it.
my $PATH variable is target to:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/bin/
Thank you.
            Asked
            
        
        
            Active
            
        
            Viewed 1.4k times
        
    17
            
            
         
    
    
        mcacorner
        
- 1,304
- 3
- 22
- 45
- 
                    1Try `javap -c Foo -classpath /home/mahesh/java/opt` – Shashank Kadne Nov 13 '12 at 07:16
1 Answers
41
            You just need to remove the .class extension.
Use the following command: javap -c Foo
 
    
    
        mkhelif
        
- 1,551
- 10
- 18