Java:javap错误:找不到.class [英] Java : javap ERROR:Could not find .class
问题描述
在我的系统(Ubuntu 10.04)中,java运行正常但我无法运行 javap 命令
我有complile Foo
class和 .class 文件路径位于
/ home / mahesh / java / opt
$ b执行时为
$ b javap -c Foo.class
我收到以下错误消息:
错误:无法执行find Foo.class
是否需要设置任何环境变量或其他任何东西来解决它。
我的$ PATH变量的目标是:
/ usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin: / bin:/ usr / games:/ usr / lib / jvm / bin /
谢谢。
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.
推荐答案
您只需要删除 .class
扩展名。
使用以下命令: javap -c Foo
这篇关于Java:javap错误:找不到.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!