I authored a B4J program, that compiles and runs fine as a jar file. I tried packaging it using the self contained installer as detailed here,
https://www.b4x.com/android/forum/threads/ui-apps-packaging-self-contained-installers.56854/
The packager executes fine, and I end up with an installable program. I installed the packaged program on three different computers, two Windows 10, and 1 Windows 7. When running the program the first thing the end user must do is select a COM serial port. On the Windows 10 systems, immediately when the port is selected, and the program line
Serial1.Open(cmbPort.Value) is encountered, the program closes. If I run the compiled jar program in the same installed program app subdirectory, it runs fine. In the log file, it shows that COM1 is selected as the value - and I even tried to manually select it in the program with Serial1.Open("COM1"), but it immediately closes with the packaged and installed executable, but works fine as the jar file. I am out of ideas. Here are the lines of code that are terminating the installed program,
astream.Close
Serial1.Close
Serial1.Initialize("")
Log("<" & cmbPort.Value & ">")
Serial1.Open(cmbPort.Value)
Please help, as I can't distribute the program. Thanks.
https://www.b4x.com/android/forum/threads/ui-apps-packaging-self-contained-installers.56854/
The packager executes fine, and I end up with an installable program. I installed the packaged program on three different computers, two Windows 10, and 1 Windows 7. When running the program the first thing the end user must do is select a COM serial port. On the Windows 10 systems, immediately when the port is selected, and the program line
Serial1.Open(cmbPort.Value) is encountered, the program closes. If I run the compiled jar program in the same installed program app subdirectory, it runs fine. In the log file, it shows that COM1 is selected as the value - and I even tried to manually select it in the program with Serial1.Open("COM1"), but it immediately closes with the packaged and installed executable, but works fine as the jar file. I am out of ideas. Here are the lines of code that are terminating the installed program,
astream.Close
Serial1.Close
Serial1.Initialize("")
Log("<" & cmbPort.Value & ">")
Serial1.Open(cmbPort.Value)
Please help, as I can't distribute the program. Thanks.