Eclipse: Java3D library cannot be read or is no valid zip file

137 views Asked by At

I have a strange error: I want to use Java3D but Eclipse gives me following error about the library .so file

Archive for required library: 'libs/libj3dcore-ogl.so' in project 'MyTest' cannot be read or is not a valid ZIP file

I'm using Ubuntu 14 LTS 64bit so I've downloaded the amd64 version of Java3D 1.5.1: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html#java3d-1.5.1-oth-JPR

regards

1

There are 1 answers

1
Kristupas A. On BEST ANSWER

You are not supposed to import .so files to eclipse as libraries. This is a native file, shared library to be exact. It needs to be linked at runtime using:

System.loadLibrary("j3dcore-ogl");

You need to find a .jar file, which you should put into eclipse as library instead of the .so file. Then you can either attach this file to your library, or link it during runtime yourself.