Topic: 菜鸟问题(用appletviewer 显示"小程序未初始化")

  Print this page

1.菜鸟问题(用appletviewer 显示"小程序未初始化") Copy to clipboard
Posted by: liuyigoodboy
Posted on: 2005-10-20 20:09

请尽量用准确的文字描述作为标题

http://www.cjsdn.net/post/search
请先搜寻一下旧帖子,说不定已找到答案;
不行,再问。
菜鸟问题,劳驾大家回答,谢谢!


我刚开始编了一个程序,没有main( )函数,只能用appletviewer **.html运行,但是我运行以后,我的小程序查看器显示~~~~"小程序未初始化",我想请问各位前辈大侠,我出了什么问题,什么原因会导致"小程序未初始化"?我该怎么样改我的环境设置.或者该怎么初始化我的小程序查看器???
谢谢大家帮忙,小弟谢过!

2.这是我运行appletviewer **.html以后cmd里面的情况! [Re: liuyigoodboy] Copy to clipboard
Posted by: liuyigoodboy
Posted on: 2005-10-20 20:12

这是我运行appletviewer **.html以后cmd里面的情况! 是不是我的程序有什么问题?

3.这是我的那个小程序 [Re: liuyigoodboy] Copy to clipboard
Posted by: liuyigoodboy
Posted on: 2005-10-20 20:13

import java.applet.Applet;
import java.awt.Graphics;
public class Welcome extends Applet{
public void paint (Graphics g)
{
g.drawString("Welcome to java programming",25,25);
}
}
大家帮忙看看

4.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: why
Posted on: 2005-10-20 21:05

Show us your html file.
Is the applet tag like this?
<applet code="Welcome.class" height="...

Did you name your java file Welcome.java?

5.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: dboy216
Posted on: 2005-10-21 11:17

用jcreator等编译器或者代入到HTML代码中就可以运行了.

6.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: oliver456
Posted on: 2005-10-21 14:10

To liuyigoodboy
请仔细阅读我给你的回复
http://www.cjsdn.net/post/view?bid=1&id=160211&sty=1&tpg=1&age=0

7.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: q_yuan
Posted on: 2005-10-21 15:00

Your HTML file?

8.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: liuyigoodboy
Posted on: 2005-10-21 16:45

OK了,谢谢大家,我很激动!以后会努力!

9.Re:菜鸟问题(用appletviewer 显示"小程序未初始化") [Re: liuyigoodboy] Copy to clipboard
Posted by: why
Posted on: 2005-10-21 18:23

liuyigoodboy wrote:
OK了,谢谢大家,我很激动!以后会努力!

You'd better show your HTML file and let other know how you got it done.Smile


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923