"cannot find symbol" d'un symbole défini...

"cannot find symbol" d'un symbole défini... - Java - Programmation

Marsh Posté le 03-10-2009 à 16:04:40    

Bonjour,
Je suis actuellement en première année de DUT Informatique et suis bloqué dans la compilation d'un programme en Java.
En effet j'ai créer et compiler une classe UnPoint sans problème , mais quand je veux compiler la classe UnRectangle qui utilise la classe UnPoint celle-ci refuse et la console m'affiche  
 

Code :
  1. UnRectangle.java:3: cannot find symbol
  2. symbol  : class UnPoint
  3. location: class UnRectangle
  4.         UnPoint coin ;
  5.         ^
  6. UnRectangle.java:22: cannot find symbol
  7. symbol  : class UnPoint
  8. location: class UnRectangle
  9.         UnRectangle (UnPoint p) {               // Constructeur si on donne un point p
  10.                      ^
  11. UnRectangle.java:30: cannot find symbol
  12. symbol  : class UnPoint
  13. location: class UnRectangle
  14.         UnRectangle (UnPoint p , int l1 , int l2) {             // Constructeur
  15. si on donne l1 , l2 et un point p
  16.                      ^
  17. UnRectangle.java:7: cannot find symbol
  18. symbol  : class UnPoint
  19. location: class UnRectangle
  20.                 coin = new UnPoint () ;
  21.                            ^
  22. [...]
  23. UnRectangle.java:59: cannot find symbol
  24. symbol  : class UnPoint
  25. location: class UnRectangle
  26.                         coin = new UnPoint () ;
  27.                                    ^
  28. 10 errors


 
Je ne comprend pas car j'ai pourtant défini le classe UnPoint.
 
J'en appelle donc à votre aide et à votre expérience pour m'aider à découvrir mon erreur...
 
Merci d'avance  :)

Reply

Marsh Posté le 03-10-2009 à 16:04:40   

Reply

Marsh Posté le 03-10-2009 à 18:43:33    

Classpath. Il y a un topic dédié, vas le lire.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 05-10-2009 à 09:08:14    

Fait voir ton code source.


---------------
Light is right
Reply

Marsh Posté le 05-10-2009 à 20:49:11    

Oui à tous les coups il compile manuellement et il a oublié d'ajouter le répertoire courant au classpath ("-cp ." ).

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed