开发者

Getting javax.media.NoProcessorException

开发者 https://www.devze.com 2023-02-24 12:32 出处:网络
Following is the code from my audio, video recording project. The audio file is getting created but while creating video file \"testVideo.mov\" I am getting \"javax.media.NoProcessorException: Cannot

Following is the code from my audio, video recording project. The audio file is getting created but while creating video file "testVideo.mov" I am getting "javax.media.NoProcessorException: Cannot find a Processor" exception.

ImageDataSource ids = new ImageDataSource(width, height, frameRate);
    Processor p;

    try 
    {
        UFBScrRecLogs.write("- create processor for the image datasource ...");
        p = Manager.createProcessor(ids);
    } catch(Exception e){e.printStackTrace();}

when I am executing this code in eclipse it is working fine but when I make windows installer of the application and ran this application after installing it then I am getting above error.

I am not getting w开发者_StackOverflowhy it is running in eclipse environment but not as windows application.


Might be a classpath problem. Maybe the windows environment does not provide a quicktime processor. Check the eclipse build path as well as the classpath on the windows machine for any differences in java version (different standard libs) and other libraries.

Plus check the classpath settings of your application.


I found the solution. Actually it was jmf jar problem. I was using a old jmf jar now I used latest jmf jar and exception is not coming.

0

精彩评论

暂无评论...
验证码 换一张
取 消