-->
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: JDK 1.2.2 not working
PostPosted: Fri Dec 19, 2003 7:23 am 
Newbie

Joined: Fri Dec 19, 2003 7:15 am
Posts: 4
Hi,

Anyone have tried JDK1.2.2 with Hibernate. I got

java.lang.NoSuchMethodError: net.sf.hibernate.persister.AbstractEntityPersister: method getTableName()Ljava/lang/String; not found

with Hibernate 2.1

With Hibernate 2.0.3, I got AbstractMethodError.

For the website, it claims Hibernate works with JDK 1.2+. What's wrong? I have included JNDI classes in my classes path.

Jacky


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 11:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Try to recompile hibernate with your JDK and tell if that resolves the problem?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 8:11 pm 
Newbie

Joined: Fri Dec 19, 2003 7:15 am
Posts: 4
I tried to recompile with JDK 1.2.2. However, the compiler give me compilation errors.

I can compile Hibernate with JDK 1.4.2. Any hints? Thanks.

max wrote:
Try to recompile hibernate with your JDK and tell if that resolves the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 8:18 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Quote:
I tried to recompile with JDK 1.2.2. However, the compiler give me compilation errors.


Leaving to others guessing what these errors were ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 9:30 pm 
Newbie

Joined: Fri Dec 19, 2003 7:15 am
Posts: 4
The compilation errors are NOT javax.naming.* not found. ;-) They are about final variable not assigned a value, etc. I think Hibernate will not compile with JDK 1.2.2 anymore.

I fixed the problem. I recompiled Hibernate with JDK 1.4.2 and compiler option target="1.1". In other words, just add target="1.1" attribute in the javac tag of "compile" task of the build.xml.

The new jar is working with JDK 1.2.2.

I think the compatability guide is mislead to just say "Hibernate requires JDK 1.2 or later (some people have run successfully under 1.1.8)". It should include the instructions above so that JDK 1.2 users can fix their problems without spending hours to test and search.

[quote="dimas"][quote]I tried to recompile with JDK 1.2.2. However, the compiler give me compilation errors. [/quote]

Leaving to others guessing what these errors were ?[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 20, 2003 11:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
We do have a wiki for these items to be documented for the community. You can add infromation that might help the rest of the community. So your solution is now answered in the forum FAQ.


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.