-->
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.  [ 4 posts ] 
Author Message
 Post subject: error in import
PostPosted: Tue Aug 29, 2006 10:13 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
hi
I worked with hibernate and it worked well ,but I changed my pc and now I get an error in "import static org.hibernate.criterion.example.create"
"Syntax error static imports are only available if source level is 5.0"
"the import org.hibernate.criterion.example.create can not be resolved"
I have needed libraries in lib and classpath ,can anyone help me ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 10:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
may i suggest you use source level 5 instead of something lower ? :)

this is a basic java/ide question not related to hiernate.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 1:56 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
may I ask what is source level 5 ?and where can I get it and set it ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 2:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you should ask that in a general java forum, not hibernate.

if it is in eclipse it is enabled on your project. justgoogleforit.

_________________
Max
Don't forget to rate


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