posted 18 years ago
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