• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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
 
a wee bit from the empire
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic