-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[3.5.1] file name format is too restrictive #214
Comments
On Apr 7, 2013, at 9:51 PM, zsawyer wrote:
That seems reasonable, I can't think of scenarios where that might cause problems. Note that 3.5.2 uses an in-jar lookup mechanism so you only need to include the DLL resources in the appropriate place in your classpath (win32-x86-64/mylibrary.dll and win32-x86/mylibrary.dll) for JNA to find them automatically. |
Thank you for that fast feedback. Also I would like to take this chance and thank you for this great project, it is most helpful and porting my code JNI to JNA will help with changes in the Java code and make the native library easily available for other projects without compiling a custom DLL every time. So Thanks! :) |
Update: loading the native from the jar works nicely however 3.5.2 doesn't yet support equalizing of arch amd64 and x86-64. But looking at the master's code tells me 3.5.3 will have it :) - can't wait. |
Could you elaborate what you mean about "further equalizations"? |
Yes, sorry.
This effectively means that " For me this raised the question if this could also be applied to the os.name attribute so that for example WinCE libraries could be used on regular Win32 systems. Note how instead of
Since it is generally preferred to use the library specifically compiled for an os it would have to be a fallback. For example when no " |
w32ce and win32 are distinctly different beasts, even if they may be semi-compatible at the source code level. I don't see any rationale that warrants such a merge. |
Thanks for clarifying, that is what I meant. |
Addressed and tested with 9740335. |
Motivation: Shutdown the stream is something that has some "meaning" in quic so we should follow it. Modifications: - Add more overloads for shutting down the stream - Deprecate QuicStreamChannel.SHUTDOWN_OUTPUT and users should use QuicStreamChannel.SEND_FIN Result: Clearer API / better semantics
This came up when developing under windows.
I have have many native libraries. 2 for each platform [1 for 32 bit and 1 for 64 bit] that I am supporting.
I am shipping the those libraries within the jar. Only one of those libs will work so naturally I only want one file outside the jar. What I did was write the appropriate resource to a file with a generic name "library".
As you can see there is no extension. The file does not adhere to any of the platform specific naming rules. So I passed the absolute file path to
but this will end up with
even though the file is right there.
Changing the file's name to "library.dll" will have JNA load it correctly.
I initially was using a temporary file (File.createTempFile() and had the same issue because I left the extension as ".tmp".
So here is the request:
When an absolute path name is supplied please allow the file to be loaded no matter what the name is.
Thanks
The text was updated successfully, but these errors were encountered: