From: Peter Petrakis <peterpan@wn.net>
To: axp-list@redhat.com
Subject: Re: Trouble running JDK-1.1.6
Date: Sat, 23 Jan 1999 11:34:45 -0500 [thread overview]
Message-ID: <36A9FA25.BF0DD3A1@wn.net> (raw)
In-Reply-To: 36A9F912.C610B025@cheshire.net
> 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 <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
>
> --
> 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 <click clock> Housewares..."
next prev parent reply other threads:[~1999-01-23 17:01 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
1999-01-23 16:34 ` Peter Petrakis [this message]
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