esercizi 14-12-05 e shapehierarchy
Posted by Drowne on 14-12-2005 20:20
Premetto, ho usato la funzione cerca del forum, ho trovato il file .jar sul sito di cazzola, l'ho aperto con winrar e decompresso nella cartella prog delle mie librerie in una sua sottocartella chiamata ShapeHierarchy. Dopodichè l'ho importata nel sorgente utilizzando la stringa import prog.ShapeHierarchy.*;
fatto sta che non va ancora e mi da sto errore qua... chi mi darebbe una mano?
C:\>javac Shape.java
Shape.java:10: cannot access prog.ShapeHierarchy.Circle
bad class file: C:\librerie\prog\ShapeHierarchy\Circle.class
class file contains wrong class: Circle
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
Circle ciao = new circle(3);
^
1 error
Altra cosa... come diavolo si usa draw() ???
Powered by: vbHome (lite) v3.8 and vBulletin v2.3.1
Copyright © 2000 - 2002 Jelsoft Enterprises Limited