wood burning stoves
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

Calling Methods

Muhammad Uzair Baig

Joined: Mar 02, 2004
Posts: 12

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.

So much trouble in the world -- Bob Marley
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
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.
Muhammad Uzair Baig

Joined: Mar 02, 2004
Posts: 12
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
Best Regards
Uzair Baig
I agree. Here's the link: http://aspose.com/file-tools
subject: Calling Methods
It's not a secret anymore!