Problem with database connection

Asked

Viewed 50 times

0

My group are doing a Java project with database and while continuing the project on other machines only appeared problems only in mine that is giving the following error when trying to make the connection to the database:

Não é possível estabelecer conexão. 
Não é possível estabelecer uma conexão com 
  jdbc:derby://localhost:1527/sample usando
  org.apache.derby.jdbc.ClientDriver (
    org.apache.derby.jdbc.ClientDriver starting from
    ModuleCL@38dbfa6c[org.netbeans.modules.db] with 
    possible defining loaders null and declared parents  [
      ModuleCL@7f35b22c[org.openide.io],
      ModuleCL@4f215e3f[org.openide.nodes],
      ModuleCL@2e2df564[org.netbeans.core.ide],
      org.netbeans.MainImpl$BootClassLoader@377dca04,
      ModuleCL@447a5b33[org.openide.windows],
      ModuleCL@7887f48c[org.netbeans.modules.keyring],
      ModuleCL@69f02588[org.netbeans.modules.db.metadata.model],
      ModuleCL@25df2cfa[org.netbeans.modules.javahelp],
      ModuleCL@4621b284[org.openide.explorer],
      ModuleCL@6eeca476[org.openide.loaders],
      ...6 more
   ]
).

inserir a descrição da imagem aqui

  • Check the connection string. That can be it. try: "jdbc:derby://localhost sample;databaseName=<>database>;user=<user>;password=<>password";

  • I tried and it didn’t work either. The project is right, is only giving error in this machine in the others is just open the project with two clicks and already makes the connection.

  • It is usually necessary to add environment variables for java to work. I’m a beginner in Java, but if you can take a look if you are aware of JAVA_HOME, and if the installation of java in the PATH is also informed

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.