problems with java3D lib configuration

后端 未结 12 721
再見小時候
再見小時候 2020-12-03 08:53

ive ran into some trouble configuring java3D to work with my IDE environment...

I have downloaded j3d-1_5_2-linux-i586.zip, and unpacked j3dcore.jar, j3dutils.jar, v

相关标签:
12条回答
  • 2020-12-03 09:18

    I recently ran into this same problem, here's how I fixed it:

    Run 'strace java filename' and look near the top for lines like "open("/usr/lib/jvm/java-8-oracle/jre/bin/../lib/amd64/libpthread.so" which will tell you what binaries your system is loading.

    In my case, it's amd64 that matters.

    Go back to the java3d download page and download the binaries for (in this case) amd64 verson and install that. Overwrite the .so files in lib/ext (vecmath, j3dcore, and j3dutils).

    Test your java3d program again, it should be working.

    0 讨论(0)
  • 2020-12-03 09:23

    (Windows same problem resolved)

    "java.library.path" = PATH = C:\Program Files (x86)\Common Files\Oracle\Java\javapath\
    (inside this folder: javaws.exe, javaw.exe,java.exe)
    

    copy: j3dcore-ogl. "dll" to this folder and try!

    0 讨论(0)
  • 2020-12-03 09:23

    SOLVED - JonnyO answer is right.

    I am using java 8 on linux, and downloaded from https://java3d.java.net/binary-builds.html (take the linux-amd64 version for an intel 64 bit system).

    After unzipping the downloaded file, and then unzipping the contained j3d-jre.zip and adding the jar files to project and the libj3dcore-ogl.so to the jar, it still did not work. I had to add the libj3dcore-ogl.so to the library path. (Lazy as I am, I just copied it to /usr/lib, what is sufficient.)

    Now it is working.

    PS: Make sure to remove any other j3dcore.jar and j3dutils.jar beforehand.

    0 讨论(0)
  • 2020-12-03 09:23

    I had this problem.

    it is enough you download java3d plugin and install it.

    in your search engine like Google search "java3d plugin"

    and download so install it.

    0 讨论(0)
  • 2020-12-03 09:25

    As an addendum to given answers, what helped me set java 3d was: Copy and paste all the .dll files from "C:\Program Files\Java\Java3D\1.5.X\bin\" to "C:\Program Files\Java\jre6\bin\". So form Java3D to my actual jre6(from bin to bin).

    Previously I also set the classpath/(you can also set path) to 3dcore.jar, j3dutils.jar, vecmath.jar, j3dcore-ogl.dll but still did not work.

    After copy past j3dcore-ogl.dll (described above) and left classpath to 3dcore.jar, j3dutils.jar, vecmath.jar (in "C:\Program Files\Java\Java3D\1.5.X\ext\") it worked fine.

    I have found help here: http://www.xinapse.com/Manual/install_windows.html Look at the point 2.

    Best regards

    0 讨论(0)
  • 2020-12-03 09:26

    I know it's a very old question but some developers are still installing an obsolete version of Java 3D which is harder to use with or without an IDE. Please rather use Java 3D 1.6.0 and follow my detailed instructions (in English and in French) available here.

    0 讨论(0)
提交回复
热议问题