I download some open source software, like weka or any other ones, as a jar file. I can run it on linux machine using command line as
At present, I want to learn how to integrate this jar file into an web-based applications. In other words, I want this jar file to be run and wait on a server; I can create a web page, and let user submit the request, like
This request will be transferred to the waiting jar file, and get the result.
I have no previous experience on server programming, so I do not know whether javaservlet is the correct tool for fulfill this kind of task? And if you can share any suggestion, hint, or example, that would be wonderful. Thanks.
posted 3 years ago
I think your problem is that you dont know how to use external jar file in a web application. you can just include it in the classpath of the web application or you can check where other jar files in your applications are placed and then you can place it over there. then you can use the classes of the jar file as normal java classes written by you.