LibraryOfCongress / bagger

The Bagger application packages data files according to the BagIt specification.
Other
120 stars 19 forks source link

Bagger fails to start if parent directory has spaces (Windows) #48

Closed timhutch closed 6 years ago

timhutch commented 6 years ago

I am using Bagger 2.7.6 on Windows 7.

It appears that bagger expects the application directory to not have any spaces. I had originally extracted the application files to d:\digital preservation tools. Launching bagger triggered the error: "Could not find or load main class preservation"

Moving the bagger files to a directory with no spaces successfully works around the issue.

johnscancella commented 6 years ago

Thanks for submitting this bug. However, as it is currently stands I do not have enough information to fix this. Can you post the full stacktrace please? Can you provide step by step instructions on how to reproduce?

thanks

timhutch commented 6 years ago

Can you point me to where the stacktrace would show up? I just got the error in the Windows command prompt window.

In any case, to reproduce:

Result:

Testing further, adding quotation marks around %APP_HOME% in the Execute bagger line of bagger.bat seems to resolve it: "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% -Dapp.home="%APP_HOME%" ...

johnscancella commented 6 years ago

this is a duplicate of #45