MAtlabJava3D problem issue

Dear Forum,
I don’t if it is better post it here or in Matlab Forum directly, but I will start from this forum :wink:

I have just downloaded MatlabJava3D from here:

I cannot start it because it throws me this error during the Installing the Java3D libraries step.

Testing if Java3D is already installed...
Java3D is not installed.
Let us try to install it.

Determining the target JVM ext folder...
Undefined variable "ij3d" or class "ij3d.Install_J3D.getFirstExtDir".

**Error in InstallJava3D (line 46)**
**    ext_path =  char(ij3d.Install_J3D.getFirstExtDir());**

My matlab version is:
MATLAB Version: (R2015b)
MATLAB License Number: 1089945
Operating System: Mac OS X Version: 10.9.5 Build: 13F1911
Java Version: Java 1.7.0_75-b13 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode

but I’ve also tried with this java version:
Java Version: Java 1.8.0_111-b14 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode

have you some ideas about what is could be the solution of thi problem?
thank you all,

I can only guess (I have no access to the source of the plugin) that the ext dir of your current JRE can’t be found or calculated from the plugin function “ij3d.Install_J3D.getFirstExtDir()”.

The ext dir (in the JRE) is the directory where the Java3D libs are downloaded when using the old 3D viewer.

What happens if you install the old “3d Viewer” first (which will ask you to install the 3d libs if not installed already) and then use the plugin (with the correct JRE Matlab uses). The check before the error indicates that this workaround could work.