This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes GRRRR! compile error!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "GRRRR! compile error!!!" Watch "GRRRR! compile error!!!" New topic

GRRRR! compile error!!!

fred fredricks

Joined: Mar 04, 2003
Posts: 16
hey, i just cant see the error guys...maybe you can see and help me out? its between two files, so i hope you dont mind me posting both class's and the respective compile errors..


[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 30, 2003: Message edited by: Dirk Schreckmann ]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Well, I tried to make some suggestions earlier, but you must have deleted your post before I finished...hehe, things happen like that sometimes.
Also, your new post gives me a better idea of what is going on. The compiler is still complaining that it can't find the getHeight() method. Is this implemented in the MoveableObject class? If so, please post it, too. Also be sure to use the CODE tags to preserve the indentation in your code. It sure makes it much easier to read.

Java API Documentation
The Java Tutorial
fred fredricks

Joined: Mar 04, 2003
Posts: 16
hi, sorry, i didnt mean to do it...newbie, i am playin around trying to see what does what etc...thanks for the is the other class

Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Okay, one problem is that MoveableObject needs to be declared public. If that doesn't fix all the problems, you should then remove all of your .class files and start the compilation over again. Sometimes this is the only thing necessary to fix such problems because some of the current .class files were generated from an old version of the code.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Schpellink eror: getHight() should be getHeight()
PS. Funny, I thought Laine was our spelling expert
:rotten joke: Sorry Layne, really
[ March 31, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: GRRRR! compile error!!!
Similar Threads
Button Problems
Assigment operation in Rectangle2D class
compilation error
getting to a 300 answer to compile
java.lang.NoSuchMethodError ???????