Jump to content
  • Advertisement
Sign in to follow this  
aattss3

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

This topic is 2272 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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. Edited by aattss

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!