File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes jmf on web start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "jmf on web start" Watch "jmf on web start" New topic

jmf on web start

alper yesilyurt

Joined: Jan 08, 2008
Posts: 1
Hi friends,

Currently I am dealing with a project which includes distribution of JMF(java media framework) over the web. For this purpose, web start seems a nice approach.

Moreover, JMF requires some native libraries which should be deployed from web start. I had problems at this point and strongly need help. I could not achieve deploying these libraries from web start hence running JMF from web start.

I had no problem at running JMF from local JRE in standard java desktop applications. This means that required dlls can be successfully loaded and linked from standard applications but not from web start applications.

I have read lots of forums and web sites and did what is said (at least I think I did), but could not solve the problem. Most probably, I need to do some simple configurations but at this point I totally don�t know what to do. Below, I want to mention shortly what I did to deploy JMF over the web start and the exceptions and error I faced with. I will be very happy if you find something wrong in these steps and tell me what to do:

1.I jared all dlls related with the JMF : To do that, from Eclipse ee, I selected about 15 jmf dlls, right clicked them, chose �export� as jar, and obtained a jar from these dlls.

2.Then, I signed them using keytool and jarsigner tools of java to give the project unrestricted access for media processing.

3.Then, I added this jar to the webcontent folder of the project with other jars and files.

4.After that, I added following tag to the jnlp file of the project: <nativelib href=""/>

5.I also added required System.loadLibrary() methods to my code in the order which gives no problem. (In the forums I read previously, these codes are required to load native dlls to the environment in which project will be run.)

Note: I deployed project on Apache Tomcat Server.

Below, I give my complete jnlp file;

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0" codebase="" href="">

<vendor>Techneon ltd.</vendor>
<icon href="" kind="default"/>
<icon href="" kind="splash"/>


<resources OS = "Windows">
<j2se version="1.6.0_03" href=""/>
<jar href=""/>
<nativelib href=""/>


<application-desc main-class="JmfprojectStarter"/>


And below is the cronical exception I faced with:

at Jmfproject.<init>(
at JmfprojectStarter.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at Source)
at Source)
I agree. Here's the link:
subject: jmf on web start
It's not a secret anymore!