Skip to main content

Hello3d example - Runtime error

1 reply [Last post]
pablo_arganaras
Offline
Joined: 2011-02-04
Points: 0

Hi,
I can't execute the well known example Hello3d.java
even when compilation it's ok, because when I try
java Hello3d
I get the message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-ogl 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:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280)
at Hello3d.<init>(Hello3d.java:7)
at Hello3d.main(Hello3d.java:15)

Any idea?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
itpedersen
Offline
Joined: 2011-02-14
Points: 0

Install Java 3D 1.5.1 from Oracle / Sun
Find the file j3dcore-ogl file on your system

Then locate your JRE folder on my computer it is in: C:\Program Files\Java\jre6\bin
Place the file: j3dcore-ogl

Then run you example then it should work.