Error using sleep mode

I am new to Hibernate based Java application. I get some problems installing my system. so I installed it in my friends system .. so I installed JBOSS Tools (only in Hibernate) in Eclipse Juno (Portable) ..

I just copied this folder to my system and I ran the Eclipse.exe file and it works smoothly, but when I try to create a new Hibernate configuration file in sleep mode.

But I got the error below.

"The class path must be set or restored to default."

Anyone can help solve this problem ...

+4
source share
2 answers

You need to add the database driver in your classpath

1) Download the driver for your database (for example, if you are trying to connect to MySQL, you can get it from http://dev.mysql.com/downloads/connector/j/ )

2) Direct it by clicking “Add External Banks” and selecting it from the place where you downloaded it OR Add it to the project first and then select it through “Add Banks” (recommended)

+4
source

This will be due to the fact that you did not add an external jar to the class path. Add all banks, including the registrar used, and it will be allowed.

0
source

Source: https://habr.com/ru/post/1442297/


All Articles