有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java错误:无法找到或加载主类组织。冬眠地方话DB2390方言

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

Error: Could not find or load main class org.hibernate.dialect.DB2390Dialect

我已经检查了所有需要的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>

共 (0) 个答案