applet 问题

see1230 2003-10-20 10:19:42
一个applet 里头要用到 javax.media.xxx库
然后我在系统环境变量CLASSPATH里头加上这个类库的路径
用javaw命令 一切正常
但是 放在ie里头执行九不行 为什么
...全文
29 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
duoshanx 2003-10-20
  • 打赏
  • 举报
回复
tianmiaohu(Tianmiao)在官方了,呵。
我有一个简单的方法,
可以把你的用到的class文件打包成jar.
这样就不用像tianmiaohu说的,要建立目录之类的。

怎么打包呢?我都是用jb的向导,可以自己选需要的包。
tianmiaohu 2003-10-20
  • 打赏
  • 举报
回复
You need to place your javax.media.xxx library's class files or jar file onto the web server's Virtual Directory. It needs to be placed at the proper path according to its package name.

Suppose you place your applet at c:\INetpub\wwwroot\applet as your applet does not have a declared package. You need to create a directory:
c:\INetpub\wwwroot\applet\javax\media\xxx. And then copy all the class files to this directory. This is the easy way. If it is a jar or zip file, you can use Winzip to unzip all the class files in the jar to this directory.

If you want to stick with jar file, you need to edit the HTML page for the applet to include the jar file as one of the archives for Applet tag.

I would suggest to use Winzip to unzip all the files for starter. If you get that working, then try the jar approach.

62,612

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧