B4J Question Run program at startup

ThRuST

Well-Known Member
Licensed User
Longtime User
EDIT:

How to make a B4J application autostart on Windows, Macintosh, Linux, Solaris, Ubuntu, Qubes, and any other O/S that can run Java Virtual Machine.
Every relevant solution is welcomed. Thanks
 
Last edited:

ThRuST

Well-Known Member
Licensed User
Longtime User
Raspberry Pi Autostart B4J Application


 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Autostart on Windows
Put a shortcut in the Startup folder.
C:\Users\<your username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

The problem is just, how to find the username for the local computer? And how does this work on Mac etc?

This might work. Not tested yet
Dim name As String = GetEnvironmentVariable("COMPUTERNAME", "")
Or perhaps
Dim name As String = GetEnvironmentVariable("USERNAME", "")
Then write to the Windows registry by using jSLPreferences Library available Here
Also jShell Library might be a better alternative.

Your comments and posts are welcomed. Thanks
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…