java - Public web service with jar file -


my 2 class files:

publish.java

class publish() {   public static void main(string[] args) {     // ............     endpoint endpoint = endpoint.publish("url", new classa())     //.......   } } 

classa.java

@webservice class classa() {   @webmethod    public getdetails() {     //............     //sql connections     //.......   } } 

in classa, have sql connection i've added jar file. compiled with:

javac -cp .:sqljdbc4-2.0.jar classa.java 

now published it, when invoke service method, saying sql dependacy classes not found. how can publish class file jar files. i've done in cmd prompt.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -