Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2004

Tip: Looking for answers? Try searching our database.

Function not visible outside the NetBeans IDE

Thread view: 
Rick T. - 30 Nov 2004 14:43 GMT
Hi:

I wrote a GUI application using NetBeans IDE 3.6 and J2SDK1.4.2_05
which worked out really well within the NetBeans IDE environment. But
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.

The class I'm referencing is public and so is the method I'm invoking.
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.

I appreciate any advice you may have!

Thanks!

Rick T.
DRS Comm
Andrew Thompson - 30 Nov 2004 15:31 GMT
> 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.

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.