single instance

  1. W

    B4J Code Snippet B4J Single Instance checker (Windows & Linux) irrespective of the Java version and packager used

    This method was tested and works on my setup, even if the jar or exe is copied or renamed: - Windows 10, B4J 9.10 (and later), OpenJDK 11 - Linux Mint Cinnamon 21.1, B4J 9.80, OpenJDK 11 #AdditionalJar: sqlite-jdbc- Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1...
  2. N

    Share My Creation B4J single instance

    I wanted to limit my app to running as a single instance, in both Windows and Linux. Several solutions for this single instance problem have been posted, but usually do not include running in Linux. Erel made a few suggestions in one of his posts. One of these was to use an external file as a...