File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Run java app on server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Run java app on server" Watch "Run java app on server" New topic

Run java app on server

Arr Dee

Joined: Apr 09, 2009
Posts: 1
Hello all,

I'm fairly new to Java programming (actually I did use Java for quite some time, but only for standalone applications).

I have this small Java application (plain and simple) which takes a few arguments. I want to be able to invoke my application from a webbrowser (and pass some parameters), so by URL.

My question is plain and simple: how should / could I do this?

Best, R4D2
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33107

You'll need to wrap your program with a "web application" on an "application server." The simplest web application is a servlet that takes parameters and calls your program. Tomcat is a simple server to install.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10824

Arr Dee,
Please check your private messages for an important administrative matter.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Run java app on server
It's not a secret anymore!