Install Java3D on Eclipse

I am trying to use Java3D in my project. This is the error I get:

29-Dec-2010 1:01:29 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(Unknown Source)
 at java.lang.Runtime.loadLibrary0(Unknown Source)
 at java.lang.System.loadLibrary(Unknown Source)
 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 World.<init>(World.java:10)
 at Start.main(Start.java:12)

I copied the .jar files to my lib project folder and linked them in Project -> Properties -> Add Jar File. In loading Java3D there was also a DLL file which I did not touch or include. What am I missing?

+3
source share
4 answers

On Windows, you must add the directory containing the DLL (e.g. ... \ j3d-1_5_2-windows-i586 \ bin) to the environment variable PATH. Unzip Instructions incorrectly says that you need to add the nonexistent "... \ lib \ i386" (version 1.5.2).

Linux, , , SO LD_LIBRARY_PATH.

README-unzip.html j3d-1_5_2-windows-i586.zip j3d-1_5_2-linux-i586.zip( ).

+2

"project/properties/java build path/source tab/expand / i386". telman shahbazov ( java3D lib). , - , .

+1

java3d, bin ext, :

.dll :

.../ /Java/Java 3D/1.5.1/bin

to

.../Program Files/Java/jre7/bin

.jar :

.../ /Java/Java 3D/1.5.1/lib/ext

to

.../ /Java/jre 7/lib/ext

+1

DLL eclipse.

0
source

Source: https://habr.com/ru/post/1782552/


All Articles