The Artima Developer Community
Sponsored Link

Java Answers Forum
web browser

1 reply on 1 page. Most recent reply: May 18, 2002 3:34 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
MIchael

Posts: 2
Nickname: wiz01il
Registered: May, 2002

web browser Posted: May 18, 2002 11:48 AM
Reply to this message Reply
Advertisement
Every time i compile an applet and want to display it in the web browser it says that the class is not found .
i'm sure that the html source is correct and also i can see the applet in the appletviewer
it says that it can't find the class only if i try to see it in the browser .
the software is latest so there is no problem with it i can't see only applets that are compiled on my pc.
PLEASE help me!!!


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: web browser Posted: May 18, 2002 3:34 PM
Reply to this message Reply
You applet tag needs the codebase attribute set.


<applet codebase="." code="YourAppletName.class" width="300" height="100"></applet>


codebase="." sets the code base to the current working directory. The java virtual machine will look for the class file in the same directory or folder as the .html web page is in. If the applet class file is not in the same directory as the html web page file, then set it appropriately with the correct uri string.

Flat View: This topic has 1 reply on 1 page
Topic: problem inserting blob in oracle database Previous Topic   Next Topic Topic: Can anyone help please.

Sponsored Links



Google
  Web Artima.com   

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