The Artima Developer Community
Sponsored Link

Java Answers Forum
Swing Applets

1 reply on 1 page. Most recent reply: May 5, 2002 4:50 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Swing Applets Posted: May 4, 2002 1:56 AM
Reply to this message Reply
Advertisement
hello all..

i have a client/server chatting swing applet ,i have already put the
client.class,server.class ,html code in the web server
in my server computer.

i have already used htmlconvertor .
but when i run the applet in my server computer writting:

http://chatprj/chatting/chat.html

it works well and opens ,but when i open the same page in another computer

the following message appears "class client not found".

where client is my applet in which is put in the html code.


what is the problem ,please i need help..
thanks


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Swing Applets Posted: May 5, 2002 4:50 PM
Reply to this message Reply
Check out your applet tag in the web page you are referencing called "chat.html"

It should look something like this:
<applet code="client.class" codebase="." width="400" height="400"></applet>
where code base points to where the code class is located. If its in the same folder as the chat.html file, then use the "." which stands for the current directory.

If its in another folder, then create a path string which points to it.

eg: codebase="/applets"

codebase="/myappletdirectory"


Is the class being loaded from a jar archive? If so,
t should look like this:
<applet code="client.class" codebase="." arhive="chat.jar" width="400" height="400"></applet>
If client.class is in a jar, then the jar file needs a manifest included with an entry for all the classes needed from the jar.

Flat View: This topic has 1 reply on 1 page
Topic: JTree & Popup Menu Previous Topic   Next Topic Topic: self launched thread with java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use