We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › JMyron, Processing, Eclipse
Page Index Toggle Pages: 1
JMyron, Processing, Eclipse (Read 1729 times)
JMyron, Processing, Eclipse
May 6th, 2009, 6:02am
 
Hello,

I am trying to use the JMyron webcam library in a Processing project within Eclipse (on windows).

I've had no trouble getting the Processing part of things working in Eclipse, but when I try to use JMyron, it doesn't seem to be able to find the DLLs. Where should I be putting them?


- Greg
Re: JMyron, Processing, Eclipse
Reply #1 - Sep 14th, 2009, 8:49am
 
Hello polarix,

I run into the same problem here. I have found a partial answer to this problem on a forum (http://nuigroup.com/forums/viewthread/2460/#14824):

Quote:
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libJMyron.jnilib

Well, this error normally occurs when Java cannot find the shared library. You should specify the path with
-Djava.library.path=path_to_the_lib

For example, if the file is in the subdirectory lib/ of your project, then -Djava...=lib should be enough. Simply add the statement in the Eclipse run configuration dialogue under Arguments/VM Arguments.
However, the ending .jnilib is quite strange… Which is your operating system Also, at what point (i.e., code) exactly does the error occur

P.S.: Sorry if you already knew all these things - UnsatisfiedLinkErrors really suck, and I thought I’d just throw in a few hints.

- elkmonster


However, i did go into Run -> Debug configurations... -> Java Applet -> [NameOfMyApplet], and under the Arguments tab I added "-Djava.library.path=lib" in the CM arguments field, but to no avail, I still get the error.

Being on an Intel-based Mac (OSX) I took the .jnilib from http://www.jibberia.com/projects/ and I placed it into the lib directory in my Java project.

I have posted this much info in the hopes that someone could provide more info on this, thank you.
Page Index Toggle Pages: 1