B4J Question How to capture logs after app crashes from desktop?

cyiwin

Active Member
Licensed User
Longtime User
I'm using Windows 8.1. A lot of the time my app will run fine in debug or release mode from the B4J editor. When I run it from the desktop icon it will randomly crash. I would like to see the logs after the crash.

The program logs in a command window when run from a batch file from the instructions here.
B4X:
java -jar <MyJarName>.jar
The command window disappears at the time of the crash so I can't read the logs. Is there a way to keep the command window from disappearing? Or another way to record the logs?
 

Daestrum

Expert
Licensed User
Longtime User
Put the command in a .bat file and after it add a line that has Pause, then the window will not close until you hit a key.

create a windows batch file javabatchfilename.bat
which contains the following code.
B4X:
java -jar <yourprog>.jar
Pause

Then simply double click the batch file to run your prog
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
Put the command in a .bat file and after it add a line that has Pause, then the window will not close until you hit a key.

create a windows batch file javabatchfilename.bat
which contains the following code.
B4X:
java -jar <yourprog>.jar
Pause

Then simply double click the batch file to run your prog
Thank you; very usefull for me...
 
Upvote 0
Top