when i followed the
linkhttp://www.hibernate.org/152.html.I catch the buid error!
D:\hibernate-2.1>java -cp "lib/ant-1.5.3.jar;lib/ant-optional-1.5.3.jar;lib/juni
t-3.8.1.jar;lib/xerces-2.4.0.jar;D:\jdk1.4.1_05/lib/tools.jar" org.apache.tools.
ant.Main -Ddriver.jar=C:\mysql\mysql-connector-java-3.0.8-stable-bin.jar eg
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.
eg:
[javac] Compiling 8 source files to D:\hibernate-2.1\eg
: t-3.8.1.jar;lib/xerces-2.4.0.jar;D:\jdk1.4.1_05/lib/tools.jar" org.apache.tools.
ant.Main -Ddriver.jar=C:\mysql\mysql-connector-java-3.0.8-stable-bin.jar eg
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.
eg:
[javac] Compiling 8 source files to D:\hibernate-2.1\eg
BUILD FAILED
file:D:/hibernate-2.1/build.xml:503: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 2 seconds
-------------------------------------------
and i use mysql , which's jdbc .jar has put into the %Hibernate_Home%/lib.
my hibernate.properties has modified list below:
## MySQL
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
#hibernate.connection.driver_class org.gjt.mm.mysql.Driver
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost/hibernatetest
hibernate.connection.username root
hibernate.connection.password mysql
can any one give me some advice?
Thx.
Dushky