| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 19 Jan 2006, at 23:36, Greg Guerin wrote:
Hi Greg thanks for the help for some reason my computer does need the -classpath variable to be set (sorry about the space in my first post), here is the terminal output if i don't set it: russ@russell-edwards-power-mac-g5:~/Documents/Year 3/JAVA/QTJ/QTVersionCheck> javac QTVersionCheck.java QTVersionCheck.java:1: package quicktime does not exist import quicktime.QTSession; ^ QTVersionCheck.java:2: package quicktime.util does not exist import quicktime.util.QTBuild; ^ QTVersionCheck.java:10: cannot resolve symbol symbol : variable QTSession location: class QTVersionCheck QTSession.open(); ^ QTVersionCheck.java:11: cannot resolve symbol symbol : variable QTSession location: class QTVersionCheck System.out.println ("QT Version: " + QTSession.getMajorVersion() + "." + QTSession.getMinorVersion()); ^ QTVersionCheck.java:11: cannot resolve symbol symbol : variable QTSession location: class QTVersionCheck System.out.println ("QT Version: " + QTSession.getMajorVersion() + "." + QTSession.getMinorVersion()); ^ QTVersionCheck.java:12: cannot resolve symbol symbol : variable QTBuild location: class QTVersionCheck System.out.println ("QTJ Version: " + QTBuild.getVersion() + "." + QTBuild.getSubVersion()); ^ QTVersionCheck.java:12: cannot resolve symbol symbol : variable QTBuild location: class QTVersionCheck System.out.println ("QTJ Version: " + QTBuild.getVersion() + "." + QTBuild.getSubVersion()); ^ QTVersionCheck.java:13: cannot resolve symbol symbol : variable QTSession location: class QTVersionCheck QTSession.close(); ^ 8 errors The code I am compiling is example one from Chris Adamson's book on QTJ where he says that -classpath needs to be set. Here is the source code, just in case i have made a mistake (it does compile and run if I set the -classpath in the terminal). import quicktime.QTSession; import quicktime.util.QTBuild; public class QTVersionCheck { public static void main (String[] args) { try { QTSession.open(); System.out.println ("QT Version: " + QTSession.getMajorVersion() + "." + QTSession.getMinorVersion()); System.out.println ("QTJ Version: " + QTBuild.getVersion() + "." + QTBuild.getSubVersion()); QTSession.close(); } catch (Exception e) { e.printStackTrace(); } } } I have used the "get info" box in the finder to test the permissions on all the folders and QTJava.zip and that says that I have read access on them all. The terminal results echo this, I don't have execute on QTJava.zip, but I do on all the folders. Russell |
_______________________________________________ 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
| References: | |
| >Re: importing QTJ into xCode (From: Greg Guerin <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.