PDA

Click to See Complete Forum and Search --> : What's wrong with this?


birthjay
Jun 30th, 2004, 12:27 PM
Hello,

I have this example (see attached) that was derived from the "JAVA in a Nutshell" book from http://www.oreilly.com. The original example did not give any errors, but when I compiled the source code and tried to run the compiled example, it gives an error. I am compiling it with JDK 1.2.1

Would someone please take a look and see what might be happening?

Thanks!

birthjay
Jun 30th, 2004, 12:33 PM
Here is the zip...

Dillinger4
Jun 30th, 2004, 12:43 PM
Im at work so i can't run the code. Sorry. What's the error?

birthjay
Jun 30th, 2004, 02:27 PM
The error is:


An exception error of 'java/lang/IllegalAccessError' was not handled.

If you can download the zip file and extract it, just click on the panel.htm file and you should see it unless something else is going on here locally.

Thanks!

Dillinger4
Jun 30th, 2004, 02:42 PM
According to sun "An IllegalAccessError is thrown if an application attempts to access or modify a field, or to call a method that it does not have access to." When you run the code you should get a line number where the exception is being thrown.