• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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: 17347
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
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic