Create a simple HTTP Web Server in Java – Part 1



Java is one of the most used programming language in the World. The JDK comes with a lot of exciting features. In that video, we are going to use the ServerSocket and the Socket classes to create a simple HTTP Web Server in Java.

In the first part of this tutorial, we create the constants for the Web Server (index file, port, 404 file not found page, …) and the Thread which will be used to manage each client connection separately.

The complete source code of this tutorial can be found on the SSaurel’s Blog :

Don’t hesitate if you have any question about this tutorial.

► Discover all the Android Apps offered by SSaurel Mobile Apps :
► Learn to create Android Apps step by step on the SSaurel’s Blog :
► Enter in the Bitcoin and cryptocurrency World :

Nguồn: https://banglasemantics.net/

Xem thêm bài viết: https://banglasemantics.net/category/cong-nghe

12 thoughts on “Create a simple HTTP Web Server in Java – Part 1

  1. i am getting an error at JavaHTTPServer myServer = JavaHTTPServer(serverConnect.accept()); not static method cannot be refrenced to a static context and cannot find symbol;

  2. I like this concept. It is really amazing power of Java.
    I am currently building java web server for automation testing point of view.

  3. This is bullshit….. We come here because we are novice and do not know about the topic and you just put up a video where you code by yourself??? DUH???? Explain what you are doing BRO!!! or atleast put a subtitle if you are that embarassed of your voice!!!

  4. Thanks for this Intellij complained about the @overload directive but removing it didn't seem to have any effect on the operation.

Leave a Reply

Your email address will not be published. Required fields are marked *

Theme: Overlay by Kaira Extra Text
Cape Town, South Africa