wood burning stoves 2.0*
The moose likes Servlets and the fly likes Calling Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling Methods" Watch "Calling Methods" New topic
Author

Calling Methods

Muhammad Uzair Baig
Greenhorn

Joined: Mar 02, 2004
Posts: 12
Hi,

I make a simple java class with 2 static methods. When i try
to call these methods in my Servlet error is shown by the compiler.
Compiler can not identity the class. What can i do.

Best regards
Uzair Baig
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You may not have the classes in the right place or your classpath is not set up correctly. You need to provide more information though.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Be sure to put your "simple Java class" in a package. Classes not in packages may not be found because the JVM looks in the "current" directory.
Bill
Muhammad Uzair Baig
Greenhorn

Joined: Mar 02, 2004
Posts: 12
Hello
Dear Bosun and william i already try lot of classpaths and package techniques. But nothing would be happen . Please if u have any other idea or have some different classpath n package technique to plz send me. I will be very thankful to u.
mail me on
uzaircaps@yahoo.com
Best Regards
Uzair Baig
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling Methods
 
Similar Threads
Use of constructor in abstract class?
can i mix classes compiled with diff versions of compiler ?
Chapter 4 - HF Sark study group
remote client provides methods of db.Data?
Progress, I think!