File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Syntax error on Tokens delete these tokens??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Syntax error on Tokens delete these tokens???" Watch "Syntax error on Tokens delete these tokens???" New topic
Author

Syntax error on Tokens delete these tokens???

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
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

Joined: Apr 14, 2004
Posts: 10336



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

Can you post the stacktrace?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
no stack race. I get this When I type @Entity above the Class name!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Syntax error on Tokens delete these tokens???