Hi everyone,
I followed the tutorial of jRDC2 step by step (this one to be clear). In the tutorial the two spinners are loaded with the list of cities and countries retrieved by sql. On my screen nothing happen. The two spinners are empty. No error is shown in the logs (neither B4A client's logs nor B4J server's logs).
To provide some more information I'll write what I did step by step, this way it should be easier to see where I did something wrong:
So, first I downloaded the jRDC2 server from the tutorial page and I made a B4A project for the client. I downloaded the mysql connector jar file (mysql-connector-java-5.1.49/mysql-connector-java-5.1.49-bin) and I put it into the libraries folder (I tried to put it into the additional libraries folder, but on running I received an error message telling me to put it in the libraries folder).
Then I added in the B4J project with the following lines:
On the config file I set the following parameters:
Then I just followed the video tutorial adding the layout, the RandomAccessFile and okHttpUtils2 libraries and all the code snippets from the tutorial page and made the changes shown on the video. The database too of course on phpmyadmin.
I also tried with xampp and mariadb connector but nothing changes.
I'm unsing B4A v10.0 and B4J v8.50. I'll share both the B4A and the B4J projects.
The server runs without errors, the client too, but something is clearly not working. What am I missing?
I followed the tutorial of jRDC2 step by step (this one to be clear). In the tutorial the two spinners are loaded with the list of cities and countries retrieved by sql. On my screen nothing happen. The two spinners are empty. No error is shown in the logs (neither B4A client's logs nor B4J server's logs).
To provide some more information I'll write what I did step by step, this way it should be easier to see where I did something wrong:
So, first I downloaded the jRDC2 server from the tutorial page and I made a B4A project for the client. I downloaded the mysql connector jar file (mysql-connector-java-5.1.49/mysql-connector-java-5.1.49-bin) and I put it into the libraries folder (I tried to put it into the additional libraries folder, but on running I received an error message telling me to put it in the libraries folder).
Then I added in the B4J project with the following lines:
B4J:
#AdditionalJar: mysql-connector-java-5.1.49-bin
#AdditionalJar: mysql-connector-java-5.1.49
I ran wampserver and the B4J server. On localhost it says it's running, no error appeared.#DATABASE CONFIGURATION
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
User=root
Password=
#Java server port
ServerPort=17178
Then I just followed the video tutorial adding the layout, the RandomAccessFile and okHttpUtils2 libraries and all the code snippets from the tutorial page and made the changes shown on the video. The database too of course on phpmyadmin.
I also tried with xampp and mariadb connector but nothing changes.
I'm unsing B4A v10.0 and B4J v8.50. I'll share both the B4A and the B4J projects.
The server runs without errors, the client too, but something is clearly not working. What am I missing?
Attachments
Last edited: