From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16515 invoked from network); 23 Jan 1999 16:46:35 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Jan 1999 16:46:35 -0000 Received: from adam.cheshire.net (root@adam.cheshire.net [208.153.58.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA17199 for ; Sat, 23 Jan 1999 11:19:38 -0500 Received: from cheshire.net (net4-pool-2.cheshire.net [208.153.58.174]) by adam.cheshire.net (8.9.1/8.9.1) with ESMTP id LAA09823; Sat, 23 Jan 1999 11:11:58 -0500 (EST) Sender: rdp@adam.cheshire.net Message-ID: <36A9F912.C610B025@cheshire.net> Date: Sat, 23 Jan 1999 11:30:10 -0500 From: Rich Payne Organization: alphalinux.org X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.35 i586) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com, Peter Petrakis Subject: Re: Trouble running JDK-1.1.6 References: <36A9EA10.8ED242A@wn.net> <36A9EE00.41579A84@cheshire.net> <36A9F00D.DE69C80@wn.net> <36A9F39C.21C82D02@wn.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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