• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to invoke a jar file on the server side.

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I found some pretty shells, some sea glass and this lovely tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic