Author Topic: Light exception  (Read 8224 times)

Offline Gatobot

  • byte
  • *
  • Posts: 15
    • View Profile
Light exception
« 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


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Light exception
« Reply #1 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();
}
}

Offline Gatobot

  • byte
  • *
  • Posts: 15
    • View Profile
Re: Light exception
« Reply #2 on: October 13, 2013, 08:13:31 pm »
ahhhhh indeed the jpct_ae.jar was causing this, i didnt notice it before
many thanks