Is it possible that using JNIWrapper Api i can get the file system info, like how many partitions are present and also what type are of they , just like in the demo of jniwrapper for windows and that too being platform independent when i m using jniwrapper crossplatform libraries.
Of course that is possible on any platform that JNIWrapper supports. That WinPack demo that you have mentioned just demonstrate how to do that on Windows platform using the corresponding API. And such or similar API exists on another platforms as well. So all you need is to find the required functionality for all that platforms and integrate with it using JNIWrapper. For example, on Mac OS X platform you can use our MacPack library which provides convenient integration with Cocoa API.
-Serge
what all other platforms are the apis available, and is it possible that after using
jni crossplatform + winpack + macpack + other platforms pack my application will work the same on all the the supported platforms
in my application will i have to make seperate classes for different platforms or the same will work equally well on all the supported platforms
by "supported" I mean the platforms that are supported by the JNI WRAPPER library
plz answer my question, just bumping it , in case it was missed , sorry for that
I thought it was clear from from my previous reply: WinPack for Windows platforms, MacPack for Mac OS X. And naturally to expect that these libraries will not work on another platforms. Therefore yes, you will need to make separate classes for another platforms. And in these classes you will probably need to call system API functions directly using JNIWrapper for example.
-Serge
the basic point is that will i be able to achieve platform independency finally or not, also i m not a master of system api of all the OS, so isnt jniwrapper has built in fucntions for this particular usage ??
actually i need to implement auto USB pendrive detection , and that too i need it to be platform independent, so if you can suggest me some way, i will be grateful.
If you want to achieve a "pure" platform independency then you need to use Java only. But as soon as you try to get some platform-specific functionality in your Java application then you need to use either JNI or JNIWrapper which greatly simplifies that.
Of course JNIWrapper itself is not an "expert" or "master" of system api of all the OS'es either. JNIWrapper is designed for invocation of native functions directly in Java applications without writing any additional native code: http://www.teamdev.com/jniwrapper/index.jsf
-Serge