Let's claim that I have jar called j.jar in folder called: my_folder.
Then in this jar I have folder called:javclass and in this folder ther is main class called: main.class.

And I have a question:
How html file which opens it should look like ??

Recommended Answers

All 2 Replies

<applet code=Applet1.class width="200" height="200">
if it ain't not support the <code>applet</code> tag.
</applet>

i just got it from a java tutorial site.the credit is not mine.
hope it'll give you an idea.
^^

Width and height could be set whatever you want i to be. Your xxx.html would look something like:

<applet code="javclass/main.class" archive="my_folder/j.jar" width="500" height="500">
</applet>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.