Results 1 to 7 of 7
  1. #1
    hunterbdb is offline Member
    Join Date
    Oct 2008
    Posts
    48
    Rep Power
    0

    Default [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, XD
    Last edited by hunterbdb; 03-30-2009 at 06:02 PM.

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Not possible unless the local user has explicitly allowed this in an applet policy file. Security exists for a reason.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    And amen for that too.

  4. #4
    Zamppa is offline Member
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    13
    Rep Power
    0

    Default

    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.

  5. #5
    hunterbdb is offline Member
    Join Date
    Oct 2008
    Posts
    48
    Rep Power
    0

    Default 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.

  6. #6
    Zamppa is offline Member
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    13
    Rep Power
    0

    Default

    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.

  7. #7
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    What is your actual goal? As your problem is certainly not "how do I control local applications with an applet?", I suspect it is also not "how do I update a text file that tomcat is using?"

Similar Threads

  1. Applet programs do not work in my JCreator
    By java_fun2007 in forum New To Java
    Replies: 7
    Last Post: 04-18-2009, 12:41 PM
  2. Help needed with Java exercise - Including arrays - Reward
    By TheDarkReverend in forum New To Java
    Replies: 7
    Last Post: 10-23-2008, 03:52 AM
  3. Pong Paddle Not Stopping Ball At Certain Speed
    By JDCAce in forum Java Applets
    Replies: 2
    Last Post: 10-12-2008, 06:15 AM
  4. starting a Swing application from an applet
    By FakeRabbit in forum Java Applets
    Replies: 9
    Last Post: 09-21-2008, 08:00 PM
  5. stopping thread...using flags
    By rstepler in forum New To Java
    Replies: 1
    Last Post: 07-31-2008, 10:36 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
  •