2

with javap java.lang.Object we are able to see the methods signature under it, where as with javap javax.servlet.ServletConfig we are not able to see it.

Could any one please suggest any command for checking the method signatures for javax.servlet.ServletConfig

3 Answers 3

1

I don't know if you specifically want a local tool to find the signature, however the best bet is always to look at the API documentation. A google search of the fully qualified class name leads straight to the official API documentation. This will not only show you the method signatures, but often give you valuable contextual information well beyond an argument name or type.

Sign up to request clarification or add additional context in comments.

Comments

0

You should do

java -cp <location-of-servlet-api-jar> javax.servlet.ServletConfig

Comments

0

You will need to locate your servlet-api.jar file and issue the following command:

javap -classpath javax.servlet.ServletConfig

substitute with the path to your servlet-api-.jar

2 Comments

still not working... I am using javap -classpath C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar javax.servlet.ServletConfig ... let me know if I am missing something...
Put quotes around the path to your jar and it should work. javap -classpath "C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar" javax.servlet.ServletConfig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.