Mailing Lists: Apple Mailing Lists

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

can't find QTFile



Hello. Sorry for the simple-mindedness of this question but I'm a bit of a
novice. The following code compiles fine:

...............
try
{

QTFile imageFile = new QTFile(
QTFactory.findAbsolutePath("images/image1.jpg"));
GraphicsImporterDrawer mapDrawer = new GraphicsImporterDrawer(
imageFile );
myQTCanvas.setClient( mapDrawer, true );
}
catch ( IOException e )
{
e.printStackTrace();
}
catch ( QTException e )
{
e.printStackTrace();
}
...............

but when I run the application I get the following error:

..............
java.io.FileNotFoundException: images/image1.jpg
at quicktime.app.QTFactory.findAbsolutePath(QTFactory.java:198)
at textMod.<init>(textMod.java:50)
at textMod.main(textMod.java:86)
at java.lang.reflect.Method.invoke(Native Method)
at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
at
com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)
..............

I have tried this every way I can think of and I always get the same error.
Any help/suggestions much appreciated. I'm using mac os 10.1, quicktime 6
and my IDE is Project Builder.

Brad Wright
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.



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.