让JNA与SCO合作

编程入门 行业动态 更新时间:2024-10-17 17:29:29
本文介绍了让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合作

本文发布于:2023-11-12 20:05:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582411.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:JNA   SCO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!