Forums Register Login

I MUST BE STUPID

+Pie Number of slices to send: Send
how comes this doesn't work ??
DrawStrategy.java
compiles fine

Base.java

produces an error on compile: cannot resolve symbol DrawStrategy
(files are in the same directory)
I MUST BE STUPID not to see my mistake
[This message has been edited by Dave Van Even (edited October 17, 2001).]
+Pie Number of slices to send: Send
Being in the same directory is to my opinion not enough. Do they belong to the same package?
W.
+Pie Number of slices to send: Send
If I put them in the same package, I get the same result
Dave
+Pie Number of slices to send: Send
Do you use an IDE or do it "by hand"?
Where is the .class file generated? Check that if you compile them separetely, the directory where your outputs are generated has to be in your classpath.
W.
[This message has been edited by Wilfried LAURENT (edited October 17, 2001).]
[This message has been edited by Wilfried LAURENT (edited October 17, 2001).]
+Pie Number of slices to send: Send
It compiles and runs fine for me, output is -
Dit is strategy
"Dit is strategy"
I have just put all classes in one folder, no package.
I put them in seperate files, so i have 4 java files and 4 class files.
+Pie Number of slices to send: Send
I forgot to put . in my classpath
thanks for helping out!

Dave
+Pie Number of slices to send: Send
Dave, Dave, Dave,
You KNOW that there is no such thing as a STUPID question (Cindy slowly shakes head). We have ALL overlooked little things that hang us up.
I personally take objection to you calling someone stupid that is smart enough to figure out his own mistake - and I think that you owe him an apology .
+Pie Number of slices to send: Send
YEAH to Cindy!!! Gosh, plenty of nice people here in JavaRanch huh?
+Pie Number of slices to send: Send
and I'd finish up with "Hands up anyone who hasn't made this mistake"

Dave.
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 988 times.
Similar Threads
anonymous class giving compile time error
problem with monitors :
Referenec passing
interface
Why interface does not allow to reference a variable in super class using super keywo
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:20:49.