I need to run this on a remote server, so I installed B4J on the server. Downloaded and installed the JDK and mySql jDBC connector. When running jRDC from B4J everything looks fine:
Log:
Waiting for debugger to connect...
Program started.
Emulated network latency: 100ms
jRDC is running (version = 2.1)
When I installed Java from Oracle, it gave me a 64-bit version and put it in "Program Files" instead of "Program Files(x86)", so I had to modify the command below:
C:\Program Files\Java\jdk-9.0.1>java -Xmx256m -cp .;libs\*;jdnc_driver\* anywheresoftware.b4a.remotedatabase.remoteserver
Error: Could not find or load main class anywheresoftware.b4a.remotedatabase.remoteserver
I suspect I need to replace the class with something else but have no idea what to put there.
When I go to a browser http://127.0.0.1/?method=test I get a 404. Request Log:
127.0.0.1 - - [12/Nov/2017:09:29:34 +0000] "GET /?method=test HTTP/1.1" 404 315 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
I get the same thing with method=query. I have not changed anything in jRDC.b4a except config.properties.
Marc
Log:
Waiting for debugger to connect...
Program started.
Emulated network latency: 100ms
jRDC is running (version = 2.1)
When I installed Java from Oracle, it gave me a 64-bit version and put it in "Program Files" instead of "Program Files(x86)", so I had to modify the command below:
C:\Program Files\Java\jdk-9.0.1>java -Xmx256m -cp .;libs\*;jdnc_driver\* anywheresoftware.b4a.remotedatabase.remoteserver
Error: Could not find or load main class anywheresoftware.b4a.remotedatabase.remoteserver
I suspect I need to replace the class with something else but have no idea what to put there.
When I go to a browser http://127.0.0.1/?method=test I get a 404. Request Log:
127.0.0.1 - - [12/Nov/2017:09:29:34 +0000] "GET /?method=test HTTP/1.1" 404 315 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
I get the same thing with method=query. I have not changed anything in jRDC.b4a except config.properties.
Marc