Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Java - error: cannot find symbol

$
0
0

I newly started programming java and am currently trying to figure out how to draw images. I get an error that tells me I am doing something wrong even though I am only doing what I learned on the oracle tutorials.

My error appears when I try to compile it with "cmd.exe". The error in detail is like this:

Pictures.java:18: error: cannot find symbol
                } catch (IOExeption e) {
                         ^
  symbol:   class IOExeption
  location: class Pictures
Pictures.java:27: error: cannot find symbol
                g.drawImage(img, 50, 50, null);
                            ^
  symbol:   variable img
  location: class Pictures
2 errors

 

And this …


Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>