B4J Question [solved] Java 11 problem ?

Discussion in 'B4J Questions' started by derez, Dec 5, 2018.

  1. derez

    derez Expert Licensed 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: Dec 5, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    Where is the MySQL server located? What is the jdbc url?
     
  3. derez

    derez Expert Licensed User

    The config file contains:
    Code:
    #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:
    The Database is sqlite and is located in a directory RDB under objects.
     
  4. keirS

    keirS Well-Known Member Licensed 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.
     
    derez likes this.
  5. derez

    derez Expert Licensed 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 ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    derez likes this.
  7. derez

    derez Expert Licensed User

    Thanks, I'll try that.

    Edit: It is working, windows and Linux as well :)
     
    Last edited: Dec 6, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice