[英]No Idea to fix this Error:“UnsatisfiedLinkError: ../j3dcore-ogl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform”
I just want to learn Java3D in Apache Netbeans (IDE 11.1) but when I implement the Java3d library, code a simple "Getting startet"-Project and want that to run I get the Error: 我只想在Apache Netbeans(IDE 11.1)中学习Java3D,但是当我实现Java3d库时,编写一个简单的“ Getting startet” -Project并希望其运行我会收到错误消息:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Windows\j3dcore-ogl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
I have absolutely no idea how to fix that. 我绝对不知道该如何解决。
I already googled my problem, but there where no understandable solution for me. 我已经用谷歌搜索了我的问题,但是没有一个可以理解的解决方案。 My first thoughts were to reinstall Netbeans and all Java JDKs.
我最初的想法是重新安装Netbeans和所有Java JDK。 But even after this, the Programm throws the damn "UnsatisfiedLinkError"..
但是即使在此之后,程序也会抛出该死的“ UnsatisfiedLinkError”。
package javaapplication1;
import com.sun.j3d.utils.universe.SimpleUniverse;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.BranchGroup;
public class JavaApplication1 {
public JavaApplication1() {
SimpleUniverse universe = new SimpleUniverse();
BranchGroup group = new BranchGroup();
group.addChild(new ColorCube(0.3));
universe.getViewingPlatform().setNominalViewingTransform();
universe.addBranchGraph(group);
}
public static void main(String[] args) {
System.setProperty("sun.awt.noerasebackground", "true");
new JavaApplication1();
}
}
You're using an obsolete version of Java 3D. 您正在使用Java 3D的过时版本。 Java 3D >= 1.6 no longer uses j3dcore-ogl, this native library was used by the native OpenGL pipeline whereas Java 3D uses only the JOGL API.
Java 3D> = 1.6不再使用j3dcore-ogl,该本机库由本机OpenGL管道使用,而Java 3D仅使用JOGL API。 I advise you to read the section of the JogAmp wiki about Java 3D .
我建议您阅读JogAmp Wiki中有关Java 3D的部分 。 Jesper's suggestion isn't wrong, you would have a chance of making a terribly obsolete version of Java 3D work by using the 64-bit native library with a 64-bit JRE and putting it into the Java library path but a more reasonable (and easier) solution would consist in using a more recent version.
Jesper的建议没有错,通过将64位本机库与64位JRE一起使用并将其放入Java库路径,您将有机会使Java 3D的版本过时。解决方案)在于使用较新的版本。 I explained how to install it, just follow the link at the bottom of this page .
我已经解释了如何安装它,只需点击本页底部的链接即可。
Note that I'm responsible for the engine support of the JogAmp community , I wrote most of those wiki pages and the official Java 3D user's guide. 请注意,我负责JogAmp社区的引擎支持 ,我编写了大多数这些Wiki页面以及Java 3D官方用户指南。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.