Results 1 to 11 of 11
  1. #1
    jklsemicolon is offline Member
    Join Date
    Aug 2008
    Posts
    15
    Rep Power
    0

    Default running .class files on a website

    So I built (and borrowed) a chatroom in java and I want to put it on a website. It works really well on my home computer. How it works is that i run server.class which is stuck in an infinate loop (on purpose) so that it is always running and then applets connect to it. I'm wondering: how i would go about running the .class file on a website that i got from godaddy so that it runs all the time, regardless of whether someone is connecting to it?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    To have your code run on a website would require you to talk to the administator for that web site.

  3. #3
    jklsemicolon is offline Member
    Join Date
    Aug 2008
    Posts
    15
    Rep Power
    0

    Default

    Yeah I was afraid of that... Thanks for your expertise

  4. #4
    mtv134 is offline Member
    Join Date
    Aug 2008
    Posts
    22
    Rep Power
    0

    Default

    I think there might be a workaround
    you can create servlet and use the Java runtime API in the servlet to start a new process using the .class file
    this needs to be tried
    besides is it a dedicated server ?
    is it is they will give u access using the shell or something
    visit http://www.thejavacode.com
    Muhammad Safwat

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

    Default

    Quote Originally Posted by mtv134 View Post
    you can create servlet and use the Java runtime API in the servlet to start a new process using the .class file this needs to be tried
    besides is it a dedicated server ? is it is they will give u access using the shell or something
    This answer/suggestion makes zero sense. If you create a servlet, it has to be deployed in a servlet container. There are lots of servlet containers, Tomcat, Resin, JBoss, etc.

    All of them require that the machine's system administrator do at least two things:
    1) setup the contianer
    2) setup so that a developer/user can put the war files in the right place.
    They usually have to do related things like open a port in the firewall, or adjust Apache to dispatch to the servlet container.

    Whether the server is "dedicated" or not is irrelevant.

  6. #6
    jklsemicolon is offline Member
    Join Date
    Aug 2008
    Posts
    15
    Rep Power
    0

    Default

    Well all of that went over my head, but is there some way i can remotely access a command prompt for the server so I could install the JRE or something?

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

    Default

    If you can without the permission of the site's sysadmin, you don't want to use that site. Go talk to your sysadmin.

    The idea of an unauthorized remote person installing software on someone else's computer is the very definition of malware to me. What the software actually does is not important.

  8. #8
    jklsemicolon is offline Member
    Join Date
    Aug 2008
    Posts
    15
    Rep Power
    0

    Default

    great point but do you know how i would get in touch with the sysadmin?

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

    Default

    You will have to find the answer to that. Whoever manages the machine.

  10. #10
    jklsemicolon is offline Member
    Join Date
    Aug 2008
    Posts
    15
    Rep Power
    0

    Default

    well ive decided to install apache on my computer and make my own webserver for the time being... thanks for all the help

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

Similar Threads

  1. multiple class files
    By nemesys571 in forum Eclipse
    Replies: 0
    Last Post: 06-26-2008, 02:58 AM
  2. conversion of java .class files to .java files
    By kotturupraveen in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 01:58 PM
  3. how to see the code of class files
    By mary in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 02:52 PM
  4. Problems in running client class
    By ai_2007 in forum Advanced Java
    Replies: 0
    Last Post: 06-30-2007, 03:57 PM
  5. 'class' and 'jar' files
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 06-29-2007, 04:11 PM

Posting Permissions

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