Results 1 to 7 of 7
- 03-30-2009, 04:59 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 48
- Rep Power
- 0
[REWARD] Starting and stopping programs through an applet [REWARD]
Hey guys, a friend of my family has offered me my first programming job/project thing and I need to be able to start and stop a local Apache Tomcat Server through an applet.
I'm wondering, how does someone control other programs through an applet? Are there some process-controlling classes or something like that?
Well, if anyone can help me, I have $10-$20 in paypal to give to anyone who wants it and can help me.
Its not much, and certainly not enough to come close to compensating for the knowledge some of you guys have, but it's all I got. Heh, maybe you can get a couple candy bars and a marble or something with it, XDLast edited by hunterbdb; 03-30-2009 at 05:02 PM.
- 03-31-2009, 12:39 AM #2
Not possible unless the local user has explicitly allowed this in an applet policy file. Security exists for a reason.
-
And amen for that too.
- 03-31-2009, 04:33 PM #4
Member
- Join Date
- Feb 2009
- Location
- Finland
- Posts
- 13
- Rep Power
- 0
Well, you could create a server application that would listen for commands on network port and shut tomcat down on command, and an applet that would send that command.
- 04-01-2009, 03:06 AM #5
Member
- Join Date
- Oct 2008
- Posts
- 48
- Rep Power
- 0
I'll explain it a bit better
Hey guys, thanks for the quick responses. Let me try to explain what I'm trying to do a bit better.
I have a program which edits a .txt file. Whenever these files are updated, I assume that my application will keep on using the old un-edited version of this .txt file. The .txt file is a log file which holds values my last-used settings.
So, the only way I can think of that would "update" my .txt file would be to restart tomcat. Is that correct?
thanks for responding so fast, you guys. And thanks in advance for the input i'll receive in response.
- 04-01-2009, 11:04 AM #6
Member
- Join Date
- Feb 2009
- Location
- Finland
- Posts
- 13
- Rep Power
- 0
Err... Unless I'm mistaken you need to reload a text file to your application yes?
Then, why don't you just reload the file from from disk to your application like you originally load it but on on request rather than on startup? Certainly that's a better execution that restarting Tomcat.
- 04-01-2009, 11:09 AM #7
Similar Threads
-
Applet programs do not work in my JCreator
By java_fun2007 in forum New To JavaReplies: 7Last Post: 04-18-2009, 11:41 AM -
Pong Paddle Not Stopping Ball At Certain Speed
By JDCAce in forum Java AppletsReplies: 3Last Post: 04-01-2009, 11:07 PM -
Help needed with Java exercise - Including arrays - Reward
By TheDarkReverend in forum New To JavaReplies: 7Last Post: 10-23-2008, 02:52 AM -
starting a Swing application from an applet
By FakeRabbit in forum Java AppletsReplies: 9Last Post: 09-21-2008, 07:00 PM -
stopping thread...using flags
By rstepler in forum New To JavaReplies: 1Last Post: 07-31-2008, 09:36 PM


LinkBack URL
About LinkBacks

Bookmarks