Forums Register Login

how Platfom independent ?

+Pie Number of slices to send: Send
I am using Java native interface then how my program is Platfom independent ?
+Pie Number of slices to send: Send
If you're using JNI, then only the Java part is portable, of course. Depending on what you're doing in JNI, you may be able to write native libraries for other platforms, of course.

This is kind of like asking if a Mercedes is still prestigious if I paint it by hand with nail polish.
+Pie Number of slices to send: Send
 

Originally posted by sac kul:
I am using Java native interface then how my program is Platfom independent ?


By writing the native code for every platform known to man, of course.
+Pie Number of slices to send: Send
Previous replies are correct of course...
I just wanted to point out that my company still finds JNI useful, sometimes.

We had a couple of application which extract data from an electric device, then put the results into a database, and also allow you to manage the whole thing through a very complex Swing interface.
The connection to the devices was written in C, and compiled to native code. The database/swing parts were pure java.
Both applications had to run on various platforms (we have Windos 2000, Linux, Mac). So the native part had to be be adjuested for each platform, but at least the db/swing part was re-usable. Roughly, I'd say it saved us a year's work (mainly because the GUI was insanely complex).

Of course, we had a very painful taste of the rule "compile once, test anywhere... and then test it again...".
+Pie Number of slices to send: Send
your answers are great
thanks! Ernest,Thomas,Sol
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 687 times.
Similar Threads
what is representation independent
Appt cost in Bangalore
Java Compiler and JVM are platform dependent or independent?
Java Compiler and JVM are platform dependent or independent?
Java Compiler and JVM are platform dependent or independent?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:47:56.