You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "lfkpoa (via GitHub)" <gi...@apache.org> on 2023/04/26 13:08:07 UTC

[GitHub] [arrow] lfkpoa opened a new issue, #35341: JniLoader throws FileNotFoundException on Windows

lfkpoa opened a new issue, #35341:
URL: https://github.com/apache/arrow/issues/35341

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   I'm trying to use arrow-c-data with Java on Windows but I always get a FileNotFoundException.
   Debugging the code I found out that JniLoader uses File.separator to concatenate the arch folder with the library name, which on Windows it is a backslack.
   But ClassLoader.getResourceAsStream always expects the path to use "/", so it does not find the resource.
   If I call ClassLoader.getResourceAsStream with the forward slach it is able to find the resource.
   I think this could be fixed by replacing File.separator with "/".
   
   ### Component(s)
   
   Java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou commented on issue #35341: [Java] JniLoader throws FileNotFoundException on Windows

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #35341:
URL: https://github.com/apache/arrow/issues/35341#issuecomment-1524235954

   Thanks for your report but I think that this is duplicated of #34293.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou closed issue #35341: [Java] JniLoader throws FileNotFoundException on Windows

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #35341: [Java] JniLoader throws FileNotFoundException on Windows
URL: https://github.com/apache/arrow/issues/35341


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org