i was trying to do tutorial 3
i was trying draw the image "boss" but i get a error when i tried to run it. i followed the installation tutorial perfectly. i am a noob at java so can someone help me please.
this is the error i got:
Kann die Datei: image/boss.gif nicht finden
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at joge.engine.j2d.Image.draw(Image.java:40)
at joge.engine.j2d.Graphics.drawImage(Graphics.java:75)
at game.Game.paint(Game.java:23)
at joge.engine.system.Window.runEngine(Window.java:134)
at joge.engine.system.Window.initEngine(Window.java:122)
at joge.engine.system.SimpleWindow.action(SimpleWindow.java:102)
at joge.engine.system.SimpleWindow.actionPerformed(SimpleWindow.java:143)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Kann die Datei: image/boss.gif nicht finden == Can´t find the file: image / boss.gif
Perhaps you have forgotten to copy the folder image in your project folder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i was trying to do tutorial 3
i was trying draw the image "boss" but i get a error when i tried to run it. i followed the installation tutorial perfectly. i am a noob at java so can someone help me please.
this is the error i got:
Kann die Datei: image/boss.gif nicht finden
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at joge.engine.j2d.Image.draw(Image.java:40)
at joge.engine.j2d.Graphics.drawImage(Graphics.java:75)
at game.Game.paint(Game.java:23)
at joge.engine.system.Window.runEngine(Window.java:134)
at joge.engine.system.Window.initEngine(Window.java:122)
at joge.engine.system.SimpleWindow.action(SimpleWindow.java:102)
at joge.engine.system.SimpleWindow.actionPerformed(SimpleWindow.java:143)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Kann die Datei: image/boss.gif nicht finden == Can´t find the file: image / boss.gif
Perhaps you have forgotten to copy the folder image in your project folder.