Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

generic DAO giving error... why?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone,
Help me out, i got the error while writting generic dao class, saying jre5 is needed(i have jre6).
Has java 6 excluded parametrized type collection???

public interface GenericDAO<T, ID extends Serializable> {

T findById(ID id, boolean lock);
List<T> findAll();
T makePersistent(T entity);
void makeTransient(T entity);
void flush();
void clear();
}
[ March 10, 2007: Message edited by: Bear Bibeault ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need 5.0 or greater for the JDK to compile and the JRE to run.

So one of those two, I am guessing is less than 5.0

Do you have any Oracle installed, they tend to want to put their stuff first in the path var, and they use a really old JRE version and it really messes with your machine.

Go to a command prompt and type

javac -version

and

java -version

What numbers do you see?

Mark
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic