Re: Function not visible outside the NetBeans IDE

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 11/30/04


Date: Tue, 30 Nov 2004 15:31:19 GMT

On 30 Nov 2004 06:43:45 -0800, Rick T. wrote:

> I wrote a GUI application ..

> ..when I try to run it from the commandline or a desktop icon, the GUI
> comes up but one of the methods I'm calling from another class claims
> to be non-existent.

So that is an IAmAnIllusionException? Or perhaps a NoSuchMethodError?
<http://www.physci.org/codes/javafaq.jsp#exact>

> The class I'm referencing is public and so is the method I'm invoking.

Can your GUI find the class itself? Are you invoking a static method?

> Can anyone tell me how this is possible?
>
> My CLASSPATH is set up to point to the directory where all of my
> classes are --including the one I'm having a problem with.

The advice to add projects or directories to the classpath is very old.
Sun themselves now recommend you do *not* do that. Instead add the
appropriate paths at runtime.

> I appreciate any advice you may have!

Be kind to your mother (and mothers in general).
Refrain from cross-posting.
<http://www.physci.org/codes/javafaq.jsp#xpost>

F'Ups set to c.l.j.help.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane


Relevant Pages

  • Re: Function not visible outside the NetBeans IDE
    ... > comes up but one of the methods I'm calling from another class claims ... Or perhaps a NoSuchMethodError? ... The advice to add projects or directories to the classpath is very old. ... Be kind to your mother. ...
    (comp.lang.java.programmer)
  • Re: Function not visible outside the NetBeans IDE
    ... > comes up but one of the methods I'm calling from another class claims ... Or perhaps a NoSuchMethodError? ... The advice to add projects or directories to the classpath is very old. ... Be kind to your mother. ...
    (comp.lang.java.gui)