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

A convenience jar that contains all the native dispatch libraries #523

Closed
wants to merge 41 commits into from

Conversation

lwahonen
Copy link

Trying to make JNA work in Idea is somewhat tedious, as the dispatch dlls are not found. The jars under lib/native don't have the proper directory structure inside them, so including them in the class path will not fix loading the dispatch library.

This jar could probably be generated automatically, but I don't have sufficient understanding of the build machinery.

Lyor Goldstein and others added 2 commits October 27, 2015 16:02
Added initialization and conversion between Windows SYSTEMTIME and Ja…
@twall
Copy link
Contributor

twall commented Oct 28, 2015

I ran into this using eclipse, and the solution there was to copy the newly-built native bits into eclipse’s space.

Maybe you could just make an ant target to create the jar (“idea-jar”), since it’s something that’s easy to create on the fly and not something that we’d necessarily need to distribute.

Whether or not it permanently winds up in “dist” it should have a rule to recreate it.

On Oct 23, 2015, at 6:07 PM, L Will Ahonen notifications@github.com wrote:

Trying to make JNA work in Idea is somewhat tedious, as the dispatch dlls are not found. The jars under lib/native don't have the proper directory structure inside them, so including them in the class path will not fix loading the dispatch library.

This jar could probably be generated automatically, but I don't have sufficient understanding of the build machinery.

You can view, comment on, or merge this pull request online at:

#523

Commit Summary

• A single jar I can include and make JNA work in Intellij Idea as a module
File Changes

• M CHANGES.md (1)
• A dist/native-dispatch-libs.jar (0)
Patch Links:

https://github.com/java-native-access/jna/pull/523.patch
https://github.com/java-native-access/jna/pull/523.diff

Reply to this email directly or view it on GitHub.

mlfreeman2 and others added 23 commits October 31, 2015 22:59
Added com.sun.jna.platform.win32.Mpr, com.sun.jna.platform.win32.LmShare, and com.sun.jna.platform.win32.Winnetwk
Added ACCESS_* definitions to com.sun.jna.platform.win32.LmAccess
Added NetShareAdd and NetShareDel to com.sun.jna.platform.win32.Netapi32
Added new library Mpr and functions to Netapi32
* Advapi32
	* Added LOGON_WITH_PROFILE constant
	* Added LOGON_NETCREDENTIALS_ONLY constant
	* Added CreateProcessWithLogonW(String, String, String, int, String, String, int, Pointer, String, STARTUPINFO, PROCESS_INFORMATION)
		* No Unit Test - I would have to make it create a user to be 100% able to run a process as another user and that would be a security issue I figure.
* Crypt32
	* Added CertAddEncodedCertificateToSystemStore(String, Pointer, DWORD)
		* No Unit Test - I doubt anyone would want the security risk of a unit test installing a root certificate.
* GDI32
	* Added SRCCOPY constant
	* Added BitBlt(HDC, int, int, int, int, HDC, int, int, int)
		* No direct unit test - the test for GDI32Util.getScreenshot() seemed to cover it just fine.
	* Added GDI32Util.getScreenshot(HWND)
		* Added unit test as GDI32UtilTest.testGetScreenshot()
* Shell32
	* Added SHERB_NOCONFIRMATION constant
	* Added SHERB_NOPROGRESSUI constant
	* Added SHERB_NOSOUND constant
	* Added SEE_MASK_NOCLOSEPROCESS constant
	* Added SHEmptyRecycleBin(HANDLE, String, int)
		* No unit test - no idea how to tell if the recycle bin is empty afterwards
	* Added ShellExecuteEx(SHELLEXECUTEINFO)
		* No unit test - there are a bunch of cases where the hProcess member in SHELLEXECUTEINFO isn't set - not sure how to control for that
* ShellAPI
	* Added SHELLEXECUTEINFO structure
* User32
	* Added GetDesktopWindow()
		* Added test as User32Test.testGetDesktopWindow()
* WinGDI
	* Added HGDI_ERROR
	* Removed superfluous "public" and "public final" from WinGDI
Prefer String over WString
Fix some w32 API callback types to be stdcall
Fix platform test execution from top level 'test-platform' target
…api-cleanup

Clean up w32 platform-specific tests
…api-cleanup

Avoid overwriting test results from different platforms
…ditional-1

Kernel32.ProcessIdToSessionId and resource extraction functions
…ditional-2

Added EnumResourceTypes and EnumResourceNames to Kernel32
Return 64-bit unsigned integer from FILETIME
@lwahonen lwahonen closed this Dec 4, 2015
@lwahonen lwahonen deleted the master branch December 4, 2015 22:55
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

We did miss to cleanup some coode when refactoring.

Modifications:

- Remove unused static method
- Remove not needed constructor

Result:

Cleanup
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.

6 participants