Hi,
I'm hoping someone can help me with this frustrating conflict I'm experiencing.
I'm trying to get NYARToolkit working with jMonkeyEngine. I know that some people have had success with this. My project is set up in NetBeans on windows XP.
I've taken the initial steps of placing all the source files into the same project, and adding all the appropriate jars to the library for both NYARToolkit and JME.
These are the instructions I used to set up my working JME project:
http://www.jmonkeyengine.com/wiki/doku.php/setting_up_netbeans_6.7_for_jme_2.0.1
and these are the instructions I used to set up the NYARToolkit:
http://fangel7.tumblr.com/post/340840281/nyartoolkit-for-java-installation-instructions-for
Having merged the two instruction sets the issue I have now is that when I try to run the NYARtoolkit examples I get this error mesage:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)
at jp.nyatla.nyartoolkit.jmf.utils.JmfCaptureDeviceList.getDevice(JmfCaptureDeviceList.java:80)
at jp.nyatla.nyartoolkit.jmf.sample.NyarToolkitLinkTest.<init>(NyarToolkitLinkTest.java:72)
at jp.nyatla.nyartoolkit.jmf.sample.NyarToolkitLinkTest.main(NyarToolkitLinkTest.java:155)
The problem seems to go away if I remove these VM options from the project settings:
-Djava.library.path="..jME2jME2_0_1-Stablelibliblwjglnativewindows;..jME2jME2_0_1-Stableliblibjoglnativewindows_i586"
But then, of course, the jMonkeyEngine code doesnt compile.
Having google around a bit, it seems that the error message is associated with having no camera plugged in.
The libraries that the NYARToolkit wants are these: j3dcore, j3dutils, vecmath, glugen-rt, jogl, which I think are already present in the jMonkeyEngine setup. Is that right?
Does anyone have any hints on what might be causing this conflict? Any advice on getting this to work would be awsome. I'll take even the slightest hunch...
Thanks