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

  • err_server.txt
    7.4 KB · Views: 68
  • err_app.txt
    1.2 KB · Views: 65

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.
 
Upvote 0

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.
 
Upvote 0
Top