Results 1 to 5 of 5

Thread: error in code

  1. #1
    Akap is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Red face error in code

    hi

    i downloaded a .jar file of a program that runs correctly.

    I then opened the code in eclipse and it now has errors.
    What could cause these errors if the program ran correctly?

    thank you!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,691
    Rep Power
    8

    Default

    We aren't psychics. What are the errors?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by KevinWorkman View Post
    We aren't psychics. What are the errors?
    Speak for yourself!

    The error is obviously due to a misplaced semicolon in line 42 of the Snafulicious class.

  4. #4
    Akap is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    public final class Orientation extends Enum
    the type Orientation may not subclass enum explicitly

    public static Position getInitialPosition(Board board1, Orientation orientation1)
    {
    int i = board1.getWidth() / 2;
    int j = board1.getHeight() / 2;
    static class _cls1
    {

    static final int $SwitchMap$martijn$quoridor$model$Orientation[];

    static
    {...
    illegal modifier for local class _cla1; only abstract or final is permitted

    and a lot more...

    Why do you think this happened?

  5. #5
    sleesVara is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

Similar Threads

  1. error in this code
    By gradiente99 in forum Eclipse
    Replies: 11
    Last Post: 07-20-2010, 05:58 PM
  2. Error Code???
    By andmartha in forum New To Java
    Replies: 11
    Last Post: 10-04-2008, 02:16 AM
  3. Help with code (static error)
    By oceansdepth in forum New To Java
    Replies: 1
    Last Post: 03-28-2008, 04:32 AM
  4. Pls help with a code error.
    By saytri in forum New To Java
    Replies: 8
    Last Post: 12-24-2007, 08:10 PM
  5. error in code
    By dirtycash in forum New To Java
    Replies: 2
    Last Post: 12-06-2007, 11:40 PM

Posting Permissions

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