From: Rich Payne <rdp@cheshire.net>
To: axp-list@redhat.com, Peter Petrakis <peterpan@wn.net>
Subject: Re: Trouble running JDK-1.1.6
Date: Sat, 23 Jan 1999 11:30:10 -0500 [thread overview]
Message-ID: <36A9F912.C610B025@cheshire.net> (raw)
In-Reply-To: 36A9F39C.21C82D02@wn.net
OK, I was being stupid there for a minute. Here's what to do....
1) Don't unzip/untar the classes.zip file. It's supposed to be
compressed.
2) Compile your Welcome.java file into a class file
> javac Welcome.java
(BTW: this failed on my machine)
3) Then run the class file, but just give it the class name (no ext).
BUT you are
compiling an applet NOT an application. So you can't use 'java Welcome'
you're going
to need appletviewer or a browser. In this case you'll need to make an
html file (index.html)
that refernces the class.
> appletviewer index.html
You may want to consider an application instead of an applet. Then you
don't need
appletviewer etc... Just extend Object instead of applet and then put in
a main() method
etc...
Hope that helps.
regards,
rdp
Peter Petrakis wrote:
>
> I unzipped and untarred that classes file and then set my classpath to
> it and now I get a diferent error.
>
> java Welcome.java
> Can't find class Welcome.java
>
> Here's the source to it.
>
> import java.applet.Applet;
> import java.awt.Graphics;
>
> public class Welcome extends Applet {
> public void paint( Graphics g)
> {
> g.drawstring( "Welcome to Java programming!", 25,25 );
> }
> }
>
> Any ideas? Thanks.
>
> Peter Petrakis
>
> --
> STCC DEC Alpha Resource Page
> http://math.stcc.mass.edu/petrakis
> PeterPan@wn.net AlphaGuy =)
> "BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
Rich Payne
www.alphalinux.org
next prev parent reply other threads:[~1999-01-23 16:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-23 15:26 Trouble running JDK-1.1.6 Peter Petrakis
1999-01-23 15:32 ` Paul Tomblin
1999-01-23 15:42 ` Rich Payne
1999-01-23 15:51 ` Peter Petrakis
1999-01-23 16:06 ` Peter Petrakis
1999-01-23 16:30 ` Rich Payne [this message]
1999-01-23 16:34 ` Peter Petrakis
1999-01-23 16:20 ` Rich Payne
1999-01-23 16:13 ` Paul Tomblin
1999-01-23 16:41 ` Peter Petrakis
-- strict thread matches above, loose matches on Subject: below --
1999-01-23 16:11 Bob Segrest
1999-01-23 16:13 Bob Segrest
1999-01-23 16:18 ` Paul Tomblin
1999-01-23 20:09 Designer 7
1999-01-23 20:11 Designer 7
1999-01-23 20:31 ` Peter Petrakis
1999-01-23 21:24 Designer 7
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox