Redian新闻
>
Exception in thread "main" java.lang.NoClassDefFoundError
avatar
Exception in thread "main" java.lang.NoClassDefFoundError# Java - 爪哇娇娃
G*O
1
jvm突然连续出现这条错误
以前运行过的class文件都运行不了了
有人遇到过么?
avatar
G*O
2
windows xp
刚在别的电脑上运行了,所有class文件是好的

【在 G*O 的大作中提到】
: jvm突然连续出现这条错误
: 以前运行过的class文件都运行不了了
: 有人遇到过么?

avatar
z*g
3
must be it..
avatar
G*O
4
原来是被这个override了
C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
搞不明白这一串是怎么跑进去的
或许是jvm在自动更新时候改的。



【在 G*O 的大作中提到】
: windows xp
: 刚在别的电脑上运行了,所有class文件是好的

avatar
z*g
5
check your jre version on the second machine...

【在 G*O 的大作中提到】
: windows xp
: 刚在别的电脑上运行了,所有class文件是好的

avatar
G*O
6
但是为什么这个问题突然出现呢?
这 . 被别的application删了?
avatar
w*r
7
class path....
make sure you have . in your classpath

【在 G*O 的大作中提到】
: 但是为什么这个问题突然出现呢?
: 这 . 被别的application删了?

avatar
z*g
8
which class is not found?

【在 G*O 的大作中提到】
: 但是为什么这个问题突然出现呢?
: 这 . 被别的application删了?

avatar
b*d
9
sometimes, the classpath points to program files/java, but you installed the
developer version of java at c:/j2sdk, so change it and see.

【在 G*O 的大作中提到】
: 但是为什么这个问题突然出现呢?
: 这 . 被别的application删了?

avatar
G*O
10
it worked!
那CLASSPATH设成这样是不是就可以了:
C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip; .
avatar
g*g
11
how do you launch your code?
try java -classpath . yourMainClass

【在 G*O 的大作中提到】
: it worked!
: 那CLASSPATH设成这样是不是就可以了:
: C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip; .

avatar
G*O
12
显示的都是我正在试图运行的class文件NoClassDefFoundError
可是这些文件都是好的,在本台机器上以前也运行过

【在 z****g 的大作中提到】
: which class is not found?
avatar
G*O
13
愤怒了!
QTjava.zip原来是
QuickTime for Java on Windows (QuickTime 7)

【在 G*O 的大作中提到】
: 原来是被这个override了
: C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
: 搞不明白这一串是怎么跑进去的
: 或许是jvm在自动更新时候改的。
:
: 料

avatar
g*g
14
For beginner, you can do this.
For serious programming though, every class is
supposed to be in some jar file with a package name,
so this makes no difference.
Unix people would never do the counterpart, it's dangerous
to keep . in your path.

【在 G*O 的大作中提到】
: it worked!
: 那CLASSPATH设成这样是不是就可以了:
: C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip; .

avatar
G*O
15
原来是被这个override了
C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
搞不明白这一串是怎么跑进去的
或许是jvm在自动更新时候改的。



【在 G*O 的大作中提到】
: 但是为什么这个问题突然出现呢?
: 这 . 被别的application删了?

avatar
G*O
16
但是为什么这个问题突然出现呢?
这 . 被别的application删了?

【在 g*****g 的大作中提到】
: For beginner, you can do this.
: For serious programming though, every class is
: supposed to be in some jar file with a package name,
: so this makes no difference.
: Unix people would never do the counterpart, it's dangerous
: to keep . in your path.

avatar
G*O
17
it worked!
那CLASSPATH设成这样是不是就可以了:
C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip; .

【在 g*****g 的大作中提到】
: how do you launch your code?
: try java -classpath . yourMainClass

avatar
w*r
18
haha... if you are a serious java programmer, you better stay in unix/linux
platform. Deployment issue become very simple ans clear er than the windows.

【在 G*O 的大作中提到】
: 愤怒了!
: QTjava.zip原来是
: QuickTime for Java on Windows (QuickTime 7)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。