Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Syntax error on Tokens delete these tokens???

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IDE RAD v6 is jdk1.4 compliant but I added JDk1.5 to class path.

Following Hibernatemadeeasy.com tutorials.

These are the files in my web-inf/lib folder or in

myhibernateproject-->properties--> Java buildpath-->libraries

I have other libraries too but below are the one related to hibernate/mysql and Java 5

mysql-connector-java-5.1.6-bin.jar
hibernate-core.jar
hibernate-commons-annotations.jar
hibernate-annotations.jar
hibernate3.jar
ejb3-persistence.jar

JRE System Library (jdk1.5)
JRE_SRC



package test.hibernate;

import javax.persistence.Entity;


@Entity --> I get Syntax error on Tokens delete these tokens


public class Login {

private String loginname;
private String password;

geeters and setters

}
[ October 21, 2008: Message edited by: shah rah ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


@Entity --> I get Syntax error on Tokens delete these tokens

Can you post the stacktrace?
 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no stack race. I get this When I type @Entity above the Class name!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic