Is it possible to 'Package' multiple apps in a single package with a single JRE?
This would lead to a package structure something like:
with both apps (test, and test2) accessing the same java run time files.
As a test, I've tried building two example apps separately, then merging the bin, conf, legal, lib folders so that all the necessary java modules are present for both apps. I've also put both release_java_modules.txt files in the \bin folder, renaming as release_java_modules-1 & release_java_modules-2:
then I've altered the run_debug.bat files for each to the appropriate release_java_modules.txt file, e.g.:
But running run_debug2.bat (unsurprisingly) doesn't work:
I thought there would be more to it than this, and clearly there is.
Is it possible to merge the packages of two or more apps into a single distribution package?
This would lead to a package structure something like:
with both apps (test, and test2) accessing the same java run time files.
As a test, I've tried building two example apps separately, then merging the bin, conf, legal, lib folders so that all the necessary java modules are present for both apps. I've also put both release_java_modules.txt files in the \bin folder, renaming as release_java_modules-1 & release_java_modules-2:
then I've altered the run_debug.bat files for each to the appropriate release_java_modules.txt file, e.g.:
run_debug2.bat:
cd bin
java.exe @release_java_modules-2.txt -m b4j/b4j.example2.main
pause
But running run_debug2.bat (unsurprisingly) doesn't work:
run_debug2.bat result:
C:\test>cd bin
C:\test\bin>java.exe @release_java_modules-2.txt -m b4j/b4j.example2.main
Error: Could not find or load main class b4j.example2.main in module b4j
C:\test\bin>pause
Press any key to continue . . .
I thought there would be more to it than this, and clearly there is.
Is it possible to merge the packages of two or more apps into a single distribution package?
Last edited: