[6364] in RedHat Linux List
RE: java.awt.Graphics (fwd)
daemon@ATHENA.MIT.EDU (Mark Schlough)
Tue Nov 26 23:26:18 1996
Date: Tue, 26 Nov 1996 22:25:06 -0600 (CST)
From: Mark Schlough <mtschlou@magallan.cloudnet.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
---------- Forwarded message ----------
Date: Tue, 26 Nov 1996 22:20:26 -0600 (CST)
From: Mark Schlough <mtschlou@magallan.cloudnet.com>
To: bilker@bigfoot.com
Subject: RE: java.awt.Graphics
On Tue, 26 Nov 1996 bilker@bigfoot.com wrote:
Thanks for the prompt reply.
I found my classes when unzipping the magical
/usr/local/java/lib/classes.zip file. ( DUH! )
This spawns another question...
I have two files where I am trying to write the age-old HelloWorld program
(YAWN)
However the portion of the Applet does not want to display the part from
my HelloWorldApplet.class
Here is my code fro HelloWorldApplet.java
*****************************************
import java.awt.Graphics;
class HelloWorldApplet extends java.applet.Applet {
public void paint(Graphics g) {
g.drawString("Hello World!" , 5 ,25);
}
}
And here is the code from my HelloWorldApplet.html file for my Netscape
Browser to read.
HelloWorldApplet.html
<HTML>
<HEAD>
<TITLE>Hello to Everyone!</TITLE>
</HEAD><BODY>
<P>My Java Applet Says:
<APPLET CODE="HelloWorldApplet.class" WIDTH=150 HEIGHT=25>
</BODY>
</HTML>
Also,
When I try to view this applet with
appletviewer HelloWorldApplet.html
I get:
Warning no applets were started make sure the input has an <applet> tag.
use: appletviewer [-debug] url|file
Help me Good Samaratan !
> -----BEGIN PGP SIGNED MESSAGE-----
>
> Hi Mark,
>
> The stanza "java.awt.Graphics" is a qualified Java class name, that is,
> is independent of any particular computer's filename structure. In Unix,
> the file will have a pathname that ends in "java/awt/Graphics.class".
>
> This is why your "find" command failed.
>
> Incidentally, most Linux boxes have a command named "locate" that runs
> off a database constructed in the middle of the night (by the cron daemon).
> On my box I entered the following command (shown with its output):
>
> $ locate java/awt/Graphics.class
> /usr/local/java.1.0/classes/java/awt/Graphics.class
> /usr/local/java/lib/java/awt/Graphics.class
>
> Another note: The "From" header in your mail to the RedHat mail list
> gave your address as "mtschlou@magallan.cloudnet.com". I tried to mail
> this to that address, and it got bounced immediately. I have substituted
> "magellan" for "magallan" in this retry. Whose misspelling is it?
>
> Hope this helps,
> ------------------------------------------------------------
> Bill Kerr bilker@bigfoot.com PGP KeyID: 0F806229
> Fingerprint: 03 6C D4 78 10 FD A0 83 BA 41 8D 2D 4D FD F1 5F
> ------------------------------------------------------------
>
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
>
> iQCVAwUBMpuigvurvFkPgGIpAQEr1QP/ftr/r4hRoLjiVlb8D68RWPzGe9TFu03A
> axSh+yn61prIOxFQnqD0kWhSERbW98MZyHLPBcoW7OT6aYH1nfdst9jtMw4y+3Ep
> v3I7Osht6XR1Mix8BSWdiG0tBH/0pVlqc5ryX9wdmUROO3Rk2W/aAtd7Wb04swn8
> U3ZP+9EI/V0=
> =Fijo
> -----END PGP SIGNATURE-----
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null