3 messages in net.java.dev.jna.usersSmall Deployment for Windows-only
FromSent OnAttachments
Dale...@coats.comApr 16, 2008 7:16 am 
Timothy WallApr 16, 2008 7:38 am 
Daniel KaufmannApr 16, 2008 4:28 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Small Deployment for Windows-onlyActions...
From:Dale...@coats.com (Dale@coats.com)
Date:Apr 16, 2008 7:16:01 am
List:net.java.dev.jna.users

First of all, fantastic job! I went to MSDN, picked up a few details on a Kernel32 interface, and had some native stuff running in minutes...great tool! I wish it was around years ago when I burned countless hours on JNI.

My question is about a Windows-only deployment and how I can get the size down (it was troubling to triple the size of my program to get the one call*).

The first thing I tried, which was quick and easy, was to unpack jna.jar, delete directories "darwin", "freebsd*", "linux*", and "sunos*", and pack it back up again. My test seemed to continue to work with this modified jar.

I just wondered if this was the "right" way to proceed, if I'm looking for trouble doing this, and if I can get even smaller using this technique. Realistically, I'm not going to have time to do a custom build, but to deploy a smaller package on Windows, I think I'm on the right track?

--Dale--

* The one call is to keep Windows from sleeping on me: SetThreaExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED)