0

I am designing a library that is going to use native code, but i plan on making it cross platform. I was wondering how many different versions i would have to write to support each native implementations such as windows, linux, mac osx.

Popgalop
  • 737
  • 2
  • 9
  • 26
  • 3
    How many you choose to support , depends on you I guess ! – AllTooSir Jul 13 '13 at 19:54
  • But to make it independent on all major platforms that support java? – Popgalop Jul 13 '13 at 19:57
  • 1
    Have you had a look at [JNA](http://en.wikipedia.org/wiki/Java_Native_Access)? I believe this is the best you can do... – fge Jul 13 '13 at 20:00
  • What's "major" to you? It depends entirely on who your clients are. If you are in the desktop market, "major" is Windows and perhaps OS X. If you are in the server market, "major" is Linux and Windows, and possibly Solaris and others. If you are in the mainframe market, ... – Joni Jul 13 '13 at 20:03
  • Don't forget 32-bit and 64-bit versions for each of these. You may have to do a different one for different versions of OS as well. – Peter Lawrey Jul 13 '13 at 21:20
  • 1
    Are you sure what you are trying to do cannot be done in Java? Many things developers assume you can't do in Java, you actually can. This would avoid needing many multiple versions of JNI libraries. – Peter Lawrey Jul 13 '13 at 21:22
  • I am getting info about batteries and cpu – Popgalop Jul 13 '13 at 21:46

1 Answers1

2

Here is List of of operating system that Java 7 gives support to Oracle JDK 7 and JRE 7 Certified System Configurations

Tapas Bose
  • 28,796
  • 74
  • 215
  • 331