Error while running Choose to query JAR file

Asked

Viewed 59 times

1

I created a Servlet that should access a class in java that is in a Jar file in Servlet Buildpath, but it is giving an error, I will leave the prints here for those who can help me take a look. Thank you!

Este é o erro

Este é o código do servlet

  • 1

    The line cep.consulta(...); has a warn, what it says in the IDE message?

  • says this: The Static method query(String) from the type Query should be accessed in a Static way

  • 1

    publish the code of the class ConsultaCEP();! And try: delete the line 31 and replace cep.consulta(numCep1); for ConsultaCEP().consulta(numCep1);

  • The stackoverflow won’t let me put any more :/

  • @Marcossousa could add me in some network to get me some basic doubts?

  • @Igorsilva, yes I can. but we can open a chat, here by SOF!

  • @Igorsilva, comment was helpful to your question?

  • Thank you guys! Actually nothing worked because the JAR file was compiled with problems.

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.