Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Java Jar

Hi
I have a java program that uses three classes to run. I want to embed them
in a web page so I compressed them into a jar I tryed to embed the jar using
object and embed and all i get is a grey window with an x heres the code
I used:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<applet code="screensvr.jar" codebase = "file:///C|/Documents%20and%20Settings/All%20Users/Documents/webfiles"
width="800" height="400">
</applet>
</body>
</html>
and:
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"
name=""
width="800" height="450" align="middle">
<param name="code" value="AppletClassName.class">
<param name="archive" value="screensvr.jar">
<param name="codebase" value=".">
<embed width="800" height="450" align="middle" code="AppletClassName.class"
archive="screensvr.jar" codebase="." name="screensvr"></embed>
</object>
[1302 byte] By [Jay Hadley] at [2007-11-9 22:32:29]
# 1 Re: Java Jar
Look at the codepath for the jar.

"Jay Hadley" <lonejay@earthlink.net> wrote:
>
>Hi
>I have a java program that uses three classes to run. I want to embed them
>in a web page so I compressed them into a jar I tryed to embed the jar using
>object and embed and all i get is a grey window with an x heres the code
>I used:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
><html>
><head>
><title>Untitled Document</title>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
></head>
>
><body>
><applet code="screensvr.jar" codebase = "file:///C|/Documents%20and%20Settings/All%20Users/Documents/webfiles"
>width="800" height="400">
></applet>
></body>
></html>
>and:
><object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"
>name=""
> width="800" height="450" align="middle">
> <param name="code" value="AppletClassName.class">
> <param name="archive" value="screensvr.jar">
> <param name="codebase" value=".">
> <embed width="800" height="450" align="middle" code="AppletClassName.class"
>archive="screensvr.jar" codebase="." name="screensvr"></embed>
></object>
>
>
MarkN at 2007-11-11 22:59:13 >