B4J Question Build Standalone Package Error

Scantech

Well-Known Member
Licensed User
Longtime User
Im using jSerial library. I get this error when i run_debug.bat


B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
      
    B4XPages.SetTitle(Me, "PIC Bootloader Upload")
    B4XPages.GetNativeParent(Me).WindowHeight = 700
    B4XPages.GetNativeParent(Me).WindowWidth = 600
  
    ' Load all available COM Ports
    cmbPort.Items.AddAll(serial1.ListPorts)

I remove cmbPort.Items code it runs fine. .Jar runs fine! Not .exe

v10.30 B4J
v 1.40 jSerial
 
Last edited:

aeric

Expert
Licensed User
Longtime User
If using jSerial put the attached jssc.dll file in the project folder and add:

B4X:
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ jssc.dll
Note that it is a Windows 64 bit dll.

Tutorial:
 
Upvote 1
Cookies are required to use this site. You must accept them to continue using the site. Learn more…