• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Chess Code Help  RSS feed

 
Alexander Abbott
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the attached file, i have is the code im using for my chess game im coding on the JDK, and i get the following error message.

Exception in thread "main" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1318)
at ChessGame.PaintPiece(ChessGame.java:191)
at ChessGame.RepaintPieces(ChessGame.java:216)
at ChessGame.resetPieces(ChessGame.java:181)
at ChessGame.buildBoard(ChessGame.java:353)
at ChessGame.<init>(ChessGame.java:67)
at ChessGame.main(ChessGame.java:90)

Thanks
 
Ravikanth kolli
Ranch Hand
Posts: 179
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
firstly, welcome to javaranch.

I dont think any body can help without any sample code and just the example.

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alexander,
Welcome to the ranch, we are happy to have you here

From the stack trace, looks like the image you are defining does not exist. Can you post the relevant code where you are defining it? Most probably it is some syntactical error.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!