0

I'm trying to get this to work: How to take screenshots fast in Java?

Unfortunately it was built using an old version (June 2009) of JNA that I cannot find anywhere. So when I try to run the code with any of the following versions (3.2.3, 3.2.5, 3.2.7 and 3.3.0) I get errors.

I've looked around everywhere but cannot find an old (working) version for Java JNA.
Does anyone know where I could find it?

Community
  • 1
  • 1
Horen
  • 11,184
  • 11
  • 71
  • 113
  • Ah ... the joys of using native code ... – Stephen C Sep 28 '12 at 14:09
  • The reason the newer version "doesn't work" is that the platform-specific functions have been moved to `platform.jar`. If you include that jar file in your classpath in addition to jna.jar, the code should work properly (modulo possibly a few minor import changes). – technomage Sep 28 '12 at 15:40
  • Of course I tried to import `platform.jar` - without luck though. – Horen Sep 28 '12 at 18:48
  • `platform.jar` will have changed the containing interfaces on some of the functions and/or type definitions. If you have `platform.jar` in your classpath and load into a decent IDE (eclipse, IDEA, or netbeans) it will offer the appropriate correction for the new import paths. – technomage Sep 30 '12 at 13:22

2 Answers2

1

Have you checked Maven Central? They have versions back to 3.0.3. I'm not sure which version you are looking for however.

Eric B.
  • 23,425
  • 50
  • 169
  • 316
1

Previous releases are tagged going back five years, and are available from github.

technomage
  • 9,861
  • 2
  • 26
  • 40