Netbeans-类没有主要方法 [英] Netbeans - class does not have a main method

查看:226
本文介绍了Netbeans-类没有主要方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序只是一个简单的System.out.println("); 但是netbeans找不到主要方法. netbeans 6.7.1是否与WIN7冲突? 可能有错误吗?

My program is just a simple System.out.println(""); But netbeans cannot find the main method. Is netbeans 6.7.1 conflict with WIN7? Any possible error?

推荐答案

当您手动移动主类位置时会发生这种情况,因为Netbeans不会刷新其属性文件之一. 打开nbproject/project.properties并将main.class的值更改为正确的程序包位置.

This happens when you move your main class location manually because Netbeans doesn't refresh one of its property files. Open nbproject/project.properties and change the value of main.class to the correct package location.

这篇关于Netbeans-类没有主要方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆