I need help with a Java tutorial I'm trying to use

Started by
1 comment, last by aattss3 11 years, 10 months ago
Hello. I'm learning Java Game Development, but I seem to run into an error.

Video:

Error:

[background=rgb(235, 235, 235)]Images.java:13: cannot find symbol[/background]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]symbol : class Screen[/background][/font]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]location: class Images private Screen s; ^[/background][/font]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]Images.java:25: cannot find symbol[/background][/font]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]symbol : class Screen[/background][/font]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]location: class Images s = new Screen(); ^[/background][/font]



[color=#333333][font=arial, sans-serif]

[background=rgb(235, 235, 235)]2 errors[/background][/font]


[/quote]
Advertisement
The tutorial is 10 minutes long and I don't think many people will sit through it and attempt to reproduce.

My guess is the guy in the tutorial had the project set up in the IDE such that the Screen.java file was automatically imported to all java files in the project (which made an explicit import Screen.* unnecessary). You should check that.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

I'm pretty sure he doesn't automatically import stuff. Also, I uploaded my code in .txt. Does that help?

Edit:Nevermind. I fixed it.

This topic is closed to new replies.

Advertisement