由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Class not found?
相关主题
weird class definition为什么我的try-with-resources总是提示有unhandled exception?
multiple classes in one file:revisted请教一个简单的问题
如何把函数体放入到try ... catch ... 中interesting
新手求助,急急急!!!extending generic class , but not mentioning its parameterized type?
help "java.lang.NoSuchMethodError"java reflecton question: how to represent a String[] class?
Re: 怎样不用main(String args[])输出"hello worl找不到HttpClient Class
请问一个最初级问题为何运行JAVA出现这个错误?
NullPointerException 问题return null or empty list/set/...
相关话题的讨论汇总
话题: class话题: test话题: found话题: error话题: main
进入Java版参与讨论
1 (共1页)
d*r
发帖数: 238
1
I got a error to run a java class under win2k command window
The error is:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
The java class is very simple:
public class Test {
public static void main(String[] args) {
System.out.println("test");
}
}
jdk: j2se 1.5.0
w*******g
发帖数: 9932
2
did you set the classpath to include the current directory "."?

【在 d*r 的大作中提到】
: I got a error to run a java class under win2k command window
: The error is:
: Exception in thread "main" java.lang.NoClassDefFoundError: Test
: The java class is very simple:
: public class Test {
: public static void main(String[] args) {
: System.out.println("test");
: }
: }
: jdk: j2se 1.5.0

1 (共1页)
进入Java版参与讨论
相关主题
return null or empty list/set/...help "java.lang.NoSuchMethodError"
对 spring 的 exception 处理方式真是不适应Re: 怎样不用main(String args[])输出"hello worl
问一个 java generic问题请问一个最初级问题
JAVA中文TELNET MwTerm 1.000 FinalNullPointerException 问题
weird class definition为什么我的try-with-resources总是提示有unhandled exception?
multiple classes in one file:revisted请教一个简单的问题
如何把函数体放入到try ... catch ... 中interesting
新手求助,急急急!!!extending generic class , but not mentioning its parameterized type?
相关话题的讨论汇总
话题: class话题: test话题: found话题: error话题: main