B4J Question No output in the console

b4auser1

Well-Known Member
Licensed User
Longtime User
I haven't used B4J for a year. Now I have started to develop a little application in B4J 3.5.
B4X:
Sub AppStart (Args() As String)
    Log("Hello World")
End Sub

When I tried to print some data to output, then I didn't see anything in the Windows 10 console.
I see output in the log window of IDE, but anything when start jar in the Windows 10 console.

I launched jMsgboxesDemo.jar succesfully within and outside of IDE and saw window with buttons.
It confirm that applications start outside of IDE.
 

Roycefer

Well-Known Member
Licensed User
Longtime User
How are you running your console app outside the IDE? If you just double-click on the jar, it won't show a console window. If you run it from the command line with
B4X:
javaw -jar MyJar.jar
it won't show any output in the console window in which you entered the command. The console command will also return immediately.

If you run it from the command line with
B4X:
java -jar MyJar.jar
it should show your app's output in the same console window in which you entered the command.
 
Upvote 0
Top