Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 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; 4+ 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] 4+ messages in thread

* Re: Trouble running JDK-1.1.6
  1999-01-23 16:13 Trouble running JDK-1.1.6 Bob Segrest
@ 1999-01-23 16:18 ` Paul Tomblin
  1999-01-23 16:57   ` Trouble running JDK-1.1.6 - IT WORKS! Peter Petrakis
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

* Re: Trouble running JDK-1.1.6 - IT WORKS!
  1999-01-23 16:18 ` Paul Tomblin
@ 1999-01-23 16:57   ` Peter Petrakis
  1999-01-24 13:30     ` Alan Wood
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Petrakis @ 1999-01-23 16:57 UTC (permalink / raw)
  To: axp-list

First there was a mistake on my part. A syntax error where g.drawstring
should have been g.drawString. Second, It still won't work with the
compress classes file. With my classpath set to the unzipped classes
source i do this.

javac Welcome.java

It successfully creates a class file. I then steal some html from  a
friends page and start the applet viewer.

appletviewer index.html 

and it works!!

Thank you all for your help.

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] 4+ messages in thread

* Re: Trouble running JDK-1.1.6 - IT WORKS!
  1999-01-23 16:57   ` Trouble running JDK-1.1.6 - IT WORKS! Peter Petrakis
@ 1999-01-24 13:30     ` Alan Wood
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Wood @ 1999-01-24 13:30 UTC (permalink / raw)
  To: axp-list

Hi,

 Just a guess, I think I saw you mention that your
compressed versions were tar'd, might the compressed
version need to be simply a zip of the directory
structure ?

Alan

Peter Petrakis wrote:
> 
> First there was a mistake on my part. A syntax error where g.drawstring
> should have been g.drawString. Second, It still won't work with the
> compress classes file. With my classpath set to the unzipped classes
> source i do this.
> 
> javac Welcome.java
> 
> It successfully creates a class file. I then steal some html from  a
> friends page and start the applet viewer.
> 
> appletviewer index.html
> 
> and it works!!
> 
> Thank you all for your help.
> 
> 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] 4+ messages in thread

end of thread, other threads:[~1999-01-24 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-23 16:13 Trouble running JDK-1.1.6 Bob Segrest
1999-01-23 16:18 ` Paul Tomblin
1999-01-23 16:57   ` Trouble running JDK-1.1.6 - IT WORKS! Peter Petrakis
1999-01-24 13:30     ` Alan Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox