The Artima Developer Community
Sponsored Link

Java Answers Forum
need help pls

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

Posts: 2
Nickname: wiz01il
Registered: May, 2002

need help pls Posted: May 18, 2002 11:45 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!!!


Evgen

Posts: 14
Nickname: evgen79
Registered: May, 2002

Re: need help pls Posted: May 18, 2002 2:07 PM
Reply to this message Reply
try following code

//FileName hello.html

<applet codebase="" code="hello.class" width="300" height="250">
</applet>


//FileName hello.java
import java.applet.Applet;
import java.awt.Graphics;
 
public class hello extends Applet {
    public void paint(Graphics g) {
        g.drawString("Hello World!", 0, 50);
    }
}
 


if this not work on your computer than turn console in browser and say what writed in it.

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: need help pls Posted: May 18, 2002 3:37 PM
Reply to this message Reply

<applet codebase="." code="hello.class" width="300" height="250">
</applet>

Flat View: This topic has 2 replies on 1 page
Topic: Problems starting Jserv Previous Topic   Next Topic Topic: the Class class

Sponsored Links



Google
  Web Artima.com   

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