- Jun 6, 2020
- 11,593
- 4,507
Note: This wont be for everyone and is not a replacement for B4JPackager11
Also, see @agraham post here;
I distribute some executable JAR files with a B4J Server application which has a Open JDK runtime included as part of the package.
While I appreciate what B4JPackager11 does this solution wasn't right for me as I don't want multiple runtimes or have to create a new executable for every JAR I make.
Based on Erels C# B4JPackager11 code I have created a C# "runner" which starts the JAR using Open JDK but the executable uses its name to execute the jar in the same directory.
For example;
1) If you start Runner.exe it will launch Runner.jar
2) If you rename Runner.exe to bob.exe it will launch bob.jar (assuming bob.jar exists)
3) If you rename Runner.exe to Config.exe it will launch Config.jar (assuming Config.jar exists)
This way I can have one executable that I can...
Also, see @agraham post here;
برای دیدن لینک ها باید ثبت نام کنید
I distribute some executable JAR files with a B4J Server application which has a Open JDK runtime included as part of the package.
While I appreciate what B4JPackager11 does this solution wasn't right for me as I don't want multiple runtimes or have to create a new executable for every JAR I make.
Based on Erels C# B4JPackager11 code I have created a C# "runner" which starts the JAR using Open JDK but the executable uses its name to execute the jar in the same directory.
For example;
1) If you start Runner.exe it will launch Runner.jar
2) If you rename Runner.exe to bob.exe it will launch bob.jar (assuming bob.jar exists)
3) If you rename Runner.exe to Config.exe it will launch Config.jar (assuming Config.jar exists)
This way I can have one executable that I can...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید