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 › QTJava in Eclipse
Page Index Toggle Pages: 1
QTJava in Eclipse (Read 6531 times)
QTJava in Eclipse
May 4th, 2009, 1:18pm
 
Hello,

i am using QTJava in a Eclipse-Project on Windows. I tryed to use the same jars and dependencys like in processing, but i get always the following Exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no QTJava in java.library.path
     at java.lang.ClassLoader.loadLibrary(Unknown Source)
     at java.lang.Runtime.loadLibrary0(Unknown Source)
     at java.lang.System.loadLibrary(Unknown Source)
     at quicktime.jdirect.JDirectLinker$1PrivelegedAction$1.run(JDirectLinker.java:266)
     at java.security.AccessController.doPrivileged(Native Method)
     at quicktime.jdirect.JDirectLinker$1PrivelegedAction.establish(JDirectLinker.java:2
64)
     at quicktime.jdirect.JDirectLinker.<clinit>(JDirectLinker.java:272)
     at quicktime.jdirect.QTNative.loadQT(QTNative.java:33)
     at quicktime.jdirect.QuickTimeLib.<clinit>(QuickTimeLib.java:17)
     at quicktime.QTSession.<clinit>(QTSession.java:83)
     at ImportExport.main(ImportExport.java:90)

What i have to add to my build-path or which files are needed? In the QTSystem-Folder in QT i have only QTJNative.dll and QTJavaNative.dll which doent fix the problem.

How has anybody done this in processing? It uses QTJava too.
Re: QTJava in Eclipse
Reply #1 - May 5th, 2009, 3:32am
 
Did you included QTJava.zip (from processing\libraries\video) too?
Re: QTJava in Eclipse
Reply #2 - May 5th, 2009, 8:28am
 
Yes of course, but i dont know what QTJava needs.
Re: QTJava in Eclipse
Reply #3 - May 5th, 2009, 9:10am
 
Ok i found the problem:

It looks like QTJava needs an jre6 or the path to this QTJava in the Java/jre-Folder. I found this in the System.env-Properties:

QTJAVA=C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Now i used the last jre in my project an now it works.
Re: QTJava in Eclipse
Reply #4 - May 15th, 2009, 1:32am
 
PhilMorteja wrote on May 5th, 2009, 9:10am:
It looks like QTJava needs an jre6 or the path to this QTJava in the Java/jre-Folder. I found this in the System.env-Properties:

QTJAVA=C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip



Hey,

I got a similar problem.
Please can you tell me where I have to add these properties
Re: QTJava in Eclipse
Reply #5 - May 15th, 2009, 2:40am
 
I think Phil means by "System.env-Properties" that he defined (or found?) these environment variables.
Re: QTJava in Eclipse
Reply #6 - May 15th, 2009, 2:44pm
 
Hi.

I have the same problem, I've checked the System Variables, and both (CLASSPATH & QTJAVA) are defined, but it still doesn't work.

Any ideas?

Thanks
Re: QTJava in Eclipse
Reply #7 - May 20th, 2009, 6:56am
 
Hi.

I have the same problem too, and solved it just now.

1.add "QTJava.zip" to your project build path.
2.and set the location of native library path of "QTJava.zip" to "?:/Program Files/QuickTime/QTSystem".

Try it.
Re: QTJava in Eclipse
Reply #8 - Oct 16th, 2009, 2:59pm
 
Hello all,
I am now getting the exact same message after I tried setting every possible environment variable (user / system); I have now officially restarted my machine a billion times and am almost ready to bang my head against the keyboard if that would get this to work.
Please, pretty please, if you have any idea let me know so that I can get to some real designing
Any help will be appreciated.
Thanks beforehand
E
Re: QTJava in Eclipse
Reply #9 - Oct 16th, 2009, 3:00pm
 
Undecided Undecided Undecided Undecided UndecidedHello all,
I am now getting the exact same message after I tried setting every possible environment variable (user / system); I have now officially restarted my machine a billion times and am almost ready to bang my head against the keyboard if that would get this to work.
Please, pretty please, if you have any idea let me know so that I can get to some real designing
Any help will be appreciated.
Thanks beforehand
E
Page Index Toggle Pages: 1