【发布时间】:2014-04-01 16:51:43
【问题描述】:
我无法嵌入一个简单的小程序。我认为类文件名的相对/绝对路径的设置是问题所在。我尝试了许多不同的方法来做到这一点,但没有一个奏效。只有一个例外。如果我将 indexApplet.html 文件放在 bin 文件夹中,那么它可以工作。但我想将 indexApplet.html 保留在它之外。对于此事,我将非常感谢任何帮助。
这是我的html代码和文件夹结构:
[code]
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Java Game</title>
</head>
<body>
<applet code="test/bin/first/hello.class" width="800" height="600" alt="Java Game" title="Go and Play"></applet>
</body>
</html>
[/code]
类文件位于:C:\Users\Valentin\workspace\test\bin\first
我想将 indexApplet.html 文件放在测试文件夹之外。
【问题讨论】:
-
那么您的
indexApplet.html已在文件夹C:\Users\Valentin\workspace中,对吧?