Results 1 to 5 of 5

Thread: What is server?

  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Thumbs down What is server?

    Hi,

    Can any one tell me what is server and can we run jar file without using serever i.e. only using the JVM (java command)???

    I am very new to Java.

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    A server is a computer that serves stuff.

    Can you be more specific? There are zillions of types of servers.

    You can execute the code in a jar file using a JRE (Java Runtime Environment) which you can download for free from java.sun.com

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by smiley.t82@gmail.com View Post
    Hi,

    Can any one tell me what is server and can we run jar file without using serever i.e. only using the JVM (java command)???

    I am very new to Java.
    Between the stuff talking about here, there is no any connection.

    Server is a machine(a PC) where we locates resources to serve others.

    jar is a Java deployment package. To run a jar file you need a JRE(Java Runtime Environment). You can download it from the SUNs' official web site. To run a jar file on the command prompt use the following command.

    Java Code:
    java -jar your_jar_file
    But there you should set the class path to the jar executing folder.

  4. #4
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hi,
    Are you asking a general server or some server like Jboss or Tomcat where we deploy our applications?

    And for running application without using servers like Jboss or Tomcat is possible using the command mentioned by Eranga.
    To finish sooner, take your own time....
    Nivedithaaaa

  5. #5
    jack239 is offline Member
    Join Date
    Jul 2008
    Posts
    35
    Rep Power
    0

    Default

    Basically server is piece of software that runs and serves resources/responses if there is any request. E.g. if you run tomcat server then it stays and waits for any requests to come. That request(s) always come from browser and after receiving the request, tomcat processes the requests and serves appropriately.
    I think I am pretty much clear about the server concepts. Please let me know if you have any other questions.
    New to Java/PHP/Javascript development?
    For free help go to- www.techcubetalk.com

Similar Threads

  1. SQL Server
    By Ganeshag777 in forum JDBC
    Replies: 1
    Last Post: 01-12-2009, 04:37 PM
  2. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 05:30 PM
  3. Replies: 2
    Last Post: 07-15-2008, 07:11 PM
  4. One server to another server redirection
    By chaudhuri_abhi in forum Java Servlet
    Replies: 1
    Last Post: 02-11-2008, 08:05 PM
  5. WAS Server
    By Albert in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 06-25-2007, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •