Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to invoke a jar file on the server side.

 
cake naiyou
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 java servlet 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.
 
rinku agarwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic