# Problem using VideoExport in Eclipse

**URL:** <https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374>\
**Category:** Libraries\
**Created:** [January 10, 2019, 1:03am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374 "2019-01-10T01:03:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjjv](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vjjv](https://discourse.processing.org/u/vjjv)\
**Post date:** [January 10, 2019, 1:03am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/1 "2019-01-10T01:03:11Z")

</div>

hello @hamoid! im trying to use your librarie in Eclipse… but the console show me this error:

```auto
java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Wincon

at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:412)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Wincon

at Main.setup(Main.java:68)

at processing.core.PApplet.handleDraw(PApplet.java:2412)

at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:859)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)

at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)

at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)

at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)

at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)

at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)

```

i can import the librarie correctly, but the error is in the line that i create the videoExport obj:

`videoExport = new VideoExport(this);`

im doing something wrong? i put the ffmpeg file into the folder also. its the basic sketch example, but in eclipse

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [January 10, 2019, 5:06am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/2 "2019-01-10T05:06:20Z")

</div>

This should help: [https://github.com/kfrajer/ProcessingVideoInEclipse](https://github.com/kfrajer/ProcessingVideoInEclipse)

I don’t think you need to add ffmpeg to eclipse. You just need to make sure it is in your PATH variable. If you open a command prompt and type `echo %PATH%`, the path of the ffmpeg executable should be there in that output.

Kf

---

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [January 11, 2019, 8:12am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/3 "2019-01-11T08:12:28Z")

</div>

Hi! Which OS, version, Processing version and Java version are you using?

---

<div class="post-metadata">

**Author:** ![vjjv](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vjjv](https://discourse.processing.org/u/vjjv)\
**Post date:** [January 14, 2019, 5:01am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/4 "2019-01-14T05:01:26Z")

</div>

Java 8, El capitan, processing 3

---

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [January 14, 2019, 6:37am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/5 "2019-01-14T06:37:11Z")

</div>

I’ll check out the code. Strange that it tries to access `com/sun/jna/platform/win32/Wincon` if you are on Mac.

---

<div class="post-metadata">

**Author:** ![vjjv](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vjjv](https://discourse.processing.org/u/vjjv)\
**Post date:** [January 16, 2019, 3:13am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/6 "2019-01-16T03:13:12Z")

</div>

Try, but still not working.

---

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [February 3, 2019, 4:26am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/7 "2019-02-03T04:26:08Z")

</div>

Could you please share your Main.java code? I tried in the Processing IDE in Mac and in IntelliJ Idea in Linux and it worked fine.

---

<div class="post-metadata">

**Author:** ![timrodenbroeker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timrodenbroeker/32/2294_2.png) [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Post date:** [May 3, 2019, 11:08am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/8 "2019-05-03T11:08:06Z")

</div>

@hamoid

Hi everyone! I have the same issue in IntelliJ IDEA.

Tryed to get it run for a few hours but it still does not work.

If you wanna try the whole app:

> **[timrodenbroeker/my\_life\_as\_a\_timeline](https://github.com/timrodenbroeker/my_life_as_a_timeline)**
>
> An experimental data visualization in Processing, built with IntelliJ IDEA - timrodenbroeker/my\_life\_as\_a\_timeline

This is my error code:

```auto
java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Wincon
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:412)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Wincon
	at App.setup(App.java:73)
	at processing.core.PApplet.handleDraw(PApplet.java:2425)
	at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
	at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
	at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
	at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: com.sun.jna.platform.win32.Wincon
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 14 more

```

---

<div class="post-metadata">

**Author:** ![timrodenbroeker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timrodenbroeker/32/2294_2.png) [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Post date:** [May 3, 2019, 11:19am UTC](https://discourse.processing.org/t/problem-using-videoexport-in-eclipse/7374/9 "2019-05-03T11:19:47Z")

</div>

Solved!

I’ve just added all the jars from the library folder to my project. Now it works fine! Thanks @hamoid for the brilliant library! 🙂
