Redian新闻
>
how to run java program in dos?
avatar
how to run java program in dos?# Java - 爪哇娇娃
j*1
1
发信人: mitbbs (未名空间), 信区: Complain
标 题: Re: [投诉]Trustinjesus版主dignity滥用权力任意删贴
发信站: BBS 未名空间站 (Tue Jun 21 03:46:35 2011, 美东)
处理结果
若未违反版规,且并未涉及攻击,应允许其存在和正常讨论
avatar
p*y
2
hi.
i recently created a class called "Maze" with a public static void main(Stri
ng[] arg)
method. it takes two integers as argument
I am having problem running it.
I did it like this
java maze 8 8
then it says:
exception in thread "main" java.lang.NoClassDefFoundError:Maze
does sb know what happened?
the program runs well in other IDE.
thanks
avatar
g*g
3

Maze

【在 p*******y 的大作中提到】
: hi.
: i recently created a class called "Maze" with a public static void main(Stri
: ng[] arg)
: method. it takes two integers as argument
: I am having problem running it.
: I did it like this
: java maze 8 8
: then it says:
: exception in thread "main" java.lang.NoClassDefFoundError:Maze
: does sb know what happened?

avatar
h*n
4
A typical error in java beginner's course.

【在 g*****g 的大作中提到】
:
: Maze

avatar
s*a
5
If you run "java Maze ..." under the dir you save the class file, then check
the classpath environment variable. Make sure that it includes "current dir"

【在 p*******y 的大作中提到】
: hi.
: i recently created a class called "Maze" with a public static void main(Stri
: ng[] arg)
: method. it takes two integers as argument
: I am having problem running it.
: I did it like this
: java maze 8 8
: then it says:
: exception in thread "main" java.lang.NoClassDefFoundError:Maze
: does sb know what happened?

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