Bookmark Topic Watch Topic
  • New Topic

annotations : a little compilation problem  RSS feed

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am playing with annotations with JDK 1.5 and I have a small ridiculous problem
when I try to compile a class



C:\temp2\b\com\mypackage
C:\temp2\b\com\mypackage\javac Note.java
==> compilation OK

C:\temp2\b\com\mypackage>javac -classpath .;C:\jdk1.5.0_06\lib\tools.jar MyClass.java
MyClass.java:3: cannot find symbol
symbol: class Note
@Note
^
MyClass.java:6: cannot find symbol
symbol : class Note
location: class com.mypackage.MyClass
@Note
^
2 errors

Why do I get this error ? Why is Note not recognized ? the generated bytecode Note.class is
where it should be, that is C:\temp2\b\com\mypackage\Note.class

Thanks for helping
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
you can close this thread,
my classpath was wrong.
javac -classpath C:\temp2\b\ MyClass.java :roll:
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!