在hibernate-extensions中使用hbm2java出错
C:\test\ext\tools\bin>hbm2java c:\test\com\dlsp\*.xml --output=c:\test\
信息:
HIBERNATEHOME_HOME set to C:\test\hibernate-3.0
HIBERNATEHOMETOOLS_HOME set to C:\test\ext\tools
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/hibernate/MappingException
hibernate 版本是3.0的, 上面目录 ext即hibernate-extension目录
急等各位高手赐教!!!
setenv.bat:
@echo off
rem -------------------------------------------------------------------
rem Setup environment for hibernate tools
rem -------------------------------------------------------------------
set HIBERNATE_HOME=C:\test\hibernate-3.0
echo HIBERNATE_HOME set to %HIBERNATE_HOME%
set JDBC_DRIVER=D:\Oracle\product\10.1.0\Client_3/jdbc/lib/oracle9i.jar
set HIBERNATETOOLS_HOME=C:\test\ext\tools
echo HIBERNATETOOLS_HOME set to %HIBERNATETOOLS_HOME%
if "%HIBERNATE_HOME%" == "" goto noHIBERNATEHome
set CORELIB=%HIBERNATE_HOME%\lib
set LIB=%HIBERNATETOOLS_HOME%\lib
set CP=%CLASSPATH%;%JDBC_DRIVER%;%HIBERNATE_HOME%\hibernate3.jar;%CORELIB%\commons-logging-1.0.4.jar;%CORELIB%\commons-lang-1.0.1.jar;%CORELIB%\cglib-2.1.jar;%CORELIB%\dom4j-1.5.2.jar;%CORELIB%\odmg-3.0.jar;%CORELIB%\xml-apis.jar;%CORELIB%\xerces-2.4.0.jar;%CORELIB%\xalan-2.6.2.jar;%LIB%\jdom.jar;%CORELIB%\commons-collections-2.1.1.jar;%LIB%\hibernate-tools.jar
if not "%HIBERNATE_HOME%" == "" goto end
:noHIBERNATEHome
echo HIBERNATE_HOME is not set. Please set HIBERNATE_HOME.
goto end
:end