简体   繁体   English

Gluegen 32位与64位库

[英]Gluegen 32bit vs 64bit libraries

I've got a Java application that uses Gluegen (and JOGL) to visualise some data in a 3D graph, my question comes down to the fact that if a user is running my application on a 32bit JRE on a 64bit machine, I'm not sure which version of the gluegen/jogl dll files I need to use. 我有一个Java应用程序,该应用程序使用Gluegen(和JOGL)可视化3D图形中的某些数据,我的问题归结为以下事实:如果用户在64位计算机上的32位JRE上运行我的应用程序,不知道我需要使用哪个版本的gelgen / jogl dll文件。

Any thoughts? 有什么想法吗?

A 32-bit application needs a 32-bit DLL, regardless of where it is run. 一个32位应用程序需要一个32位DLL,而不管它在哪里运行。 You should be able to code it so the application will look for the 32-bit library and if this fails the 64-bit library. 您应该能够对其进行编码,以便应用程序将查找32位库,如果这失败了64位库。 ie whatever works ;) 即无论什么工作;)

Even better, you can use the bit-ness of the JRE to tell you which should work. 更好的是,您可以使用JRE的位特性来告诉您哪个应该起作用。

String bitness = System.getProperty("sun.arch.data.model");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM