Index: [thread] [date] [subject] [author]
  From: Brian Appel <bra2@acpub.duke.edu>
  To  : 
  Date: Sun, 28 Mar 1999 19:39:48 -0500

Re: Error

--------------FF18E1822B833574D34B27CC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

If you have problems use the HELP link on the CPS108 page to the using java on
acpub machines ... here it will tell you how to modify your CLASSPATH in the
.cshrc file, mine is
the default one with

    setenv /afs/acpub/users/o/l/ola/java/:\
              /afs/acpub/project/cps/pkgs/courseware/stuff:.

I did this and my stuff works fine now

Janel Baskerville wrote:

> But I have done all of this and it is in the right directory. I still do not
> know what is wrong because this error comes up when I run the program not
> compile it.
>
> Michael Abernethy wrote:
>
> > You most likely forgot to make your constructor public or you named your
> > Dice class something other than Dice, or your Dice class isn't in the
> > same directory as the PigGame class.
> >
> > >
> > > Does anyone know what this error means:
> > >
> > > java.lang.NoClassDefFoundError: Dice
> > >         at PigGame.playGame(PigGame.java:28)
> > >         at PigGame.main(PigGame.java:69)
> > >
> >
> > Mike Abernethy
> > www.duke.edu/~mna
> > IBM Club Cyberblue - www.cybrblu.ibm.com

--------------FF18E1822B833574D34B27CC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
If you have problems use the HELP link on the CPS108 page to the using
<i>java on acpub machines</i> ... here it will tell you how to modify your
CLASSPATH in the .cshrc file, mine is
<br>the default one with
<p>    setenv /afs/acpub/users/o/l/ola/java/:\
<br>             
/afs/acpub/project/cps/pkgs/courseware/stuff:.
<p>I did this and my stuff works fine now
<p>Janel Baskerville wrote:
<blockquote TYPE=CITE>But I have done all of this and it is in the right
directory. I still do not
<br>know what is wrong because this error comes up when I run the program
not
<br>compile it.
<p>Michael Abernethy wrote:
<p>> You most likely forgot to make your constructor public or you named
your
<br>> Dice class something other than Dice, or your Dice class isn't in
the
<br>> same directory as the PigGame class.
<br>>
<br>> >
<br>> > Does anyone know what this error means:
<br>> >
<br>> > java.lang.NoClassDefFoundError: Dice
<br>> >         at PigGame.playGame(PigGame.java:28)
<br>> >         at PigGame.main(PigGame.java:69)
<br>> >
<br>>
<br>> Mike Abernethy
<br>> www.duke.edu/~mna
<br>> IBM Club Cyberblue - www.cybrblu.ibm.com</blockquote>
</html>

--------------FF18E1822B833574D34B27CC--



Index: [thread] [date] [subject] [author]