Nyanpire New Member Apr 3, 2021 #1 Hi, is there a way to distribute a standalone console app (Non GUI). The integrated solution seems to work only for gui apps. Thank you all.
Hi, is there a way to distribute a standalone console app (Non GUI). The integrated solution seems to work only for gui apps. Thank you all.
Peter Simpson Expert Licensed User Longtime User Apr 4, 2021 #2 Hello, You can just distribute the .jar file that can be found in your projects Objects folder. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2021 #3 The user will be able to run the jar by double clicking on it or from the command line with java -jar <jar file>. Java 8+ needs to be installed. This is different than the case with UI apps where a more complex configuration is required to run the jar file directly. Upvote 0
The user will be able to run the jar by double clicking on it or from the command line with java -jar <jar file>. Java 8+ needs to be installed. This is different than the case with UI apps where a more complex configuration is required to run the jar file directly.
J j_o_h_n Active Member Licensed User Longtime User Apr 4, 2021 #4 Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? It seems simpler to make a standalone package for that then to have to download 400 MB of java separately for a console app? Upvote 0
Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? It seems simpler to make a standalone package for that then to have to download 400 MB of java separately for a console app?
MegatenFreak Active Member Licensed User Apr 5, 2021 #5 j_o_h_n said: Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? It seems simpler to make a standalone package for that then to have to download 400 MB of java separately for a console app? Click to expand... Why 400 MB? Wouldn't JRE be enough for running the JAR file? JRE is around 80MB I think. Upvote 0
j_o_h_n said: Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? It seems simpler to make a standalone package for that then to have to download 400 MB of java separately for a console app? Click to expand... Why 400 MB? Wouldn't JRE be enough for running the JAR file? JRE is around 80MB I think.
J j_o_h_n Active Member Licensed User Longtime User Apr 5, 2021 #6 MegatenFreak said: Why 400 MB? Wouldn't JRE be enough for running the JAR file? JRE is around 80MB I think. Click to expand... The info I found online seems to suggest that you have to download the whole shebang now, sdk and jdk but i could well be wrong Upvote 0
MegatenFreak said: Why 400 MB? Wouldn't JRE be enough for running the JAR file? JRE is around 80MB I think. Click to expand... The info I found online seems to suggest that you have to download the whole shebang now, sdk and jdk but i could well be wrong
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2021 #7 j_o_h_n said: Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? Click to expand... Yes. Don't show the main form. (Note that it is not a good solution for jServer solutions) Upvote 0
j_o_h_n said: Apart from being inelegant perhaps, can a gui app that never shows its mainform be used as a substitute for a console app? Click to expand... Yes. Don't show the main form. (Note that it is not a good solution for jServer solutions)
J j_o_h_n Active Member Licensed User Longtime User Apr 5, 2021 #8 Erel said: Yes. Don't show the main form. Click to expand... Thanks Erel, that's good to know. Erel said: (Note that it is not a good solution for jServer solutions) Click to expand... Is that (at least partly) because everything happens in the main thread in gui apps? B4X programming - video tutorials Upvote 0
Erel said: Yes. Don't show the main form. Click to expand... Thanks Erel, that's good to know. Erel said: (Note that it is not a good solution for jServer solutions) Click to expand... Is that (at least partly) because everything happens in the main thread in gui apps? B4X programming - video tutorials
MegatenFreak Active Member Licensed User Apr 5, 2021 #9 j_o_h_n said: The info I found online seems to suggest that you have to download the whole shebang now, sdk and jdk but i could well be wrong Click to expand... I don't know whether things have changed for new Java releases, but I've got several computers using my app; they've all got JRE 8, and none has JDK. Upvote 0
j_o_h_n said: The info I found online seems to suggest that you have to download the whole shebang now, sdk and jdk but i could well be wrong Click to expand... I don't know whether things have changed for new Java releases, but I've got several computers using my app; they've all got JRE 8, and none has JDK.
J j_o_h_n Active Member Licensed User Longtime User Apr 5, 2021 #10 MegatenFreak said: I don't know whether things have changed for new Java releases, but I've got several computers using my app; they've all got JRE 8, and none has JDK. Click to expand... I think that is it, that it's no longer possible to do it that way with the newer releases. Upvote 0
MegatenFreak said: I don't know whether things have changed for new Java releases, but I've got several computers using my app; they've all got JRE 8, and none has JDK. Click to expand... I think that is it, that it's no longer possible to do it that way with the newer releases.
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2021 #11 j_o_h_n said: Is that (at least partly) because everything happens in the main thread in gui apps? Click to expand... Not exactly. Many things happen in the background. The B4X code runs on the main thread. JRE 8 should be fine for all apps. Upvote 0
j_o_h_n said: Is that (at least partly) because everything happens in the main thread in gui apps? Click to expand... Not exactly. Many things happen in the background. The B4X code runs on the main thread. JRE 8 should be fine for all apps.