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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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:
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    Bookmark Topic Watch Topic
  • New Topic