B4J Question [solved] Java 11 problem ?

derez

Expert
Licensed User
Longtime User
I try java11 on raspberry in order to see if the problems I get in linux are mine...
I installed the java 11 as explained above, bridge 1.42 and use 6.80 beta.
The application I try is using sqlite and RDC.
The server starts fine (until the line with JRDC is running) but when the client starts i get the following:



The additionaljars are
[Code:]
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#AdditionalJar: mysql-connector-java-5.1.41-bin
#AdditionalJar: sqlite-jdbc-3.7.2
[/Code:]
Edit: another application with just #AdditionalJar: sqlite-jdbc-3.7.2 works fine on raspberry and in linux.
The application works in windows.
 
Last edited:

derez

Expert
Licensed User
Longtime User
The config file contains:
B4X:
#DATABASE CONFIGURATION
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://localhost/recipe?characterEncoding=utf8
User=root
Password=
#Java server port
ServerPort=48555

This is from the post about jrdc2:
Server configuration

1. Add the relevant JDBC jar file to the additional libraries folder.
2. Add a reference to this jar with:
Code:
#AdditionalJar: mysql-connector-java-5.1.27-bin

The Database is sqlite and is located in a directory RDB under objects.
 
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User

That doesn't make sense. You are trying to use a MySQL driver to connect to an SQLite DB. That's never going to fly.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Maybe something is redundant, I don't really understand the RDC drivers but I managed to compile two DB programs that work in a (windows) server. I reverted to java 8 and still get these problem so I guess it has nothing to do with java 11.
Since the DB is sqlite, what should be the changes in the config file ?
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://localhost/recipe?characterEncoding=utf8
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

derez

Expert
Licensed User
Longtime User
Thanks, I'll try that.

Edit: It is working, windows and Linux as well
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…