Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

annotations : a little compilation problem

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
you can close this thread,
my classpath was wrong.
javac -classpath C:\temp2\b\ MyClass.java :roll:
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
    Bookmark Topic Watch Topic
  • New Topic