简体   繁体   English

通过SVN的Java3D

[英]Java3D through SVN

I have a problem that is somewhat similar to this post. 我有一个与此帖子有些相似的问题。

How do I dynamically load the Java3D library? 如何动态加载Java3D库?

I have a project where I can install Java3D on my system and then use the Java3D libraries in my project. 我有一个项目,可以在系统上安装Java3D,然后在项目中使用Java3D库。 But when I upload it to the SVN, and get it from another computer, it doesn't work. 但是,当我将其上传到SVN并从另一台计算机获取时,它不起作用。

I tried making a lib folder in the project and adding the .jar files from the lib folder in the properties. 我尝试在项目中创建一个lib文件夹,然后从属性中的lib文件夹中添加.jar文件。 But this still doesn't work. 但这仍然行不通。

Anybody can help? 有人可以帮忙吗?

SVN is thinking that your .jar files are text files and processing them as usual. SVN认为您的.jar文件是文本文件,并像往常一样对其进行处理。 So, if the data is moved between platforms it will be corrupted, because SVN will "fix" the end of line code. 因此,如果数据在平台之间移动,它将被破坏,因为SVN将“修复”行代码的结尾。

This question has information on how to solve it: How do I tell Subversion to treat a file as a binary file? 这个问题提供有关如何解决的信息: 如何告诉Subversion将文件视为二进制文件?

Besides the JARs, Java3D loads a set of native libraries. 除了JAR,Java3D还会加载一组本机库。 Did you include these in your project and SVN repository? 您是否将这些包括在项目和SVN存储库中?

Also, keep in mind, the native libraries are platform-specific. 此外,请记住,本地库是特定于平台。 If you want your program to run on all Java3D-supported platforms, you can include all the native libs and unpack/load the ones you need dynamically. 如果要让程序在所有受Java3D支持的平台上运行,则可以包括所有本机库并动态解压缩/加载所需的库。

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

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