* Re: Trouble running JDK-1.1.6
@ 1999-01-23 20:11 Designer 7
1999-01-23 20:31 ` Peter Petrakis
0 siblings, 1 reply; 17+ messages in thread
From: Designer 7 @ 1999-01-23 20:11 UTC (permalink / raw)
To: axp-list
Ah.. that reminds me... I had to create the classes.zip file as the
tarball I downloaded had the tree, but wasn't in zip format...
D.
>Peter Petrakis wrote:
>>
>> Hi guys,
>> I got Uncle George's JDK from blackdown and installed it according to
>> the FAQ. My environemnt variables are as follows:
>>
>> JAVA_HOME=/usr/local/jdk-1.1.6
>> CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
>> PATH=$JAVA_HOME/bin:$PATH
>> DISPLAY=:0
>>
>> Now I try to compile a simple java proram called welecome.java and
get
>> this:
>>
>> java welecome.java
>> Unable to initialize threads: cannot find class java/lang/Thread
>
>That means it can't fine the classes.zip file. Well, it used to be
>called classes.zip. This is the class library that comes with the
>JDK. Make sure it's in your classpath. Are you sure about the
>classes.gz file name. I have yet to play with the Alpha port of
>the JDK but on most other platforms it's called classes.zip.
>
>According to your info above, you're telling the Java VM that your
>class path is:
>
>.:/usr/local/jdk-1.1.6/jdk-1.1.6/lib/classes.gz
>
>Is that right?
>
>>
>> What am I missing? My system is a 533LX , RH-5.2, kernel 2.2-final,
>> lesstif-0.87.1 installed to /usr/X11R6. 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
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
1999-01-23 20:11 Trouble running JDK-1.1.6 Designer 7
@ 1999-01-23 20:31 ` Peter Petrakis
0 siblings, 0 replies; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 20:31 UTC (permalink / raw)
To: axp-list
Hi D,
Were'd you get it? Do wanna upload it to my site? Make an dir called
java. Thanks.
Peter Petrakis
Designer 7 wrote:
>
> Ah.. that reminds me... I had to create the classes.zip file as the
> tarball I downloaded had the tree, but wasn't in zip format...
>
> D.
>
> >Peter Petrakis wrote:
> >>
> >> Hi guys,
> >> I got Uncle George's JDK from blackdown and installed it according to
> >> the FAQ. My environemnt variables are as follows:
> >>
> >> JAVA_HOME=/usr/local/jdk-1.1.6
> >> CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
> >> PATH=$JAVA_HOME/bin:$PATH
> >> DISPLAY=:0
> >>
> >> Now I try to compile a simple java proram called welecome.java and
> get
> >> this:
> >>
> >> java welecome.java
> >> Unable to initialize threads: cannot find class java/lang/Thread
> >
> >That means it can't fine the classes.zip file. Well, it used to be
> >called classes.zip. This is the class library that comes with the
> >JDK. Make sure it's in your classpath. Are you sure about the
> >classes.gz file name. I have yet to play with the Alpha port of
> >the JDK but on most other platforms it's called classes.zip.
> >
> >According to your info above, you're telling the Java VM that your
> >class path is:
> >
> >.:/usr/local/jdk-1.1.6/jdk-1.1.6/lib/classes.gz
> >
> >Is that right?
> >
> >>
> >> What am I missing? My system is a 533LX , RH-5.2, kernel 2.2-final,
> >> lesstif-0.87.1 installed to /usr/X11R6. 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
> >
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> --
> 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..."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
@ 1999-01-23 21:24 Designer 7
0 siblings, 0 replies; 17+ messages in thread
From: Designer 7 @ 1999-01-23 21:24 UTC (permalink / raw)
To: axp-list
sure.. I will upload it as soon as X is finished.... man... compiling X
is taking forever!!!! I'm linking it with libffm...
I will make the java folder in the from_designer_seven dir.
D.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
@ 1999-01-23 20:09 Designer 7
0 siblings, 0 replies; 17+ messages in thread
From: Designer 7 @ 1999-01-23 20:09 UTC (permalink / raw)
To: axp-list
Uh.. first of all javac is the compiler.. java is the interpretor.. I'm
sure you'll get a lot of similiar responses... but anyways. .. I had
1.1.6 runnning fine.. and now using 1.1.7...
D.
>Hi guys,
>I got Uncle George's JDK from blackdown and installed it according to
>the FAQ. My environemnt variables are as follows:
>
>JAVA_HOME=/usr/local/jdk-1.1.6
>CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
>PATH=$JAVA_HOME/bin:$PATH
>DISPLAY=:0
>
>Now I try to compile a simple java proram called welecome.java and get
>this:
>
>java welecome.java
>Unable to initialize threads: cannot find class java/lang/Thread
>
>What am I missing? My system is a 533LX , RH-5.2, kernel 2.2-final,
>lesstif-0.87.1 installed to /usr/X11R6. 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
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: Trouble running JDK-1.1.6
@ 1999-01-23 16:13 Bob Segrest
1999-01-23 16:18 ` Paul Tomblin
0 siblings, 1 reply; 17+ messages in thread
From: Bob Segrest @ 1999-01-23 16:13 UTC (permalink / raw)
To: axp-list
Hi Peter,
Be sure to consolidate your notes and post a message with the set up details
when you get this stuff figured out...
Bob Segrest
-----Original Message-----
From: Peter Petrakis [mailto:peterpan@wn.net]
Sent: Saturday, January 23, 1999 11:07 AM
To: axp-list@redhat.com
Subject: Re: Trouble running JDK-1.1.6
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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Trouble running JDK-1.1.6
1999-01-23 16:13 Bob Segrest
@ 1999-01-23 16:18 ` Paul Tomblin
0 siblings, 0 replies; 17+ messages in thread
From: Paul Tomblin @ 1999-01-23 16:18 UTC (permalink / raw)
To: axp-list
Quoting Bob Segrest (Bob.Segrest@digital.com):
> Hi Peter,
>
> Be sure to consolidate your notes and post a message with the set up details
> when you get this stuff figured out...
In case anybody cares, here is the setup script I've been using for a year or
so:
I have the following alias set up in my .profile:
sys=`uname -m`
alias setjdk=". $HOME/bin/setjdk_$sys"
And then in ~/bin, I have a setjdk_alpha that looks like:
# Set up environment for using JDK
JDK_HOME=/usr/local/
JAVA_HOME=/usr/local
SWING_HOME=/usr/local/swing
CLASSPATH=.:$HOME/java/:${HOME}/java/com/bls/SSF/crysec.jar:${SWING_HOME}/swingall.jar:${JDK_HOME}/lib/classes.zip
export JDK_HOME JAVA_HOME CLASSPATH
export PATH=$JDK_HOME/bin:$PATH
I have a similar setjdk_i486 that looks like:
# Set up environment for using JDK
JDK_HOME=/usr/jdk
JAVA_HOME=/usr/jdk
SWING_HOME=/usr/local/swing
CLASSPATH=.:$HOME/java/:${HOME}/java/com/bls/SSF/crysec.jar:${SWING_HOME}/swingall.jar:${JDK_HOME}/lib/classes.zip
export JDK_HOME JAVA_HOME CLASSPATH
export SWING_HOME
export PATH=${JDK_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${JDK_HOME}/lib/i486:${JDK_HOME}/lib/
export JAVA_COMPILER=tya
--
Paul Tomblin, not speaking for anybody.
"But I heard him exclaim, as he climbed in the night
Merry Christmas to all, I have traffic in sight" - Phyllis Moses
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: Trouble running JDK-1.1.6
@ 1999-01-23 16:11 Bob Segrest
0 siblings, 0 replies; 17+ messages in thread
From: Bob Segrest @ 1999-01-23 16:11 UTC (permalink / raw)
To: axp-list
Interesting..... I haven't done anything at all with Java and I don't know
anything about it to speak of. I didn't think there was a Java virtual
machine for Alpha Linux. When I use whatis or apropos to find Java on my
Alpha running RedHat 5.2 nothing shows up except guavac.
Is the jvm part of the JDK you pulled from Uncle George's ???
Bob Segrest
-----Original Message-----
From: Peter Petrakis [mailto:peterpan@wn.net]
Sent: Saturday, January 23, 1999 10:52 AM
To: axp-list@redhat.com
Subject: Re: Trouble running JDK-1.1.6
> That means it can't fine the classes.zip file. Well, it used to be
> called classes.zip. This is the class library that comes with the
> JDK. Make sure it's in your classpath. Are you sure about the
> classes.gz file name. I have yet to play with the Alpha port of
> the JDK but on most other platforms it's called classes.zip.
I just decompressed classes,gz and zipped as classes.zip
> According to your info above, you're telling the Java VM that your
> class path is:
>
> .:/usr/local/jdk-1.1.6/jdk-1.1.6/lib/classes.gz
>
> Is that right?
I fixed that. According to env these are my varibles:
JAVA_HOME=/usr/local/jdk-1.1.6
CLASSPATH=.:/usr/local/jdk-1.1.6/lib/classes.zip
DISPLAY=:0.0
I try again and get:
[root@alphagen bjava]# java Welcome.java
Unable to initialize threads: cannot find class java/lang/Thread
I just unzipped and untar the classes file and found there is a
Thread.class .
Maybe it doesn't like the compression? 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Trouble running JDK-1.1.6
@ 1999-01-23 15:26 Peter Petrakis
1999-01-23 15:32 ` Paul Tomblin
1999-01-23 15:42 ` Rich Payne
0 siblings, 2 replies; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 15:26 UTC (permalink / raw)
To: axp-list@redhat.com
Hi guys,
I got Uncle George's JDK from blackdown and installed it according to
the FAQ. My environemnt variables are as follows:
JAVA_HOME=/usr/local/jdk-1.1.6
CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
PATH=$JAVA_HOME/bin:$PATH
DISPLAY=:0
Now I try to compile a simple java proram called welecome.java and get
this:
java welecome.java
Unable to initialize threads: cannot find class java/lang/Thread
What am I missing? My system is a 533LX , RH-5.2, kernel 2.2-final,
lesstif-0.87.1 installed to /usr/X11R6. 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..."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
1999-01-23 15:26 Peter Petrakis
@ 1999-01-23 15:32 ` Paul Tomblin
1999-01-23 15:42 ` Rich Payne
1 sibling, 0 replies; 17+ messages in thread
From: Paul Tomblin @ 1999-01-23 15:32 UTC (permalink / raw)
To: axp-list
Quoting Peter Petrakis (peterpan@wn.net):
> Hi guys,
> I got Uncle George's JDK from blackdown and installed it according to
> the FAQ. My environemnt variables are as follows:
>
> JAVA_HOME=/usr/local/jdk-1.1.6
> CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
^^^^^^^^^^
That should be classes.zip. As far as I know, nobody has hacked in gzip
support into JDK.
--
Paul Tomblin, not speaking for anybody.
"But I heard him exclaim, as he climbed in the night
Merry Christmas to all, I have traffic in sight" - Phyllis Moses
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Trouble running JDK-1.1.6
1999-01-23 15:26 Peter Petrakis
1999-01-23 15:32 ` Paul Tomblin
@ 1999-01-23 15:42 ` Rich Payne
1999-01-23 15:51 ` Peter Petrakis
1 sibling, 1 reply; 17+ messages in thread
From: Rich Payne @ 1999-01-23 15:42 UTC (permalink / raw)
To: axp-list
Peter Petrakis wrote:
>
> Hi guys,
> I got Uncle George's JDK from blackdown and installed it according to
> the FAQ. My environemnt variables are as follows:
>
> JAVA_HOME=/usr/local/jdk-1.1.6
> CLASSPATH=.:$JAVA_HOME/jdk-1.1.6/lib/classes.gz
> PATH=$JAVA_HOME/bin:$PATH
> DISPLAY=:0
>
> Now I try to compile a simple java proram called welecome.java and get
> this:
>
> java welecome.java
> Unable to initialize threads: cannot find class java/lang/Thread
That means it can't fine the classes.zip file. Well, it used to be
called classes.zip. This is the class library that comes with the
JDK. Make sure it's in your classpath. Are you sure about the
classes.gz file name. I have yet to play with the Alpha port of
the JDK but on most other platforms it's called classes.zip.
According to your info above, you're telling the Java VM that your
class path is:
.:/usr/local/jdk-1.1.6/jdk-1.1.6/lib/classes.gz
Is that right?
>
> What am I missing? My system is a 533LX , RH-5.2, kernel 2.2-final,
> lesstif-0.87.1 installed to /usr/X11R6. 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
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:20 ` Rich Payne
0 siblings, 2 replies; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 15:51 UTC (permalink / raw)
To: axp-list
> That means it can't fine the classes.zip file. Well, it used to be
> called classes.zip. This is the class library that comes with the
> JDK. Make sure it's in your classpath. Are you sure about the
> classes.gz file name. I have yet to play with the Alpha port of
> the JDK but on most other platforms it's called classes.zip.
I just decompressed classes,gz and zipped as classes.zip
> According to your info above, you're telling the Java VM that your
> class path is:
>
> .:/usr/local/jdk-1.1.6/jdk-1.1.6/lib/classes.gz
>
> Is that right?
I fixed that. According to env these are my varibles:
JAVA_HOME=/usr/local/jdk-1.1.6
CLASSPATH=.:/usr/local/jdk-1.1.6/lib/classes.zip
DISPLAY=:0.0
I try again and get:
[root@alphagen bjava]# java Welcome.java
Unable to initialize threads: cannot find class java/lang/Thread
I just unzipped and untar the classes file and found there is a
Thread.class .
Maybe it doesn't like the compression? 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..."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
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:20 ` Rich Payne
1 sibling, 1 reply; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 16:06 UTC (permalink / raw)
To: axp-list
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..."
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Trouble running JDK-1.1.6
1999-01-23 16:06 ` Peter Petrakis
@ 1999-01-23 16:30 ` Rich Payne
1999-01-23 16:34 ` Peter Petrakis
0 siblings, 1 reply; 17+ messages in thread
From: Rich Payne @ 1999-01-23 16:30 UTC (permalink / raw)
To: axp-list, Peter Petrakis
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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Trouble running JDK-1.1.6
1999-01-23 16:30 ` Rich Payne
@ 1999-01-23 16:34 ` Peter Petrakis
0 siblings, 0 replies; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 16:34 UTC (permalink / raw)
To: axp-list
> 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..."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
1999-01-23 15:51 ` Peter Petrakis
1999-01-23 16:06 ` Peter Petrakis
@ 1999-01-23 16:20 ` Rich Payne
1999-01-23 16:13 ` Paul Tomblin
1999-01-23 16:41 ` Peter Petrakis
1 sibling, 2 replies; 17+ messages in thread
From: Rich Payne @ 1999-01-23 16:20 UTC (permalink / raw)
To: axp-list
> [root@alphagen bjava]# java Welcome.java
> Unable to initialize threads: cannot find class java/lang/Thread
What if you try:
java -classpath /usr/local/jdk-1.1.6/lib/classes.zip:. Welcome.java
(not sure if that's the right path to you classes.zip file).
>
> I just unzipped and untar the classes file and found there is a
> Thread.class .
> Maybe it doesn't like the compression? Thanks.
Well, the classes are usually compressed. Maybe if it came
with a .gz that's right. I've just never seen that before.
>
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
1999-01-23 16:20 ` Rich Payne
@ 1999-01-23 16:13 ` Paul Tomblin
1999-01-23 16:41 ` Peter Petrakis
1 sibling, 0 replies; 17+ messages in thread
From: Paul Tomblin @ 1999-01-23 16:13 UTC (permalink / raw)
To: axp-list
Quoting Rich Payne (rdp@cheshire.net):
> > [root@alphagen bjava]# java Welcome.java
> > Unable to initialize threads: cannot find class java/lang/Thread
>
> What if you try:
>
> java -classpath /usr/local/jdk-1.1.6/lib/classes.zip:. Welcome.java
>
You don't run the .java file, you run the class file. And you do that by
specifying the class name, not the file name. So to start a java program
called Welcome, which was compiled from Welcome.java into Welcome.class, you
say "java Welcome".
--
Paul Tomblin, not speaking for anybody.
"But I heard him exclaim, as he climbed in the night
Merry Christmas to all, I have traffic in sight" - Phyllis Moses
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Trouble running JDK-1.1.6
1999-01-23 16:20 ` Rich Payne
1999-01-23 16:13 ` Paul Tomblin
@ 1999-01-23 16:41 ` Peter Petrakis
1 sibling, 0 replies; 17+ messages in thread
From: Peter Petrakis @ 1999-01-23 16:41 UTC (permalink / raw)
To: axp-list
> > [root@alphagen bjava]# java Welcome.java
> > Unable to initialize threads: cannot find class java/lang/Thread
>
> What if you try:
>
> java -classpath /usr/local/jdk-1.1.6/lib/classes.zip:. Welcome.java
I get the same error as above when I do that. When I change it to javac
with the same arguments
i get this. The path is correct to
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 );
^
1 error
[root@alphagen bjava]# javac -classpath
/usr/local/jdk-1.1.6/lib/classes.zip
elcome.java
Welcome.java:1: Class java.applet.Applet not found in import.
import java.applet.Applet;
^
Welcome.java:2: Package java.awt not found in import.
import java.awt.*;
^
Welcome.java:4: Superclass java.applet.Applet of class Welcome not
found.
public class Welcome extends Applet {
^
3 errors
> > 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..."
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~1999-01-23 21:51 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-23 20:11 Trouble running JDK-1.1.6 Designer 7
1999-01-23 20:31 ` Peter Petrakis
-- strict thread matches above, loose matches on Subject: below --
1999-01-23 21:24 Designer 7
1999-01-23 20:09 Designer 7
1999-01-23 16:13 Bob Segrest
1999-01-23 16:18 ` Paul Tomblin
1999-01-23 16:11 Bob Segrest
1999-01-23 15:26 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
1999-01-23 16:20 ` Rich Payne
1999-01-23 16:13 ` Paul Tomblin
1999-01-23 16:41 ` Peter Petrakis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox