Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1359 connectés 

  FORUM HardWare.fr
  Programmation
  Java

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

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

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

n°1928693
Nauhar
Et hop TT
Posté le 03-10-2009 à 16:04:40  profilanswer
 

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  :)

mood
Publicité
Posté le 03-10-2009 à 16:04:40  profilanswer
 

n°1928700
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2009 à 18:43:33  profilanswer
 

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


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°1928893
nerisson
Pic-pic
Posté le 05-10-2009 à 09:08:14  profilanswer
 

Fait voir ton code source.


---------------
Light is right
n°1929115
cbeyls
Hail to the King, Baby
Posté le 05-10-2009 à 20:49:11  profilanswer
 

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


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

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

 

Sujets relatifs
[JS] Problème: ""null":Cannot convert undefined or null to object"Cannot send session cookie et Cannot send session cache limiter
Ereur : Could not find the main classQT symbole euro
Symbole externe non résolu sous VisualCannot resolve file j_spring_security_check
visualisation de msg definiProblème avec Find(), Excel Vba
std::findistringstream et std::find
Plus de sujets relatifs à : "cannot find symbol" d'un symbole défini...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR