-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: getting start failed!!!
PostPosted: Thu Feb 19, 2004 7:21 am 
Newbie

Joined: Thu Feb 19, 2004 7:00 am
Posts: 4
when i followed the link : [url]http://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

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.[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 7:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Perhaps JAVA_HOME does not point to the JDK ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 7:25 am 
Newbie

Joined: Thu Feb 19, 2004 7:00 am
Posts: 4
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 7:27 am 
Newbie

Joined: Thu Feb 19, 2004 7:00 am
Posts: 4
i'v set the java_home

D:\hibernate-2.1>set java_home
JAVA_HOME=D:\jdk1.4.1_05


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 7:30 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Check if you can call a simple <javac> task without Hibernate.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 8:42 am 
Newbie

Joined: Thu Feb 19, 2004 7:00 am
Posts: 4
Thank you,everybody!

i found when i delete %JAVA_HOME%\jre\lib\ext\*.jar ,excluding the orginal jdk .jar. and put the file hibernate2.jar to the %Hibernate_Home%\lib,the problem is fixed!!!

suprising?!

dushky.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.