As you can see, hbm2java.bat (below) calls setenv.bat:
[code]
call setenv.bat
java -cp %CP% net.sf.hibernate.tool.hbm2java.CodeGenerator %*
[code]
So, you must have CP environment variable set accordingly.
If your setenv.bat says, for example:
[code]
set CP=...;%CORELIB%\commons-collections.jar;...
[code]
but if %HIBERNATE_HOME%\lib contains commons-collections-2.1.jar, it will not work, since the jars have different names. The same applies to all jars in the %CP%.
Just my 2 cents, maybe it helps.
Jeferson Charles Mayer[/i][/quote][/code]
|