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

Fix wrong java class path #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix wrong java class path #24

wants to merge 2 commits into from

Conversation

XFY9326
Copy link

@XFY9326 XFY9326 commented Dec 24, 2024

No description provided.

@tballison
Copy link
Contributor

How does dropping the * fix anything? How are you running into problems?

@XFY9326
Copy link
Author

XFY9326 commented Feb 4, 2025

According to the Java documentation, using asterisk (*) in -classpath or -cp will only match jar files. The previous configuration could only load external jar files, but could not load xml files.

Due to TIKA-4147, Tika will look for "custom-mimetypes.xml" directly on the classpath, NOT under "/org/apache/tika/mime/". Since I want to use custom-mimetypes.xml in a Docker container, I need to put it into the CLASSPATH. That's why I hope to fix this feature through this PR.

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

Successfully merging this pull request may close these issues.

2 participants