Java JNI程序在另一个OS上的可移植性 [英] Java JNI programs portability on another OS

查看:130
本文介绍了Java JNI程序在另一个OS上的可移植性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我编写了一个在Windows中使用jni的Java程序.
现在我想知道这个程序是否可移植,是否可以在另一个OS中运行?

Hi,

I have written a Java program that uses jni in windows.
Now I want to know, if this program is portable and if I can run it in another OS?

推荐答案

JNI是Java的本机接口,旨在集成特定于系统的接口Java世界中的进程.由于一个操作系统上使用的程序/库不能直接在另一操作系统上使用 ,我想说,您必须将库/程序从Windows移植到您所使用的任何操作系统上计划使用.

问候,
曼弗雷德(Manfred)
JNI is javas native interface and was meant to integrate system specific processes with the java world. Since programs\libraries that are used on one OS can''t be directly used on another OS, I would say that you would have to port the library/program from windows to whatever OS you''re planning to use.

Regards,
Manfred


这篇关于Java JNI程序在另一个OS上的可移植性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆