Exception in thread main java lang.NoSuchMethodError:main怎么解决
applet_百度知道
Exception in thread main java lang.NoSuchMethodError:main怎么解决
其他人都可以运行.
g.*,跳出Exception in thread main java lang,3);import java,heihei&i am miao",1);
g,就我不行.*;.green);.red);}}就是这个程序;public class boy extends Applet{
public void paint(Graphics g){
g,1.setColor(Color.setColor(Color.drawString(".drawString(&haha.applet,3.NoSuchMethodE
提问者采纳
如果是的那你就错了、用支持java的浏览器运行查看2,而且你很有可能是这样运行的请问你是怎么运行的:1;/。错误的意思是找不到main方法,用java自带的小程序查看器运行<.class height=200 width=300&/,有两个运行方法;<,你的这个程序根本没有main方法也不需要有;html&applet code=类名,你要运行这个程序需要编写html文件、在控制台输入appletviewer html文件名;<.html.class吗;applet&html>?是用<
其他类似问题
按默认排序
其他1条回答
确认你的JDK安装好了,然后再看你的classpath配得对不对程序没有问题,应该是你的环境
nosuchmethoderror的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}