Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    There is no need for another thread. The ServerSocket is all that is needed to test for another program using the port. Remove the accept() call.
  2. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    Please copy the full text of the error message and paste it here. It has important info about the error.
  3. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    Look at the Runtime class's addShutdownHook() method.
  4. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    Have you tried the file method across reboots of the system? Can the file be left when the system reboots?
  5. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    Do you have a solution now? It works for me. First execution puts icon in tray. Next executions print already in use message.
  6. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    What happened when you created a test program that used the ServerSocket when you started the program for the second time?
  7. Replies
    25
    Views
    3,656

    [SOLVED] Re: Check if system tray already exists

    If you only want one version of a program running at a time, then the program needs to detect when another version has been started. One way is to use a ServerSocket at a special port to detect the...
Results 1 to 7 of 7