www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: Gatobot on October 13, 2013, 01:03:00 am

Title: Light exception
Post by: Gatobot on October 13, 2013, 01:03:00 am
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

Title: Re: Light exception
Post by: EgonOlsen on October 13, 2013, 08:00:21 pm
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:

Code: [Select]
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();
}
}
Title: Re: Light exception
Post by: Gatobot on October 13, 2013, 08:13:31 pm
ahhhhh indeed the jpct_ae.jar was causing this, i didnt notice it before
many thanks