follow this steps:
1) open B4J (version 10.20 with JDK jdk-19.0.2 as downloaded from the B4J page)
2) File/New.../Console (Non-UI)
a new project will appear with just these lines
3) Project/Build Standalone Package
4) open a command prompt and run the executable from the build directory
the "Hello world" line is printed after the prompt, as the command was executed in background (in unix-like "&" way)
I would expect the following output:
is there any way to fix this?
1) open B4J (version 10.20 with JDK jdk-19.0.2 as downloaded from the B4J page)
2) File/New.../Console (Non-UI)
a new project will appear with just these lines
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Log("Hello world!!!")
End Sub
3) Project/Build Standalone Package
4) open a command prompt and run the executable from the build directory
Bash:
Microsoft Windows [Versione 10.0.26100.4202]
(c) Microsoft Corporation. Tutti i diritti riservati.
C:\Users\aless\Documents\B4A\testconsole\Objects\temp\build>testconsole.exe
C:\Users\aless\Documents\B4A\testconsole\Objects\temp\build>Hello world!!!
the "Hello world" line is printed after the prompt, as the command was executed in background (in unix-like "&" way)
I would expect the following output:
Bash:
C:\Users\aless\Documents\B4A\testconsole\Objects\temp\build>testconsole.exe
Hello world!!!
C:\Users\aless\Documents\B4A\testconsole\Objects\temp\build>
is there any way to fix this?