How to integrate Processing 2 with eclipse?
in
Integration and Hardware
•
7 months ago
Hi all,
In the past I've been able to get Processing 1 to work from within Eclipse. However, now when I try to do the same with Processing 2.0 I can't get it working.
The issue is with trying to play videos. Whatever I try it fails with loads of errors:
Anyone got any pointers?
Cheers,
Chris
In the past I've been able to get Processing 1 to work from within Eclipse. However, now when I try to do the same with Processing 2.0 I can't get it working.
The issue is with trying to play videos. Whatever I try it fails with loads of errors:
- Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: com/sun/jna/Platform
- at processing.video.LibraryPath.get(LibraryPath.java:43)
- at processing.video.Video.buildMacOSXPaths(Video.java:169)
- at processing.video.Video.initImpl(Video.java:108)
- at processing.video.Video.init(Video.java:69)
- at processing.video.Movie.initGStreamer(Movie.java:554)
- at processing.video.Movie.<init>(Movie.java:98)
- at eclipsetest.EclipseTest.setup(EclipseTest.java:15)
- at processing.core.PApplet.handleDraw(PApplet.java:2241)
- at processing.opengl.PGL$PGLListener.display(PGL.java:3240)
- at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:573)
- at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:558)
- at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:286)
- at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1021)
- at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:896)
- at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:545)
- at processing.opengl.PGL.requestDraw(PGL.java:1197)
- at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1550)
- at processing.core.PApplet.run(PApplet.java:2140)
- at java.lang.Thread.run(Thread.java:680)
- Caused by: java.lang.ClassNotFoundException: com.sun.jna.Platform
- at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
- ... 19 more
- package eclipsetest;
- import processing.core.PApplet;
- import processing.video.*;
- public class EclipseTest extends PApplet {
- Movie movie;
- public void setup() {
- size(1500,1000,P2D);
- background(0);
- // Load and play the video in a loop
- movie = new Movie(this, "1rjb.mp4");
- movie.loop();
- }
- public void draw() {
- image(movie, 100, 100, 1160, 700);
- }
- public void movieEvent(Movie m) {
- m.read();
- }
- public static void main(String _args[]) {
- PApplet.main(new String[] { eclipsetest.EclipseTest.class.getName() });
- }
- }
Anyone got any pointers?
Cheers,
Chris
1