B4J Question Error Using Server with B4J

Radisk3

Member
Licensed User
I made a jar that consults a bunch of firebird data.
So far 100%!

The problem is the moment I started using instantiating the server.
The code is simple:
B4X:
Private Srv as Server
Srv.Initialize ('Srv")
Srv.AddHandler ("/Receives", "Receives", False)
Srv.Start
There is the Class Receives
There's the "Sub Handle"
On the computer with B4J, it works perfectly.
I copy "jar" to a Windows or Linux computer and the server part doesn't work.
Every time a text message is sent to the Server, the error of the file "err_server.txt" in the server and app that sent there is the return of the file "err_app.txt".

Does anyone know how to fix it?
 

Attachments

stevel05

Expert
Licensed User
I haven't tried it but I would guess that the path (first argument of addHandler) should exist on the target PC.
 

Radisk3

Member
Licensed User
Thank You, Erel!
It worked!
In my ignorance, I thought it would be okay to run the server next to the application.
 

Radisk3

Member
Licensed User
I haven't tried it but I would guess that the path (first argument of addHandler) should exist on the target PC.
Thanks for your help.
The path is created if it does not exist.
But the problem was that it was UI app.
 
Top