注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

淡忘邻人

二十七,始发愤

 
 
 

日志

 
 
 
 

关于linux下安装JMF及mp3插件的总结  

2010-11-30 13:51:58|  分类: JAVA |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
关于linux下安装JMF及mp3插件的总结
2009-06-03 08:38
今天终于在linux下把JMF安装成功,我用的zip包安装的,所以我只说我用zip包的安装过程,如果你有更好的安装方式,请给我留言,谢谢。
1。首先下载jmf和mp3插件,在sun公司网站就有,这个我就不说了,不知道的google一下。
2。解压zip包,将里面lib里面的东西拷贝到你的jre下的lib/ext文件夹下,如果你不确定到底你的现在用的jre是哪个版本,那就拷贝到所有 版本的/lib/ext目录下,并将你的mp3插件也拷贝到这个目录下,然后运行解压后的bin目录下的jmfregistry可执行文件,然后点 plugin选项卡中的codec选项卡,在输入框中输入com.sun.media.codec.audio.mp3.JavaDecoder,单击 add,最后别忘了点击提交(commit)。这步应该是往lib目录下的jmf.properties文件写一些配置信息,这个文件是一个二进制文件,不能打开编辑。
3。设置环境变量。将你的解压后的目录(里面包含有lib,doc,bin的那个)加入JMFHOME环境变量中,将你的CLASSPATH环境变量增加 三项:${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib:${JMFHOME}/lib/sound.jar。将你的 LD_LIBRARY_PATH环境变量增加一项${JMFHOME}/lib。
到此为止设置结束,你的JMF应该能用了。

export JMFHOME=/home/someuser/JMF-2.1.1e
export CLASSPATH=$JMFHOME/lib/jmf.jar:.:$CLASSPATH
export LD_LIBRARY_PATH=$JMFHOME/lib:$LD_LIBRARY_PATH

Java Client


 
 

Setting Up JMF


Setting Up JMF

  1. Check the hardware and software requirements.
  2. Extract the JMF install archive to a directory, such as C:\JMF\ or /home/someuser/. A JMF2.1.1 subdirectory will be created.
  3. Set your CLASSPATH path to reference the JMF directory.
  4. Examples:

    On Solaris:
    setenv JMFHOME /home/someuser/JMF2.1.1
    setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    On AIX:
    setenv JMFHOME /usr/JMF2.1.1
    setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    On Windows:
    set JMFHOME=C:\JMF2.1.1
    set CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%

You can use the JMF Diagnostics applet to verify that JMF is set up properly on your system.

Running JMF

You can run the samples using the JMStudio sample application or from a browser such as HotJava or Netscape Communicator. For more information, see the JMStudio User's Guide.

Running the RTP applets and applications

You can only play unicast and broadcast streams using RTPPlayerApplet. To play a multicast stream or to transmit, you need to use the JMStudio application. See the RTP release notes for more information.

Running JMF with Netscape Communicator

JMF can be used with Netscape Communicator 4.06 or later, or with Netscape 4.03-4.05 with the JDK 1.1 patch. Setting your paths as described above should enable JMF to run with Communicator.

If a particular type of file doesn't work with Netscape, first check if the MIME type for this type of file is set correctly. By default, Netscape doesn't provide the settings for RMF ( audio/rmf) and GSM ( audio/x-gsm) files. In Communicator, you can add and modify the MIME types from the Edit->Preferences menu, in Navigator/Applications category.

Running JMFCustomizer

JMFCustomizer requires Java 2 or JDK 1.1.* with the Swing 1.1 API technology to run. You'll need to add customizer.jar to your CLASSPATH path. (with JDK 1.1.*, you will also need to add Swing 1.1 classes to your CLASSPATH as well). For example:

On Solaris:
setenv JMFHOME /home/someuser/JMF2.1.1
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}
On AIX:
setenv JMFHOME /usr/JMF2.1.1
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}
On Windows:
set JMFHOME=C:\JMF2.1.1
set CLASSPATH=%JMFHOME%\lib\jmf.jar;%JMFHOME%\lib\customizer.jar;.;%CLASSPATH%

To run, invoke

java JMFCustomizer
  评论这张
 
阅读(1342)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018