MEH icon indicating copy to clipboard operation
MEH copied to clipboard

Compile -> Execute -> Nullpointerexception

Open SBird1337 opened this issue 10 years ago • 4 comments

I just inherited all the code from the repository in my Eclipse Environment, GBAUtils aswell as MEH itself and as soon as I want to run the project I get a Nullpointerexception at MainGUI.java:319 (btnOpenROM.setIcon(new ImageIcon(MainGUI.class.getResource("/resources/ROMopen.png")));) Am I just missing something or is it a serious issue?

SBird1337 avatar Jan 01 '14 19:01 SBird1337

Interdpth was having a very similar issue, so I'll look into it. Currently my buildbot compiles it just fine so it's either something to do with how you set it up or I accidentally forgot/misplaced a file. I'll check to make sure it's not an error on my end but it could very well be one on yours, so we'll see.

shinyquagsire23 avatar Jan 03 '14 04:01 shinyquagsire23

It sure could be on my side, I did not follow any build instructions(Since I did not find some), all I did was import the two projects into eclipse, created a simple run config and found it not working. The issue is very unusual, it seems to look for the ressource files in a completely different directory, I copied them over to target -> resources and it worked(kind of), I think there are also some problems caused by the plugin engine, I don't know if it can't find the plugins folder or if it has an issue because there are no plugins.

SBird1337 avatar Jan 03 '14 14:01 SBird1337

It's most likely the lack of plugins, although it hasn't caused issues in the past. Plugins are something that need a lot of work tbh.

shinyquagsire23 avatar Jan 03 '14 19:01 shinyquagsire23

Okay, well I'm wondering why the resources are not loaded correctly, I always though a "/path" indicates that it should be loaded relative to the project path, with the resource folder being on top that should be perfectly fine. Probably it's just something about the folder structure?

Edit: I compiled it by adding ALL files to the buildpath, it seems somehow everything except .java was excluded... How are you able to build the project like this anyways?

SBird1337 avatar Jan 03 '14 20:01 SBird1337