Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » unable to recognize java.lang.annotation class
unable to recognize java.lang.annotation class [message #525634] Wed, 07 April 2010 09:51 Go to next message
ragini  is currently offline ragini Friend
Messages: 5
Registered: February 2010
Junior Member
I am trying to build an EJB example , however the eclipse ide does not recognize the java.lang.annotation class . I have included the org.eclipse.jdt.core.jar file in factory path for the project also i have added rt.jar in the external jar . Still the eclipse ide does not recognize the java.lang.annotation.CAn anyone help ?

[Updated on: Wed, 07 April 2010 09:51]

Report message to a moderator

Re: unable to recognize java.lang.annotation class [message #525848 is a reply to message #525634] Thu, 08 April 2010 00:36 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
ragini wrote:
> I am trying to build an EJB example , however the eclipse ide does not
> recognize the java.lang.annotation class . I have included the
> org.eclipse.jdt.core.jar file in factory path for the project also i
> have added rt.jar in the external jar . Still the eclipse ide does not
> recognize the java.lang.annotation

You do not need org.eclipse.jdt.core in the factory path. And the factory path
has nothing to do with whether the IDE would recognize a given class; the
factory path specifies where to find annotation processors. Also, you do not
need to add rt.jar, it is added automatically (because you have a JRE container
on your classpath already).

What do you mean by "does not recognize"?

And when you say "does not recognize the java.lang.annotation class", what class
do you mean? There is no such class; there is a package with that name, and
there is a class java.lang.annotation.Annotation. I am not sure which one you
mean, or whether you mean something else.

Please be more precise about exactly what you are trying and exactly what error
you are encountering.
Re: unable to recognize java.lang.annotation class [message #666736 is a reply to message #525848] Fri, 22 April 2011 03:55 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: April 2011
Junior Member
Very sad that this post is the number 1 google result, yet provides no help.
Previous Topic:Zipping up files to "build" a project
Next Topic:Error message: No repository found at ...
Goto Forum:
  


Current Time: Thu Apr 18 06:55:57 GMT 2024

Powered by FUDForum. Page generated in 0.03408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top