由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how come this stupid question?
相关主题
where is libstdc++how to transfer C program run under VC to Unix?
Classpath setting questionhow to setup lib path?
C++5.0的初级问题please help, CGI..
[转载] ask a question.need help about GDB
Help: convert // to /* */ in C code?compiled on Solaris 9, run on Solaris 8?
how to execute a.out? (a stupid question)怎么才能在Unix里连续跑10个c写的程序 (转载)
can't run a simple c codehow to use setuid permission for a perl program?
A problemQuestions about Makefile
相关话题的讨论汇总
话题: classpath话题: stupid话题: question话题: java话题: test
进入Unix版参与讨论
1 (共1页)
m****a
发帖数: 394
1
I compiled the a simples java file in Linux smoothly, but
when I tried to executes iit using "java test", it said that
" can not find test class", why?
I checked out the PATH and CLASSPATH, seems all are ok, I do
not know why? can any body help me?
Thanks in advance.
n********g
发帖数: 10
2
Is your class named "test"?
try to find *.class to see whether you typed the correct class name.

【在 m****a 的大作中提到】
: I compiled the a simples java file in Linux smoothly, but
: when I tried to executes iit using "java test", it said that
: " can not find test class", why?
: I checked out the PATH and CLASSPATH, seems all are ok, I do
: not know why? can any body help me?
: Thanks in advance.

m****a
发帖数: 394
3
yeah. I did. I compiled a java source code file "test.java"
to "test.class". and I am sure that it existed in the same
directory, but "java test" does NOT work, so I am really
really puzzled about it. what's wrong with it? I checked out
all $CLASSPATH and $PATH, everything seems ok. so I do not
know why.

【在 n********g 的大作中提到】
: Is your class named "test"?
: try to find *.class to see whether you typed the correct class name.

d*x
发帖数: 9
4

Try the "-classpath" option, instead of setting CLASSPATH.

【在 m****a 的大作中提到】
: yeah. I did. I compiled a java source code file "test.java"
: to "test.class". and I am sure that it existed in the same
: directory, but "java test" does NOT work, so I am really
: really puzzled about it. what's wrong with it? I checked out
: all $CLASSPATH and $PATH, everything seems ok. so I do not
: know why.

m****a
发帖数: 394
5
I got it , very stupid mistake I've made. thanks all anyway
在 dxx (xd) 的大作中提到: 】
1 (共1页)
进入Unix版参与讨论
相关主题
Questions about MakefileHelp: convert // to /* */ in C code?
[转载] 请教三个关于emacs和perl的问题how to execute a.out? (a stupid question)
A tough compiler problemcan't run a simple c code
[转载] How to use matlab under unix?A problem
where is libstdc++how to transfer C program run under VC to Unix?
Classpath setting questionhow to setup lib path?
C++5.0的初级问题please help, CGI..
[转载] ask a question.need help about GDB
相关话题的讨论汇总
话题: classpath话题: stupid话题: question话题: java话题: test