Light exception

Started by Gatobot, October 13, 2013, 01:03:00 AM

Previous topic - Next topic

Gatobot

Hi egon
im using the latest jpct jar and when i try to dispose a light this happens

Exception in thread "Thread-4" java.lang.NoSuchMethodError: com.threed.jpct.World.remove(I)V
   at com.threed.jpct.Light.dispose(Light.java:71)

the same thing happen when i used the method light.getPosition(), the others method are doing well


EgonOlsen

I can't verify this. Looks more like as if you have two jpct.jars (one old, one new) included in your project or something like this. I've written a simple test case based on the latest official 1.27 jar and it runs just fine:


import com.threed.jpct.SimpleVector;
import com.threed.jpct.World;
import com.threed.jpct.util.Light;


public class Test {
public static void main(String[] args) {
World world=new World();
Light light=new Light(world);
SimpleVector pos=light.getPosition();
System.out.println(pos);
light.dispose();
}
}

Gatobot

ahhhhh indeed the jpct_ae.jar was causing this, i didnt notice it before
many thanks