Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liblouis fails to initialize when there's a space in the path #16

Closed
joeha480 opened this issue Jun 5, 2019 · 5 comments
Closed

Liblouis fails to initialize when there's a space in the path #16

joeha480 opened this issue Jun 5, 2019 · 5 comments

Comments

@joeha480
Copy link

joeha480 commented Jun 5, 2019

Liblouis fails to initialize when there's a space in the path:

java.lang.ExceptionInInitializerError
at org.liblouis.Translator.<clinit>(Translator.java:212)
[...]
Caused by: java.lang.RuntimeException
at org.liblouis.Louis.listResources(Louis.java:442)
at org.liblouis.Louis.access$500(Louis.java:52)
at org.liblouis.Louis$3.<init>(Louis.java:256)
at org.liblouis.Louis.getLibrary(Louis.java:252)
at org.liblouis.WideChar.<clinit>(WideChar.java:6)
... 24 more

On Windows this is higly problematic, as the default installation folder for applications is C:\Program Files

@alexander233
Copy link

Could you provide your whole exception stacktrace? Could it be that the exception you mention is caused by another exception, similar to what I am getting:

java.lang.ExceptionInInitializerError
at org.liblouis.Translator.(Translator.java:212)
( --- removed outer stack trace --)
Caused by: java.lang.RuntimeException: directory does not exist
at org.liblouis.Louis.listResources(Louis.java:448)
at org.liblouis.Louis.access$4(Louis.java:441)
at org.liblouis.Louis$3.(Louis.java:256)
at org.liblouis.Louis.getLibrary(Louis.java:252)
at org.liblouis.WideChar.(WideChar.java:6)
... 25 more

@joeha480
Copy link
Author

joeha480 commented Jun 5, 2019

@alexander233 I have updated the stack trace, and you're right, it's similar.

bertfrees added a commit that referenced this issue Jun 6, 2019
fixes #15 and
#16

Thanks to alexander233 (#17)
@bertfrees
Copy link
Member

bertfrees commented Jun 6, 2019

@joeha480 can you try the new version? There are two version now. You should use the one with classifier "standalone".

https://oss.sonatype.org/content/repositories/snapshots/org/liblouis/liblouis-java/4.1.1-SNAPSHOT/

@bertfrees bertfrees reopened this Jun 6, 2019
@alexander233
Copy link

@bertfrees Elegant that you found an even shorter way to to solve this problem! Works well on my system.

@joeha480
Copy link
Author

joeha480 commented Jun 7, 2019

@bertfrees It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants