Results 1 to 11 of 11
- 08-06-2008, 05:56 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 15
- Rep Power
- 0
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?
- 08-06-2008, 01:57 PM #2
To have your code run on a website would require you to talk to the administator for that web site.
- 08-06-2008, 02:42 PM #3
Member
- Join Date
- Aug 2008
- Posts
- 15
- Rep Power
- 0
Yeah I was afraid of that... Thanks for your expertise
- 08-06-2008, 05:22 PM #4
Member
- Join Date
- Aug 2008
- Posts
- 22
- Rep Power
- 0
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 somethingvisit http://www.thejavacode.com
Muhammad Safwat
- 08-07-2008, 04:15 AM #5
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.
- 08-08-2008, 03:14 AM #6
Member
- Join Date
- Aug 2008
- Posts
- 15
- Rep Power
- 0
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?
- 08-08-2008, 03:39 AM #7
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.
- 08-08-2008, 04:46 AM #8
Member
- Join Date
- Aug 2008
- Posts
- 15
- Rep Power
- 0
great point but do you know how i would get in touch with the sysadmin?
- 08-08-2008, 05:40 AM #9
You will have to find the answer to that. Whoever manages the machine.
- 08-08-2008, 06:17 AM #10
Member
- Join Date
- Aug 2008
- Posts
- 15
- Rep Power
- 0
well ive decided to install apache on my computer and make my own webserver for the time being... thanks for all the help
- 08-08-2008, 06:21 AM #11
Similar Threads
-
multiple class files
By nemesys571 in forum EclipseReplies: 0Last Post: 06-26-2008, 01:58 AM -
conversion of java .class files to .java files
By kotturupraveen in forum New To JavaReplies: 2Last Post: 06-09-2008, 12:58 PM -
how to see the code of class files
By mary in forum Advanced JavaReplies: 1Last Post: 08-02-2007, 01:52 PM -
Problems in running client class
By ai_2007 in forum Advanced JavaReplies: 0Last Post: 06-30-2007, 02:57 PM -
'class' and 'jar' files
By ai_2007 in forum Advanced JavaReplies: 1Last Post: 06-29-2007, 03:11 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks