#gui project

1 messages · Page 1 of 1 (latest)

weary creekBOT
#

<@&987246883653156906> please have a look, thanks.

serene monolith
#

Can you build?

vast skiff
#

this is what im getting

serene monolith
#

Sorry, that site is toxic to my browser. so slow

#

So it looks like you are missing the src/main/resources folder, with all the gifs inside.

vast skiff
#

i thought i did have the folder?

serene monolith
#

Needs to be in src/main/resources because Cardgamegui.java or whatever uses getResource (line 139)

#

Compiler will compile your code then copy whatever is in the /resources folder over to the build directory. It's accessible via various getResource commands.

#

Looks like it needs it all in the /cards directory to work. So make a src/main/resources directory and put the cards folder in it.

#

give that a shot.

vast skiff
#

like this?, this also didnt work

serene monolith
#

was the error different?

vast skiff
#

no it was the same

serene monolith
#

Shouldn't it be getClass().getClassLoader().getResource(file)

vast skiff
serene monolith
#

Did it ever work for them?

vast skiff
#

not sure yet