Skip to main content

Missing libraries?

1 reply [Last post]
ssinai
Offline
Joined: 2005-04-06
Points: 0

I thought I'd try out Java 3D, but I'm not having much success. I went to a basic tutorial to try out the first example
public class Hello3d {

public Hello3d() {
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) {
new Hello3d();
}
}

When I try to run it, I get the following -
Jan 25, 2011 2:14:40 AM javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:231)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:200)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:157)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:987)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:299)
at Hello3d.<init>(Hello3d.java:16)
at Hello3d.main(Hello3d.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)

Process finished with exit code 1

I'm running with 64 bit Windows 7 using Java1.6.0_22, Java3D 1.5.2, and IntelliJ 9.0.3. When I do google searches about this, I see lots of people running into the same problem, but I don't see anything in the way of an understandable answer.
Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sproketboy
Offline
Joined: 2006-08-07
Points: 0

Java can't find the DLL files needed for java3d. You can check where those files are and place them in the same folder as your application. It should find them there.