B4J Tutorial [server] Run a Server on a VPS

Discussion in 'B4J Tutorials' started by Erel, Nov 15, 2015.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this in the questions forum.
     
  2. Beknazar

    Beknazar Member Licensed User

    Erel,
    please explain how to start server?
    Where it is necessary to write?
    thanks
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    This line starts the server process:

    nohup path_to_java/bin/java -jar somejar.jar > nohup.out &
     
  4. avalle

    avalle Active Member Licensed User

    Perhaps just useful for noobs...
    Code:
    nohup path_to_java/bin/java -jar somejar.jar > nohup.out &
    somejar.jar
    • replace the filename with you B4J compiled JAR file.
    • Compile the server app in Release mode.
    • The compiled JAR file can be found in the Objects folder within your B4J project folder.
    • The default name is "result.jar". You can rename it as you like (still keeping the .jar extension ideally).
    nohup.out
    • It's the file containing the console output.
    • Rename it as you like.
     
    Erel likes this.
  5. ajk

    ajk Active Member Licensed User

    The question may be a bit about the topic: how much theoretically you can squeeze from this type of server? I mean the maximum number of simultaneously served customers.
    100 ?, 1000 ?, 1000,000?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice