Explv / Explvs-AIO

Explv's AIO
MIT License
23 stars 18 forks source link

Setting this up on Intellij #47

Closed battlerme closed 5 years ago

battlerme commented 5 years ago

How do I set this up on intellij? I imported it into intellij, added osbot as a global library, marked the resource folder as the resource root and then built the artifact with the module output. But I get the following error when I run it on osbot: capture I don't have this issue when I use the jars releases, so I am not sure what I am doing wrong? Thanks!

Master-Of commented 5 years ago

You’re not exporting your resources into the jar. You want to make sure you’re copying the resources directory into the jar root.

On Mon, Jan 14, 2019 at 6:15 PM battlerme notifications@github.com wrote:

How do I set this up on intellij? I imported it into intellij, added osbot as a global library, marked the resource folder as the resource root and then built the artifact with the module output. But I get the following error when I run it on osbot: [image: capture] https://user-images.githubusercontent.com/46695456/51149523-5754cb00-1817-11e9-8373-65d82ca2e784.PNG I don't have this issue when I use the jars releases, so I am not sure what I am doing wrong? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Explv/Explvs-AIO/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/AsO3htVE-iR3P4iJ9hmeALM4jArY2dipks5vDR2LgaJpZM4Z__pw .

battlerme commented 5 years ago

help1 help2 I think I have done it this way now, but still get a similar error message!

Azn2000 commented 5 years ago

image Create a Folder and name it "resources"

put image in it (its only the content of the resources not the folder itself)

Master-Of commented 5 years ago

Hmm the issue you're hitting is definitely a resource one.. I moved my resources because they're not setup to spec in this repo. Mine are nested within /src/ and copied over like that. You might need to nest your resources within root/AIO

On Tue, Jan 15, 2019 at 4:24 AM Azn2000 notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/46575270/51174336-da2d6280-18b7-11e9-8ee7-896a98a30d25.png Create a Folder and name it "resources"

put [image: image] https://user-images.githubusercontent.com/46575270/51174371-ec0f0580-18b7-11e9-8dad-4fe9dcffb298.png in it (its only the content of the resources not the folder itself)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Explv/Explvs-AIO/issues/47#issuecomment-454341598, or mute the thread https://github.com/notifications/unsubscribe-auth/AsO3hpCrBvQbkWw7HnifQIsGkln7s73bks5vDaxsgaJpZM4Z__pw .

Explv commented 5 years ago

@battlerme

Correct artifact setup should look like this:

artifact

You have to create a resources directory in the root of the .jar, then add the directory contents of "resources" in the project, into that folder. A bit weird I know.

It's only structured that way due to the SDN setup.

ghost commented 5 years ago

Ahh, this is what I needed too :D

battlerme commented 5 years ago

Thank you!:)

ghost commented 5 years ago

I think this information should be somewhere more accessible, like the readme would be awesome!

Explv commented 5 years ago

@RealPoke https://github.com/Explv/Explvs-AIO/wiki/Local-Development-Setup