Java 错误:找不到或加载主类org.hibernate.dialogue.db2390dialogue

Java 错误:找不到或加载主类org.hibernate.dialogue.db2390dialogue,java,hibernate,Java,Hibernate,当我运行程序时,出现以下错误: 错误:无法找到或加载主类 org.hibernate.dialogue.db2390dialogue 我已经检查了所有需要的jar文件。请帮忙。我想hibernate配置文件有问题。请在下面查找配置文件: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD

当我运行程序时,出现以下错误:

错误:无法找到或加载主类 org.hibernate.dialogue.db2390dialogue

我已经检查了所有需要的jar文件。请帮忙。我想hibernate配置文件有问题。请在下面查找配置文件:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
        <property name="hibernate.connection.password">batch</property>
        <property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
        <property name="hibernate.connection.username">batch</property>
        <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.hbm2ddl.auto">none</property>
        <mapping resource="galaxe.model.Network" /> 
    </session-factory>
</hibernate-configuration>

oracle.jdbc.driver.OracleDriver
批处理
jdbc:oracle:thin:@localhost:1521:xe
批处理
org.hibernate.dialen.oraclealent
真的
没有一个

在DB2390的配置中,您需要提到以下内容 property name=“hibernate.dialogue”value=“org.hibernate.dialogue.db2390dialogue”

如果您使用oracle,情况将有所不同
property name=“hibernate.dialent”value=“org.hibernate.dialent.oracle10galent”>

我正在使用Oracle 11g,请尝试value=“org.hibernate.dialent.oracle10galent”