看看我这个错了没有
java吧
全部回复
仅看楼主
level 7
381326428
楼主
上图
有没有错
2012年09月26日 06点09分
1
level 8
Mc_Flyed
你想干什么。。。
2012年09月26日 06点09分
2
381326428
和教程上对不上,所以问问大家
2012年09月26日 06点09分
level 16
windsun_ul
没 test1 只有 test...
2012年09月26日 06点09分
3
381326428
但是我改了,我改成Test1.class ,然后运行时java test不能成功,但是java test1才可以
2012年09月26日 06点09分
windsun_ul
回复 381326428 :
,你只直接改的类名?不是改的源码重新编译的?
2012年09月26日 06点09分
381326428
回复 windsun_ul :我搞错了另存为所以就这样的多了一个类出来了,你可以看看下面的一张图片我的截图
2012年09月26日 06点09分
level 13
贴吧用户_01ReJ77
wrong name
2012年09月26日 06点09分
5
381326428
什么意思呢
2012年09月26日 06点09分
level 8
wang1010307397
同上
2012年09月26日 06点09分
6
level 7
381326428
楼主
2012年09月26日 06点09分
7
level 7
381326428
楼主
这不是java Test 找不到主类
2012年09月26日 06点09分
8
381326428
回复 handsemuoscar :没有main啊
2012年09月26日 07点09分
381326428
回复 handsemuoscar :已经贴上了啊
2012年09月26日 08点09分
level 7
381326428
楼主
2012年09月26日 07点09分
9
level 7
381326428
楼主
看看我的main函数有没有错呢
2012年09月26日 07点09分
10
381326428
回复 handsemuoscar :哦
2012年09月26日 09点09分
381326428
回复 handsemuoscar :下面你再帮忙看看
2012年09月26日 09点09分
level 7
381326428
楼主
这样的吗?但是还是不行啊
2012年09月26日 09点09分
11
381326428
@handsemuoscar
2012年09月26日 09点09分
381326428
@handsemuoscar
2012年09月26日 09点09分
381326428
回复 handsemuoscar :不行
2012年09月26日 09点09分
381326428
回复 handsemuoscar :不行
2012年09月26日 09点09分
level 7
381326428
楼主
还是这样的,不行
2012年09月26日 09点09分
12
嘚天独厚
public static void main(String[]args)
2012年09月26日 10点09分
381326428
回复 嘚天独厚 :还是那样子,怎么会没救了呢
2012年09月26日 12点09分
381326428
回复 嘚天独厚 :public class Test{ public static void main(String[]args) { } }[$1]class Test2{}
2012年09月26日 12点09分
381326428
还是不行
2012年09月26日 12点09分
level 13
魂之哀求
public class test1 {
/** *
@param
args */public static void main(String[] args) { System.out.println("aa");}}class test2{}
2012年09月26日 10点09分
13
381326428
又报错了
2012年09月26日 12点09分
魂之哀求
我的机器一切运行正常、、、
2012年09月26日 13点09分
level 8
tuchuan2556
public class Test1{
public static void main(String[] args){
system.out.println("Hello World!");
}
}
class Test2{}
------------------------分割线----------------------
把上面这段代码放到Test1.java文件里面,然后javac Test1.java,然后java Test1,试试看
2012年09月26日 13点09分
14
1