#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    59
    Rep Power
    1

    Java Error Question


    I got this error below in my java program and can not find how to fix it. Any one have any tips I can not compile or run.


    Exception in thread "main" java.lang.ExceptionInInitializerError
    at games.board.Cell.<init>(Cell.java:10)
    at games.board.Board.<init>(Board.java:16)
    at games.board.BoardGameTester.main(BoardGameTester.java:16)
    Caused by: java.lang.RuntimeException: Uncompilable source code - class games.board.Mark is already defined in package games.board
    at games.board.Mark.<clinit>(Mark.java:15)
    ... 3 more
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)


    I then tried to fix the problem by only have the for statement on one class and I got the following error. I am wondering why I would have a this error the code make me think I should re class and package my program. If so any idea how the best method for have a program name a class name games and a sub class named board. I am using Netbeans and have found problems.


    Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
    at games.board.BoardGameTester.main(BoardGameTester.java:24)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jan 2004
    Location
    Mobile, Alabama
    Posts
    4,021
    Rep Power
    1285
    This line tells you the issue.

    Code:
    Caused by: java.lang.RuntimeException: Uncompilable source code - class games.board.Mark is already defined in package games.board
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    59
    Rep Power
    1
    I think I will try to debug in the console, thanks for the help I am stuck because I can not run this fine because it will not compile. The compile can not understand my code. What try to fix the errors one by one and then compile to see if it works. So far I have been getting more errors. I am not a expert so I can not fix the errors together I just work my way down the source code will they are fixed.
    I like the console because I like to have my errors in a list. I will not run this program till I can compile.

IMN logo majestic logo threadwatch logo seochat tools logo