-->
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: Problems during hibernate installation on Win XP
PostPosted: Thu Feb 14, 2008 5:03 am 
Newbie

Joined: Thu Feb 14, 2008 4:47 am
Posts: 2
Hello!

I having some problems to install the following hibernate version.
Hibernate version:
Code:
Build Hibernate-3.2.6.ga (2008-02-14 09:42:02)


I am using Windows XP SP2 (Microsoft Windows XP [Version 5.1.2600])

E:\Programme\hibernate-3.2>java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

Full stack trace of any exception that occurs:
Code:
compile:
    [javac] Compiling 294 source files to E:\Programme\hibernate-3.2\build\class
es
    [javac] E:\Programme\hibernate-3.2\src\org\hibernate\jdbc\ResultSetWrapper.j
ava:30: org.hibernate.jdbc.ResultSetWrapper is not abstract and does not overrid
e abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.Resul
tSet
    [javac] public class ResultSetWrapper implements ResultSet {
    [javac]        ^
    [javac] E:\Programme\hibernate-3.2\src\org\hibernate\lob\BlobImpl.java:16: o
rg.hibernate.lob.BlobImpl is not abstract and does not override abstract method
getBinaryStream(long,long) in java.sql.Blob
    [javac] public class BlobImpl implements Blob {
    [javac]        ^
    [javac] E:\Programme\hibernate-3.2\src\org\hibernate\lob\ClobImpl.java:18: o
rg.hibernate.lob.ClobImpl is not abstract and does not override abstract method
getCharacterStream(long,long) in java.sql.Clob
    [javac] public class ClobImpl implements Clob {
    [javac]        ^
    [javac] E:\Programme\hibernate-3.2\src\org\hibernate\lob\SerializableBlob.ja
va:13: org.hibernate.lob.SerializableBlob is not abstract and does not override
abstract method getBinaryStream(long,long) in java.sql.Blob
    [javac] public class SerializableBlob implements Serializable, Blob {
    [javac]        ^
    [javac] E:\Programme\hibernate-3.2\src\org\hibernate\lob\SerializableClob.ja
va:15: org.hibernate.lob.SerializableClob is not abstract and does not override
abstract method getCharacterStream(long,long) in java.sql.Clob
    [javac] public class SerializableClob implements Serializable, Clob {
    [javac]        ^
    [javac] 5 errors

BUILD FAILED
E:\Programme\hibernate-3.2\build.xml:212: Compile failed; see the compiler error
output for details.

Total time: 20 seconds




I am using the statement "build" to run the installation. The following happens then:

Code:
E:\Programme\hibernate-3.2>java -cp "lib/ant-launcher-1.6.5.jar" org.apache.tool
s.ant.launch.Launcher -lib lib
Buildfile: build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not b e found.

splash:

init:
     [echo] Build Hibernate-3.2.6.ga (2008-02-14 09:42:02)
     [echo] JDK version: 1.5

init.antlr:

antlr:

compile:
(please see error code above.)


Any suggestions? Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 14, 2008 4:17 pm 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
hello cemeinz,

this is a problem of the JDK you are using, not one of Windows. Note that Hibernate will run with JDK 1.6, but it will only compile with JDK 1.5, because of incompatible changes in the JDBC classes that came with 1.6.

If you want to build Hibernate, you have to install JDK 1.5. But why would you want to build it? It comes already with the build JAR.

Carlo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 14, 2008 9:38 pm 
Beginner
Beginner

Joined: Thu Dec 13, 2007 2:32 pm
Posts: 26
man ... it'll be a whole lot easier if you were using eclipse and compiled it then and there ...

just too much trouble running ant and seeing errors.
Btw, above reply is right.

_________________
Regards,
Vyas, Anirudh


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.