• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

generic DAO giving error... why?

 
Sanjit Kumar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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 ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic