Hi,
I have created an applet as follows.
I have also made it as a JAR using,import java.applet.Applet;
import java.awt.Graphics;
public class SampleApplet extends Applet
{
public void paint(Graphics g)
{
String ss;
Sample s=new Sample();
ss=s.test("From Sample Class");
g.drawString(ss, 20,30);
}
}
I have created the dependent class as,jar -cf SampleApplet.jar SampleApplet.class
I have created the jar of the above class using ,public class Sample {
public String test(String a)
{
System.out.println(a);
return a;
}
}
I need Sample.jar to be embedded into SampleApplet.jar and want to run "SampleApplet.jar" as stand alone ...jar -cf Sample.jar Sample.class
I wrote the HTML code as,
Please help !<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sample Applet</title>
</head>
<body>
<applet name="SampleApplet" code="SampleApplet"></applet>
</body>
</html>
Thanks,
Ramesh Jothimani