javax.media.opengl.* === import error
in
Core Library Questions
•
1 year ago
Hi everybody,
I have a problem with contributed libraries which import javax.media.opengl.*; for example msafluid and flight404.
After I comply the example, I will get the error:
Exception in thread "Animation Thread" java.lang.NoSuchMethodError: processing.core.PImage.getCache(Lprocessing/core/PGraphics;)Ljava/lang/Object;
at processing.opengl.PGraphicsOpenGL.bindTexture(PGraphicsOpenGL.java:821)
at processing.opengl.PGraphicsOpenGL.renderTriangles(PGraphicsOpenGL.java:756)
at processing.core.PGraphics3D.endShape(PGraphics3D.java:649)
at processing.core.PGraphics.endShape(PGraphics.java:1181)
at processing.core.PGraphics.imageImpl(PGraphics.java:2824)
at processing.core.PGraphics.image(PGraphics.java:2775)
at processing.core.PGraphics.image(PGraphics.java:2728)
at processing.core.PApplet.image(PApplet.java:8479)
at flight404_particles_1_simple.renderImage(flight404_particles_1_simple.java:191)
at flight404_particles_1_simple$Emitter.render(flight404_particles_1_simple.java:268)
at flight404_particles_1_simple$Emitter.exist(flight404_particles_1_simple.java:228)
at flight404_particles_1_simple.draw(flight404_particles_1_simple.java:127)
at processing.core.PApplet.handleDraw(PApplet.java:1606)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
///////////////////////////////
On the other hand, when I try to run general openGL example, It works fine.
The error comes from osx 10.6.8 Processing 1.5.1
Could you please give me a suggestion what am I missing?
Best Regards,
Patawat
1