让JNA与SCO合作 [英] Getting JNA to work with SCO

查看:71
本文介绍了让JNA与SCO合作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常基本的JNA测试设置,我想用来验证我是否可以在SCO上将JNA与Java 1.4一起使用.是的,这是一个非常古老的项目.不,我需要使用这些技术.我已经通过在本地Windows机器上运行Java 1.4来验证Java 1.4能够支持JNA,但是,当我将其移到SCO VM上并进行设置并尝试在其中运行时,会出现UnsatisfiedLinkError: 在资源路径中找不到

jnidispatch(/com/sun/jna/openserver-ia32/libjnidispatch.so)

我似乎找不到可以下载此文件的地方.我认为它可能被捆绑到JNA的github上的platform.jar中,但是可惜没有.那么我在哪里可以得到这个呢?

非常感谢您的帮助.

解决方案

如果您查看jna.jar内部,则可以看到它们支持的平台(默认情况下):

达尔文 freebsd-amd64 freebsd-i386 linux-amd64 linux臂 linux-i386 linux-ia64 linux-ppc linux-ppc64 sunos-amd64 sunos-sparc sunos-sparcv9 sunos-x86 w32ce-arm 的win32-amd64 win32-x86

您似乎需要为SCO构建自己的SCO(它使用ant,应该不会那么难).

I have a very basic JNA test setup that I want to use to verify whether or not I can use JNA with Java 1.4 on SCO. Yes, this is very much a legacy project. No, I'm required to use these technologies. I've already verified that Java 1.4 is capable of supporting JNA by running it on a local Windows machine, however, when I move things over to a SCO VM I have setup and try to run it there, I get an UnsatisfiedLinkError:

jnidispatch (/com/sun/jna/openserver-ia32/libjnidispatch.so) not found in resource path

I can't seem to find a place where I can download this. I figured it might be bundled into the platform.jar on JNA's github, but alas not. So where can I get this?

Any help is greatly appreciated.

解决方案

if you look inside the jna.jar, you can see the platforms they support (by default):

darwin freebsd-amd64 freebsd-i386 linux-amd64 linux-arm linux-i386 linux-ia64 linux-ppc linux-ppc64 sunos-amd64 sunos-sparc sunos-sparcv9 sunos-x86 w32ce-arm win32-amd64 win32-x86

looks like you need to build your own for SCO (it uses ant, shouldn't be that hard).

这篇关于让JNA与SCO合作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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