Re: Cannot access class

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 02/17/04


Date: Tue, 17 Feb 2004 15:43:46 GMT

James wrote:
> "Andrew Thompson" ...
>> James wrote:
>>> Hi there, I'm trying to create an applet where by there is a bar at
>>> the bottom...
<snip>
> ...I tried putting it in its own file and made
> it 'public' to test if this is what you meant but received the
> 'cannot resolve symbol' errors.

What IDE are you using?
Are you compiling and running
from the command line (DOS)?

> ..I don't think I understand what you
> were saying. I need to revise public and private classes, I think!

Think so, ;-)

The second class was not 'private' but 'default'.
Their cannot be a private class, as nothing else
could access it.

> It works fine the way you wrote it on here, though.

Yes, I tried to make it is simple as possible.
Both class files would end up in the same
directory and should work, without needing
to worry about splitting the file, making
package statements/imports etc.

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


Relevant Pages

  • Re: Cannot access class
    ... James wrote: ... I need to revise public and private classes, ... The second class was not 'private' but 'default'. ...
    (comp.lang.java.help)
  • Re: private psychiatrist
    ... [snip snip] ... I want a refund of my fees and ... You would have more rights if you had seen him on the NHS. ... There's a few things I would like to ask in private. ...
    (uk.legal)
  • Re: Looking for partners in US
    ... Systems was taken private in the summer of 2005, senior managers ... Shareholders beg, literally BEG, for these things and managers have genuine risk. ...
    (alt.machines.cnc)
  • Re: Cuba embargo popular, new poll indicates
    ...  > Public opinion. ... called Cuba Archive project. ...  > You mean private taxis. ...
    (soc.culture.cuba)
  • Re: Looking for partners in US
    ... Wall Street's finest legal minds, ... Systems was taken private in the summer of 2005, ... Unka' George [George McDuffee] ...
    (alt.machines.cnc)