udacity / ud282 Goto Github PK
View Code? Open in Web Editor NEWProject code for Java students
Project code for Java students
The project uses Gradle 4.4.1 which is incompatible with Java 11 or newer.
Possible solution:
What should I do?
Hi,
I have found that during runtime, the GameUI.java throws a java.lang.IllegalArgumentException at line 49 with message "input==null!".
The following are the logs for same:
Exception in thread "main" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1348)
at com.udacity.GameUI.(GameUI.java:49)
at com.udacity.Game.main(Game.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Process finished with exit code 1
While tracing the issue, it seems that there exists some problem with the way grid.png, x.png & o.png images are read using ImageIO.read() function.
I have made some minor changes in code to fix the issue. If the maintainers feel that this is a genuine issue, I can proceed with a pull request for same. Thank you!
Hey I am following along with the udacity course and it says to set main class to com.udacity.Game. when configuring the application to run (using intellij). For some reason intellij is not finding this class even though it is in the file.
See the warning below. I can build the file with no issues, but am not able to run the application. Appreciate any help. New to intellij..
Nice technical teaching
Could not determine Java version using executable C:\Program Files\Java\jdk-10.0.2\bin\java.exe.
Hi there, I have Eclipse not IntelliJ, and when I open the project and run the Game.java file, it gives me the following error:
"Exception in thread "main" java.lang.IllegalArgumentException: input == null!
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1356)
at com.udacity.GameUI.(GameUI.java:39)
at com.udacity.Game.main(Game.java:163)"
What must I do for this programme to run in Eclipse?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.