mbaeuerle / Briss-2.0

Briss 2.0 is intended to be a GUI Update for the Briss PDF cropping tool.
GNU General Public License v3.0
484 stars 48 forks source link

Classpath location incorrect after build #78

Closed pawandubey closed 11 months ago

pawandubey commented 11 months ago

After running ./gradlew shadowDistZip as per the build instructions, I tried executing the ./build/scriptsShadow/Briss-2.0 that's generated. It produced this error:

★ 𝞴 ./build/scriptsShadow/Briss-2.0 
Error: Unable to access jarfile /home/pawan/Downloads/Briss-2.0/build/lib/Briss-2.0-all.jar

Investigating, it looks like the script is setting this (where APP_HOME is set to pwd -P:

CLASSPATH=$APP_HOME/lib/Briss-2.0-all.jar

But the built libs are in $APP_HOME/libs (notice the plural). I mv-ed the directory to match what the script was expecting and the app launched successfully.

I think the config (and issue) may come from the upstream library, but I am not sure.

P.S. This is on an Ubuntu 20.04 system.

cleydyr commented 11 months ago

Hey, @pawandubey. This is not an issue with Briss. It's not an issue with Shadow, either. :D

You shouldn't call this script directly from Briss' build directory. Instead, extract the Briss-2.0-shadow.zip (or tar) file and then call the Briss-2.0 file from there.

pawandubey commented 11 months ago

Ah, okay. I was going down an unsupported path. Thank you. Will close this :)