-->
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.  [ 3 posts ] 
Author Message
 Post subject: Installing on XP (tools.jar not found)
PostPosted: Wed Mar 02, 2005 3:10 am 
Newbie

Joined: Wed Mar 02, 2005 2:35 am
Posts: 2
Hi,

I downloaded the Hibernate 3.0RC

I am using mckoi1.0.3 DB and following the quickstart instructions , changed the relevant lines in the properties file in the etc directory as follows.

hibernate.dialect org.hibernate.dialect.MckoiDialect
hibernate.connection.driver_class com.mckoi.JDBCDriver
hibernate.connection.url jdbc:mckoi://localhost:1234/
hibernate.connection.username user
hibernate.connection.password pass

I copied mkjdbc.jar to the lib directory as well

the readme suggests that the properties file should be in src directory; So is one supposed to copy the file from etc to src ??

then I started the default build.bat file (the first line contains a reference to hsqldb.. not sure what this is except that it may be something internal to the build script).. am I supposed to change that line to refer to the mckoi driver (tried that makes no difference) ?


----------
D:\HIBERN~1.0>java -cp "lib/ant-launcher-1.6.2.jar" org.apache.tools.ant.launch.Launcher -lib lib -Ddriver.jar=jdbc/hsqldb.jar
Unable to locate tools.jar.
Expected to find it in C:\Program Files\Java\j2re1.4.2_06\lib\tools.jar
Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties.
It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not
e found.

splash:

init:
[echo] Build Hibernate-3.0 (2005-03-01 10:23:37)
[echo] JDK version: 1.4

init.antlr:

antlr:

compile:
[javac] Compiling 797 source files to D:\HIBERN~1.0\build\classes

BUILD FAILED
D:\HIBERN~1.0\build.xml:201: 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
-----------------------

I am using the JDK 1.4.2_04 and copied the tools.jar from this SDK to the location the script was "expecting" to find tools.jar (not sure why it looks in the JRE location). I also have tools.jar on the classpath (makes no difference as the above error message still shows up) and so am a bit puzzled why it cant find it

My JAVA_HOME is correctly set to the SDK and I can compile servlets and jsps for tomcat from the commandline (so java and javac are on the path).. My classpath etc. is as follows

CATALINA_HOME=d:\tomcat5

CLASSPATH=.;d:\tomcat5\common\lib\activation.jar;d:\tomcat5\common\lib\mail.jar;
d:\tomcat5\common\lib\upload.jar;d:\tomcat5\common\lib\servlet-api.jar;d:\tomcat
5\common\lib\tools.jar;d:\tomcat5\common\lib\mkjdbc.jar;d:\tomcat5\common\lib\os
termillerutils_1_04_03_for_java_1_4.jar;d:\mckoi1.0.3\mckoidb.jar

Path=c:\j2sdk1.4.2_04\bin

JAVA_HOME=C:\j2sdk1.4.2_04

---------------

thanks for any suggestions


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 3:29 am 
Newbie

Joined: Tue Feb 22, 2005 11:51 am
Posts: 18
you have to put tools.jar into your classpath


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 3:21 am 
Newbie

Joined: Wed Mar 02, 2005 2:35 am
Posts: 2
seb wrote:
you have to put tools.jar into your classpath


erm its right there.. and why cant it find javac? its right there on the path


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.