• # connexion impossible à la base de données,pilote de base données introuvable

    Posté par . En réponse à la dépêche Présentation de Pastèque 1.2. Évalué à -10.

    bonjour:

    debian squeeze 64 bits et pasteque 1.2
    openjdk-6-jdk 6b18-1.8.13-0+squeeze2

    voilà la suite:

    information
    com.openbravo.basic.BasicExeption:
    java.lang.ClassNotFoundExeption:
    org.apache.derby.jdbc.EmbeddedDriver

    l'interface de pasteque apparait avec et affiche ceci:

    librairie pilote=/home/robertix/pasteque-1.2.0/lib/derby.jar
    classe pilote=org.apache.derby.jdbc.EmbeddedDriver
    url=jdbc:derby:/home/robertix/postech-database;create=true

    je suis le tuto trouvé ici:
    http://www.stuartellis.eu/articles/derby-javadb/

    l'extrait:

    Installing Java DB on Linux

    For Linux, Sun collaborates with other vendors and the community on a fully open source JDK (the OpenJDK). All of the major Linux distributions include packages for the OpenJDK.

    To install the OpenJDK on an Ubuntu system:

    sudo apt-get install openjdk-6-jdk

    The OpenJDK does not include Java DB. To install the correct version of Java DB on Ubuntu:

    sudo apt-get install sun-javadb-client sun-javadb-core

    Note that the Ubuntu repositories include other, older Java DB packages. Use the sun-javadb-* packages with the OpenJDK, not the sun-java6-javadb or sunwderby packages.

    To enable Java DB, add the bin directory for Java DB to your PATH environment variable, and set a new DERBY_HOME environment variable. On Ubuntu and Debian systems, add these lines to the end of the .bashrc file in your home directory:

    export PATH=$PATH:/usr/share/javadb/bin/
    export DERBY_HOME=/usr/share/javadb

    This will take effect the next time that you login or open a new terminal window.

    c'est pas mieux ?