Results 1 to 5 of 5

Thread: What's wrong with this?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    What's wrong with this?

    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!
    Last edited by birthjay; Jun 30th, 2004 at 12:32 PM.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830
    Here is the zip...
    Attached Files Attached Files

  3. #3

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830
    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!

  5. #5
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width