[5982] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (Siva Venkatasiva Mortala)
Thu Mar 7 15:14:41 1996

From: siva@cosmos.bellcore.com (Siva Venkatasiva Mortala)
Date: Thu, 7 Mar 1996 09:21:27 +0500
To: java-interest@java.sun.com

 Hi,

	Declare your class as public.Since u did not declare it as
public it is not available for the browser. For example u should declare it as 

public class HelloWorldApplet extends java.applet.Applet {
....
what ever code here
...
}

goodluck
siva
 


> From daemon@javasoft.com Mon Mar  4 16:33:26 1996
> Date: Sun, 3 Mar 96 10:48 EST
> X-Sender: rstober@mail.iag.net
> Mime-Version: 1.0
> To: java-interest@java.sun.com
> From: rstober@landrush.com (Robert Stober)
> Subject: Stupid Newbie Questions
> Cc: rstober@landrush.com
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> 
> Hi all,
> 
> I'm new to Java and am trying make this rediculously simple script run.
> I've tried to run it using Netscape 2.0 and the below HTML code, but all I
> get is "My java Applet says:". I also tried to run it using the
> Appletviewer and all I get the is "No Applets Running" message at the
> bottom, even when I start the Appletviewer application by dropping the HTML
> file (below) right on the icon.
> 
> BTW- I'm using the Mac Java version 1.0b to compile. The script below which
> is supposed to display "Hello world!" below the header "My java Applet
> says:".As far as I know, the script below should work, and the HTML which
> calls the compiled "HelloWorldApplet.class" should also work.
> 
> Anybody got any suggestions of what could be causing my problem (I believe
> it's called operator ignorance)....
> 
> Thanks in advance for your input:->
> 
> ________________________________________________________________________________
> 
> import java.awt.Graphics;
> 
> class HelloWorldApplet extends java.applet.Applet {
> 
>                 public void paint(Graphics g) {
>                                 g.drawString("Hello world!", 5, 25);
>                 }
> }
> ________________________________________________________________________________
> 
> <HTML>
> <HEAD>
> <TITLE>Hello to Everyone!</TITLE>
> </HEAD>
> <BODY>
> <H2>My java Applet says:</H2>
> <APPLET CODE="HelloWorldApplet.class" WIDTH=150 HEIGHT=25></APPLET>
> </BODY>
> </HTML>
> 
> ________________________________________________________________________________
> 
> Another BTW: Do I need the </APPLET> tag?
> 
> _______________ Landrush - Interactive Marketing Solutions ______________
> 
> Robert Stober                                         (352) 319-4779 Pager
> WEB: http://www.landrush.com/                         (352) 357-4174 Office
> EMAIL: rstober@landrush.com                           (352) 357-1904 Fax
> 
> __________ Searchable Database of Florida Real Estate Listings __________
> 
> 
> 
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com


 
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post