classpath - java中关于package的疑问
PHP中文网
PHP中文网 2017-04-17 17:39:57
0
2
368
package com.javaeasy.car.feel;
public class Sea {
    public static void main(String[] args) {
        System.out.print("put out");        
    }
}    

win平台,首先文件路径是:E:\com\javaeasy\car\feel

    当前目录下cmd运行javac Sea.java编译通过,然而在java Sea的时候提示**错误: 找不到或无法加载主类 Sea**

查了资料,好像是与设置classpath有关,但还是觉得挺模糊的,不知道该怎么办。
所以,请帮忙解释下,先谢谢了!

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Peter_Zhu

The problem of classPash is explained in detail in this article: http://blog.sina.com.cn/s/blog_45ce60450...

PHPzhong

Try java com.javaeasy.car.feel.Sea and see if it works.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template