Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 applet(必须安装java运行环境?是个什么样的运行机制?)
wang_jing8888





发贴: 5
积分: 0
于 2005-07-05 17:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请使用准确的文字描述作为标题

从书上看到applet是通过web浏览器解释执行的。可是,我试过了,如果没有安装java的运行环境,applet程序是不能执行的。这是为什么?是不是必须要在服务器端安装java运行环境才可以。applet到底是个什么样的运行机制?请各位指点


why edited on 2005-07-05 21:09

作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
drmcer





发贴: 9
积分: 1
于 2005-07-06 01:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
首先需要明确的一点是Applet不是由服务器端来执行的, 他是从服务器端下载类文件(可能位于JAR包中)到本地, 并由本地的Web浏览器通过用以执行Applet的Plug-in插件来执行Applet. 此插件的启动会连带着启动JVM, 因此不安装JVM是不行的, 至少要安装JRE才能在Web浏览器中运行Applet. 所谓的解释执行并不是由Web浏览来完成, 而是由JVM(.class文件肯定都是由JVM来解释的), Web浏览器只是起到了一个发起这一系列动作的功能.


[img]http://promote.opera.com/medium/opera468x60.png[/img]
作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-06 02:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
wang_jing8888 wrote:
从书上看到applet是通过web浏览器解释执行的。可是,我试过了,如果没有安装java的运行环境,applet程序是不能执行的。这是为什么?是不是必须要在服务器端安装java运行环境才可以。applet到底是个什么样的运行机制?请各位指点


drmcer,
in principle, you're right; in practice, you're wrong!

wang_jing8888:
What system on your machine? I believe Windows has a default JVM. Applet is supposed to work on your machine without installing anything. Just imagine an office secretary, or a bartender goes to Internet, he/she needs to install JVM? Obviously, they don't know howto, and they don't need to!!!!

You must changed something on your machine to make applet not work.



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
drmcer





发贴: 9
积分: 1
于 2005-07-06 02:25 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是啊, 我说的就是原理, 不管你的Applet执行环境是从网上与Applet一起现下载的还是本地安装的JRE, 他们不都是以这种基本方式来执行Applet的吗??? 难道不是吗?

那 gongshi 你能说说, 你的办法该怎么实现? 这就算是我提的一个帖子, 你回复一下吧, 我在此万分感激你了.


drmcer edited on 2005-07-06 02:33

[img]http://promote.opera.com/medium/opera468x60.png[/img]
作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:drmcer]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-06 03:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
drmcer wrote:
那 gongshi 你能说说, 你的办法该怎么实现? 这就算是我提的一个帖子, 你回复一下吧, 我在此万分感激你了.


Hey, drmcer, my old friend in ChinaJavaWorld!

You really don't need to do anything. Mr. Bill Gates or Microsoft did all the work for us. Smile

Applet should work without doing anything unless Mr. Bill Gates or Microsoft did something recently which I'm not aware of.



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
wang_jing8888





发贴: 5
积分: 0
于 2005-07-06 09:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢各位的指教。我的系统是win2000,没有安装jvm,看来是执行不了的了。


作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-06 12:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I know w2k definitely had Java jvm. You must did something wrong on your machine.

Go to your system32, you should find a java directory. It is an MS JVM, which was better than Sun's JVM then. It was strange, but true, even you might not believe me.



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:gongshi]
szaba





发贴: 34
积分: 0
于 2005-07-08 21:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
gongshi wrote:
I know w2k definitely had Java jvm. You must did something wrong on your machine.

Go to your system32, you should find a java directory. It is an MS JVM, which was better than Sun's JVM then. It was strange, but true, even you might not believe me.

不是吧?!IE 6是不支持JAVA APPLET的吧?



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:szaba]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-08 22:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
szaba wrote:
不是吧?!IE 6是不支持JAVA APPLET的吧?


Have you checked?

Do you really think the smart Microsoft, who made the most of the money, dare to disable the applets from the entire world? Let people to use browsers from their competitors!

Teachers from all over the world are using applets to teacher their students.
Such as:
http://s.home.cern.ch/s/sticklan/www/Collider/
http://www.pa.uky.edu/~phy211/VecArith/
http://pdg.lbl.gov/~aerzber/aps_electricity.html

Students are the future!!!


gongshi edited on 2005-07-08 22:42

作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:gongshi]
szaba





发贴: 34
积分: 0
于 2005-07-09 07:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我试过的啊 的确是不行啊


作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
dszch





发贴: 1
积分: 0
于 2005-07-10 12:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
楼上各位朋友说了半天,到底怎样才能让自己的机器正常运行applet呀,我也遇到了楼主同样的问题?向高手请教了?
先谢过了!



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
依临





发贴: 7
积分: 0
于 2005-07-11 15:37 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
IE.6以前版本是支持的,现在IE.6不支持APPLET!如果你在Windows 上运行,它会自动提示你去SUN网站下插件!
在INTERNET的选项中选择高级选项。在HTTP设置中在JAVA(sun)
在前面打钩,重启电脑就可以了!



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:依临]
ranchgirl



版主


发贴: 801
积分: 132
于 2005-07-14 11:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
依临 wrote:
IE.6以前版本是支持的,现在IE.6不支持APPLET!如果你在Windows 上运行,它会自动提示你去SUN网站下插件!
在INTERNET的选项中选择高级选项。在HTTP设置中在JAVA(sun)
在前面打钩,重启电脑就可以了!


Very good! Standardized the process like pdf or flash!



作者 Re:applet(必须安装java运行环境?是个什么样的运行机制?) [Re:wang_jing8888]
ww1ww1





发贴: 202
积分: 5
于 2005-07-14 21:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
误导。。。

(缩略图,点击图片链接看原图)


ww1ww1 edited on 2005-07-15 18:53


flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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