0

I m looking for a simple java library which would let me make a java web server and share some files. Is there any libraries which would let me achieve this?

3
  • Why do you need a library and not the server itself? Commented Aug 23, 2011 at 5:53
  • I would like to make a very simple application which will automatically create a web server and share file across the network..without installing anything except application Commented Aug 23, 2011 at 5:56
  • Is JSP support a requirement or is it just for pure static content? There are many lightweight webservers for static content, lighter than Jetty. Even plain Java 1.6 ships with a builtin one (albeit a bit hidden). Commented Aug 23, 2011 at 20:53

3 Answers 3

3

Use jetty - the lightweight web server and servlet container.

Sign up to request clarification or add additional context in comments.

Comments

1

There is a host of different web servers which all can do what you want (provided it just is allowing users to download files).

A good, small library with a simple-to-get-started method, is the Acme Laboratory Java pages.

http://acme.com/java/software/Acme.Serve.Serve.html

serves the current directory without any fuzz.

Comments

0

You can directly use an Apache WebServer setup for this.

1 Comment

I did not downvote, but the OP tagged jsp and Apache HTTPD doesn't support it at all. That might have been the downvote reason :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.