Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

quicktime for java

Thread view: 
Asif Khan - 01 Nov 2005 23:10 GMT
Exception in thread "main" java.lang.UnsatisfiedLinkError: no QTJava in
java.lib
rary.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$1.run(JDirectLinker.java:266)
       at java.security.AccessController.doPrivileged(Native Method)
       at
quicktime.jdirect.JDirectLinker$1$PrivelegedAction.establish(JDirectL
inker.java:264)
       at quicktime.jdirect.JDirectLinker.<clinit>(JDirectLinker.java:272)
       at quicktime.jdirect.QTNative.loadQT(QTNative.java:11)
       at quicktime.jdirect.QuickTimeLib.<clinit>(QuickTimeLib.java:17)
       at quicktime.QTSession.<clinit>(QTSession.java:106)
       at Zoo1.main(Zoo1.java:89)

I have this Java program using Quick Time Movie APIs of Java. It compiles
fine, but upon execution it gives the above runtime error.

I have Java 1.3 installed and have the classpath set right. Can you advise
what the problem could be?

In the program, I have imported the following:

import java.io.IOException;
import java.io.*;
import quicktime.QTSession;
import quicktime.QTException;
import quicktime.app.QTFactory;
import quicktime.io.OpenMovieFile;
import quicktime.std.movies.Movie;
import quicktime.*;
import quicktime.qd.*;
import quicktime.std.*;
import quicktime.io.QTFile;
import quicktime.std.StdQTConstants;
import quicktime.util.QTBuild;
import quicktime.app.display.QTCanvas;
SPG - 17 Nov 2005 13:08 GMT
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no QTJava in
> java.lib
[quoted text clipped - 35 lines]
> import quicktime.util.QTBuild;
> import quicktime.app.display.QTCanvas;

Hi,

The QT package is trying to load a dll called "QTJava", which must be on
your java.library.path.
Check your path settings by doing
System.out.println(System.getProperty("java.library.path")); and see where
java is looking to find the dlls.

Once you know where to look, you can find the dll and place it in one of
those locations.

Steve


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.