刚安装的JMF,使用的时候出了点错误,求解
刚刚下载安装的JMF,jmf-2_1_1e-windows-i586.exe这是文件名
点击安装,安装路径为C:\Program Files (x86)\JMF2.1.1e,
安装好后设置了环境变量CLASSPATH:C:\Program Files (x86)\JMF2.1.1e\lib;
PATH:C:\Program Files (x86)\JMF2.1.1e\bin;
然后点击JMStudio,打开属性,单击Capture Devices,
点击Detect Capture Devices 找到了驱动。然后打开ecplise
调用包的语句:
==============================================================================
import javax.media.CannotRealizeException;
import javax.media.CaptureDeviceInfo;
import javax.media.CaptureDeviceManager;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.NoPlayerException;
import javax.media.Player;
===============================================================================
全部出错,出错显示为:
Access restriction: The type CannotRealizeException is not accessible due to restriction on required library C:
\Program Files (x86)\Java\jre7\lib\ext\jmf.jar
我认为是和安装JMF位置有关系,也许我安装的时候出了什么问题,所以把安装过程写出来了
但是终究不了解到底是哪里错了...求解...
Java
JMF
------解决方案--------------------路径问题,jre安装到一个没有空格的目录下Program Files中间有个空格,虽然是系统的,可能也会报错