Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: importing QTJ into xCode



Russell Edwards wrote:

>I know how to compile my program in the terminal using "javac - classpath
>/System/Library/Java/Extensions/QTJava.zip program name." But can't find a
>way of setting the java flags in xCode, so i get compiler errors saying
>that the imported files can't be found.
>
>Can someone please tell me how to fix this?

Try doing nothing at all.  You shouldn't even need to name that file in the
'javac -classpath ...' command-line.  (By the way, there must be no space
between '-' and 'classpath'.)

The QTJava.zip file in that location is already automatically present in
your classpath, because it's installed as a Java extension, and Java
extensions are automatically placed in your classpath.

If you can't import a simple QTJ class, such as:
  import quicktime.Errors;

in a simple Java source file, then I suspect a permissions problem on
either QTJava.zip itself or one of the dirs leading up to it.  You do need
read-permission on the file, and r+x permission on the dirs, or the Java
extension mechanism will quietly ignore the files in that location.

If you're not sure how to fix permissions problems, post the output of this
command:
  ls -la /System/Library/Java/Extensions/

so we can see if it really is the cause.  If the command fails, then paste
the error message.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.