From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28791 invoked from network); 23 Jan 1999 17:01:45 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Jan 1999 17:01:45 -0000 Received: from alphagen.wn.net (38-wn_pm3-2.wn.net [206.190.210.38]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA17649 for ; Sat, 23 Jan 1999 11:34:47 -0500 Received: from wn.net (peterpan@localhost [127.0.0.1]) by alphagen.wn.net (8.8.7/8.8.7) with ESMTP id LAA01352 for ; Sat, 23 Jan 1999 11:34:45 -0500 Sender: peterpan@wn.net Message-ID: <36A9FA25.BF0DD3A1@wn.net> Date: Sat, 23 Jan 1999 11:34:45 -0500 From: Peter Petrakis X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.0-final alpha) MIME-Version: 1.0 To: axp-list@redhat.com 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> <36A9F912.C610B025@cheshire.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > 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) Check this out. When classpath is set to the uncompress classes dir I get. Welcome.java:7: Method drawstring(java.lang.String, int, int) not found in class java.awt.Graphics. g.drawstring( "Welcome to Java programming!", 25,25 ); Now when I set it to classes.zip I get. Unable to initialize threads: cannot find class java/lang/Thread Weird? > 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... I sorta have to do applets cause my java class (which starts tuesday) uses them exclusivly. To get graded we're supposed to put our applets and source on the web so the prof can grade it so they have to applets. BTW I just copied that example out of the text I know nothing about java yet. Thanks. Peter Petrakis > 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 > > -- > 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 -- 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..."