About 818,000 results
Open links in new tab
  1. Simple HTTP server in Java using only Java SE API

    Sep 17, 2010 · Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and …

  2. java - How do I set the proxy to be used by the JVM - Stack Overflow

    Sep 23, 2008 · Many times, a Java app needs to connect to the Internet. The most common example happens when it is reading an XML file and needs to download its schema. I am …

  3. How do I set the default Java installation/runtime (Windows)?

    This is a bit of a pain on Windows. Here's what I do. Install latest Sun JDK, e.g. 6u11, in path like c:\install\jdk\sun\6u11, then let the installer install public JRE in the default place (c:\program …

  4. java - Configure server port when running jar - Stack Overflow

    Jan 17, 2017 · java -jar target/my-application-jar-path.jar -Dserver.port=8888 Will run on the port 8080, it will ignore the JVM parameters after -jar Best practice in spring-boot application is to …

  5. java - How to configure port for a Spring Boot application - Stack …

    How do I configure the TCP/IP port listened on by a Spring Boot application, so it does not use the default port of 8080.

  6. Increase heap size in Java - Stack Overflow

    Oct 14, 2009 · The InitialRAMPercentage JVM parameter allows us to configure the initial heap size of the Java application. It’s a percentage of the total memory of a physical server or …

  7. How to compile this Java Server/Client code in CMD

    Dec 1, 2017 · Make sure that Java is already installed in the system with java -version command. Create two files named as Server.java and Client.java with content in your question.

  8. java - Set JRE to use Windows trust store, specifically the user's ...

    Mar 8, 2018 · This forced Java to use the Windows trust store, which users can write to. Unfortunately, users can only write to their certificate store, not to the computer's certificate store.

  9. How to create a basic Java Server? - Stack Overflow

    Aug 16, 2013 · 0 I did a Java program that basically implemented a sort of chat between a client and a server. Used a socket to open up a port of the server that would hear incoming …

  10. Create a simple HTTP server with Java? - Stack Overflow

    Apr 26, 2010 · 5 Java 6 has a default embedded http server. Check the thread here By the way, if you plan to have a rest web service, here is a simple example using jersey.