This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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: 13006
    
    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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Calling Methods
 
It's not a secret anymore!