-->
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.  [ 8 posts ] 
Author Message
 Post subject: Windows installation
PostPosted: Tue Jul 05, 2005 5:01 pm 
Newbie

Joined: Tue Jul 05, 2005 4:35 pm
Posts: 1
ok, so I'm trying to build hibernate in windows.

here is my path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\OpenAFS\Client\Program;C:\Program Files\OpenAFS\Common;C:\Program Files\MIT\Kerberos\bin;C:\Program Files\SecureCRT\;C:\Documents and Settings\miller\Desktop\hibernate-3.0;C:\Documents and Settings\miller\Desktop\hibernate-3.0\lib;C:\Program Files\Java\jdk1.5.0_04\bin

here is my JAVA_HOME:
C:\Program Files\Java\jdk1.5.0_04

and here is the error i get:
BUILD FAILED:
C:\...\build.xml:196: Unable to find a javac compiler
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does nto point to the JDK


so the JAVA_HOME var points to the JDK, and I'm all out of ideas. Do i need to add the jar's individually?

thanks
-Spaze


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 5:20 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Why not try to fix your system without trying to use Hibernate?


Top
 Profile  
 
 Post subject: I receive same error
PostPosted: Tue Jul 26, 2005 2:23 pm 
Newbie

Joined: Tue Jul 26, 2005 11:52 am
Posts: 2
Quiant answer "Fix your system". I get the same error, but I can compile Java programs. The "build eg" fails. Any real clues?

_________________
Carty Ellis
DARS PRoject
Miami University
Oxford, Ohio


Top
 Profile  
 
 Post subject: Re: Windows installation
PostPosted: Tue Jul 26, 2005 4:10 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
spazegun2213 wrote:
ok, so I'm trying to build hibernate in windows.

here is my path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\OpenAFS\Client\Program;C:\Program Files\OpenAFS\Common;C:\Program Files\MIT\Kerberos\bin;C:\Program Files\SecureCRT\;C:\Documents and Settings\miller\Desktop\hibernate-3.0;C:\Documents and Settings\miller\Desktop\hibernate-3.0\lib;C:\Program Files\Java\jdk1.5.0_04\bin

here is my JAVA_HOME:
C:\Program Files\Java\jdk1.5.0_04

and here is the error i get:
BUILD FAILED:
C:\...\build.xml:196: Unable to find a javac compiler
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does nto point to the JDK


so the JAVA_HOME var points to the JDK, and I'm all out of ideas. Do i need to add the jar's individually?

thanks
-Spaze


Just curios to kow whether you did set the ANT_HOME env variable, and also the
java/bin and ant/bin into your path variable ???


Top
 Profile  
 
 Post subject: Partially solved for me
PostPosted: Tue Jul 26, 2005 5:28 pm 
Newbie

Joined: Tue Jul 26, 2005 11:52 am
Posts: 2
I had a reference in the Path system variable that I needed to remove. I also had to add tools.jer to the 1.5 jre (from the 1.5 jdk). I also added the ANT_HOME to my PATH statement. Now I am left with this:

C:\files from basic 6\hibernate-3.0>build clean

C:\files from basic 6\hibernate-3.0>set JDBC_DRIVER=jtds-1.0.2.jar

C:\files from basic 6\hibernate-3.0>java -cp "lib/ant-launcher-1.6.3.jar" org.ap
ache.tools.ant.launch.Launcher -lib lib -Ddriver.jar=jtds-1.0.2.jar clean
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 b
e found.

cleantestdb:

clean:

BUILD SUCCESSFUL
Total time: 2 seconds

Build eg gives the same errors and says successful in 8 seconds.

_________________
Carty Ellis
DARS PRoject
Miami University
Oxford, Ohio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 6:00 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Thats not an error, thats a warning. Ignore it if you don't understand it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 9:02 am 
Newbie

Joined: Fri Jul 14, 2006 8:23 am
Posts: 3
To do all this:

copy from Hibernate* dir
lib/antlr-*.jar
lib/junit-*.jar

files into ant*/lib

(0) Make sure your hibernate.properties in etc/ have been set properly. I believe this will allow hibernate to connect to the database...
e.g. for the "H2" Database, I've added this entry because it's not yet there.

Code:
## H2

hibernate.dialect org.hibernate.dialect.H2Dialect
hibernate.connection.driver_class org.h2.Driver
hibernate.connection.url jdbc:h2:test;hsqldb.default_table_type=cached
hibernate.connection.username sa
hibernate.connection.password

For your database uncomment & modify the properties to the proper setting.

(1) To make a new Hibernate "jar" with your java class inside
make sure your place your .java file at the right place within:
e.g. for "H2" database place the H2Dialect.java (H2Dialect.txt) within dir
src\org\hibernate\dialect\H2Dialect.java

type/run "ant" at the Hibernate* dir
This should create a new Hibernate "jar" with your java class inside.
(It seems all the common database .java file is there, likely you do NOT need to compile & make a new Hibernate "jar" file)

(2) "ant eg"
To run this, copy the new or existing Hibernate "jar" into Hibernate*/lib dir
lib/hibernate*.jar

copy also your JDBC driver into the Hibernate*/lib dir
e.g. for "H2" database, the file is:
lib/h2.jar

now run "ant eg"

in my setting & database it runs ok.

(3) "ant info" - for hibernate-3.1.3 build.xml
it has a target "info"
Code:
    <target name="info" description="Echo system properties">
      <echoproperties/>
   </target>


This should display the properties within this build.xml...

Hope this helps.

_________________
:-)
James Liong
http://members.optusnet.com.au/~liongs


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 9:04 am 
Newbie

Joined: Fri Jul 14, 2006 8:23 am
Posts: 3
Sorry double post this, connection to forum & this website is slow...

_________________
:-)
James Liong
http://members.optusnet.com.au/~liongs


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