giga Well-Known Member Licensed User Longtime User Oct 25, 2014 #1 Is there a way to "run as administrator" when opening shell in b4j? I am trying some advanced features of shell (command line) but nothing happens if the user is not an administrator or the command is not elevated. Any help appreciated. Thanks in advance.
Is there a way to "run as administrator" when opening shell in b4j? I am trying some advanced features of shell (command line) but nothing happens if the user is not an administrator or the command is not elevated. Any help appreciated. Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2014 #2 Have you tried to run the compiled app as an administrator? Upvote 0
giga Well-Known Member Licensed User Longtime User Oct 25, 2014 #3 Erel, Thanks for the reply. I have tried the compiled jar on a Windows 7 and Windows 8 PC and when I right click I have no "run as administrator" option. The other thought was to convert the .jar to an .exe. Unless you had any other ideas. Upvote 0
Erel, Thanks for the reply. I have tried the compiled jar on a Windows 7 and Windows 8 PC and when I right click I have no "run as administrator" option. The other thought was to convert the .jar to an .exe. Unless you had any other ideas.
Daestrum Expert Licensed User Longtime User Oct 25, 2014 #4 Could you not just run it from a batch file, that you have given admin rights to? eg test.bat B4X: Java -jar "TheJarYouWantToRun.jar" Then right click run as admin Upvote 0
Could you not just run it from a batch file, that you have given admin rights to? eg test.bat B4X: Java -jar "TheJarYouWantToRun.jar" Then right click run as admin
giga Well-Known Member Licensed User Longtime User Nov 1, 2014 #5 The batch file option works. If I distribute the program, I would like the users to just click the jar and run it. Upvote 0
The batch file option works. If I distribute the program, I would like the users to just click the jar and run it.
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2014 #6 Convert it to an exe file. It is very simple. Upvote 0