Putting jmf.jar in archive
Hi, I have posted the question in the applet section, but got no answers...
I have an applet and it needs a jar to run, I don't want to have the clients to put/install the jar (FYI: it is JMF). So I need to use the the archive in the applet tag.
In particular, I have:
<APPLET CODE="RTPPlayerApplet.class" ARCHIVE="jmf.jar" WIDTH=320 HEIGHT=240>
// other video tags...
</APPLET>
with the class and the jar file in the correct directory.
If I put the jmf.jar in the /ext folder in java, it works, however, it doesn't when I remove it in the client machine.
I am new to java so any help would be appreciated!
Thanks a lot.
JMF is very tricky in applets in web pages.
Had you considered launching your applet
using web start?
Here is an example of using JMF with web start
http://www.javasaver.com/testjs/jmf/#test3
(Note that example is an application, but it is
much the same as an applet launched using
web start).
Similar Messages
-
What do I put in jar with my media player application to distribute?
Hi,
Can anyone point me in the right direction on how to package my media player application with the JMF library jars?
I am trying to package my MediaPlayer application with the JMF lib jar files so that the application can run without having to install the Java Media Framework. I have unjarred all the jar files and put my code with the library files, then rejarred the whole thing as an executable jar file with the Manifest pointing to the main class.
The application will launch but will throw an error that the format of the test.avi is not supported. When the Java Media Framework is installed, it will run. So somehow I am not setting up the jar file correctly.
thanks in advanceHello,
I think that maybe there's nothing wrong with your jar. If you don't install jmf, it will not find the codecs.
"Q: What is JMF Registry?
JMF 2.1.1 maintains a registry of available plugins, package prefixes and other settings in a file called jmf.properties. This is a binary file and should only be modified using the provided JMFRegistry application. This application is a part of the JMF 2.1.1 jmf.jar file and can be run as "java JMFRegistry". It requires that you have Swing-1.1 in your CLASSPATH (or you can use JDK 1.2 or later). "
I suppose JMF searchs for the codecs in the jmf.properties. If you don't want to install JMF, try to add only the jmf.properties to your classpath, or keep it in the same directory of your jar.
Hope it helps.
ANeto -
Where do we put common JARS in enterprise/web applications
Hello everyone,
Could someone please advice me as to a good/best way to handle this scenario:
1. an EAR contains a bunch of web applications, which have to use a common archive of classes, like an XML parser for instance. Where can i put this JAR? the brute way would be to put in the WEB-INF/lib of every web-app, but...?
Grateful for any suggestions,
deepakWell... depends I suppose on your container. We use IBM's Websphere... and we have several EAR's that contain a half dozen or so dependant JARs... we "import" them into the EAR, and then whoever must have access to these dependencies references the EAR's path in the "Java Buildpath" and "Module Dependencies"
The dependant JARs are just put into the root directory of the whatever EAR we happen to be dealing with.
The trick is in whatever resource (i.e. EJB) is making sure that its MANIFEST is aware of the location of the dependant JARs, which IBM's Websphere Application Developer Studio handles all that stuff for you.
./dave -
Can not run a project with modified jmf.jar
Hi,
my project use the modified jmf.jar in which all classes leading with path 'javax' were deleted
and all the classes of the package com.ms.security(which is in windowDirectory ex: C:\WINNT\java\Packages)
were included.
I download the source code file:jmf-2_1_1e-scsl-src.zip and unzip it,
I only use the directory 'javax'
which is located at the directory of share of src of the unzip Source code file.
I put the above directory 'javax' and AVTransmit2.java in src directory of my project.
The main in AVTransmit2.java was modified as:
public static void main(String[] args) {
Format fmt = null;
AVTransmit2 at = new AVTransmit2(new MediaLocator("file:/d:/back.avi"),"255.255.255.255","42050",fmt);
String result = at.start();
if (result != null) {
System.err.println("Error : " + result);
System.exit(0);
System.err.println("Start transmission for 60*20 seconds...");
try {
Thread.currentThread().sleep(60000 * 20);
catch (InterruptedException ie) {
at.stop();
System.err.println("...transmission ended.");
System.exit(0);
I get the error:
============================================================
IOException in readRegistry: java.io.InvalidClassException: javax.media.format.AudioFormat; local class incompatible: stream classdesc serialVersionUID = -9207570564778637264, local class serialVersionUID = -3901555183512636654
IOException in readRegistry: java.io.InvalidClassException: javax.media.format.AudioFormat; local class incompatible: stream classdesc serialVersionUID = -9207570564778637264, local class serialVersionUID = -3901555183512636654
Error : Couldn't create processor
No plugins found
============================================================
somebody can show me what is wrong ?
ThanksWhat I think is happening is that the new jar files which you are using are interfearing with the stream. So basically one part of your program is looking for the standared class and your jar files are giving it a different version. Whats complicating this problem is that the classes you are refrencing implement Serializable, so unless you are able to trick the program into thinking that the old .jar files and the new .jar files have the same serialVersionUID your going to have to use the old jars.
-
Signed applet, jmf.jar provided, but no connection
hi there!
i'm posting this again in order for you to earn duke-bucks.
i have a similar problem. i wrote an applet that connects to a video-streamserver an requests a live-stream. the applet sends some udp-packets to the server, which retreives the client's ip from the
packet and sends it back to the client ( i did this to avoid signing the applet, since otherwise the client
would have to do a dns-lookup and therefore be signed). the client gets back his public ip (i don't have the 127.0.0.1-problem) , however, i get an
InvalidSessionAddressException :
Local Data Address Does not belong to any of the local interfaces
it seems, the client cannot recognize it's own public ip.
so i thought, signing the applet would do, but it doesn't.
I get the same InvalidSessionAddressException.
now, this only happens on hosts on which jmf is NOT installed.
Installing the jmf solves the problem. but i don't want people who visit my page having to install
jmf in order to watch my livestream. i tried including the whole jmf.jar (also tried, customizing it),
but no success.
i read the posts on the issue: running jmf-applets on non-jmf-systems, but there seems to be a
controversy on wether that is possible or not. some say, jmf must be installed, some say, just include jmf.jar or customized jmf.jar.
what else could i try? i have the clients public ip and i have the applet signed. so, there shouldn't be
any restrictions anymore.
i have no ClassDefNotFoundExceptions, so i suppose, including jmf.jar works.
what else gets changed when i install jmf? there must be some restrictions that keep the vm from
determining the hosts public ip and which will be removed by the installation of jmf.
anyone had similar problems? and, perhaps, a solution to this?
thanks in advance,
honfrek
b.t.w. you can earn some duke-bucks too !hi!
i found a very elaborate solution here:
http://www.mutong.com/fischer/java/usbcam/VideoToAppletWithNoSupport.zip
this link has been posted before,
http://onesearch.sun.com/ClickThru?qt=servlets&url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jsp%3Fforum%3D28%26thread%3D515345&pathInfo=%2Fsearch%2Fdevelopers%2Findex.jsp&hitNum=45&col=devforums
this solution uses jmf only on server side for capturing, then converts the capture-stream into images, splits
the images into smaller regions and evaluates the differences of these regions to the regions of the previous image. if the difference hits a certain threshold, these regions are transmitted to the applet. but the transmission is done via tcp, which slows things down.
the splitting -code is hard for me to understand, since i'm new to java. -
Appropritate forum to put queries regarding data archiving
Hi All,
Which one is the appropriate forum to put queries regarding data archiving?
Thanks in advance.
VithalprasadYes you can use this forum, also there is one forum for Data Transfers.
Regards,
Altaf Shaikh -
Where put the JAR File jakarta-regexp-1.3.jar ?
I'download jakarta-regexp-1.3.jar file from jakarta-apach site for validate a email adress..
But i did not find any doc to telle me where put this file..
I put it in the jre subdirectory of my sdk directory but the javac compiler
do not recognize this part of my code import org.apache.regexp.* ..I try the lib directory of the tomcat and it was same..
Where should i put this jar file ..
By the way i 'm coding on linux for jakarta-tomcat server..
Could some body help me ?DON'T CROSS POST:
http://forum.java.sun.com/thread.jsp?thread=461653&foru
=33&message=2116135
http://forum.java.sun.com/thread.jsp?thread=461654&foru
=45&message=2115945
http://forum.java.sun.com/thread.jsp?thread=461653&foru
=33&message=2115943
http://forum.java.sun.com/thread.jsp?thread=461652&foru
=1&message=2115941Ooops, didn't see it, ehmmmz
I re-draw my answer, first learn some posting etiquette, then people might help. -
Javax.media.jai not in jmf.jar
Ive download JMF 2.1.1e from
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html
and installed it. However it does not seem to contain the javax.media.jai or com.sun.media.jai packages as per the documentation :-
http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/index.html
I checked the contains of the jmf.tar and and the other jars that came with the download
eg the following can not be found
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
So have I done something wrong, is this code no long in the jmf.jar, or is the documentation wrong ?Thanks, that got me the jai_imageio.jar , however this jar does not contain the any of the following packages
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
are they in another jar that I have not included, or do I need to get them from somewhere else? -
Missing jmf.jar - don't find any dl of it
Hi,
i'm missing the jmf.jar file, can anyone tell me where i can download it?
the ones with javax.media ...
Thanks in advance!
Edited by: Kolarius on Feb 11, 2009 9:47 AMActually...the exact quote would be...
[http://forums.sun.com/thread.jspa?messageID=10604879#10604879]
Seriously, learn to use a search engine.
http://www.letmegooglethatforyou.com/?q=register+capture+devices+with+JMF&l=1 -
I'm trying to create a slimmed down version of jmf.jar for use with SimplePlayerApplet. The goal is to make the applet play without requiring the user to install the JMF. The smallest JAR file I've made using JMFCustomizer is 700KB.
Has anyone had better success or know how the file size can be improved?
RossHello.
I have the same problem and wonder can this have licensing problems ? I just want to use voice section. A simple thing.
Can you please say what is the result of your work?
Thanks. -
where can i get JMF jar files to download
download the xletview-0.3.6 zip(from google search) and extract that zip file with in that go to JMF2.1.1-->lib-->jmf.jar
-
Applet won't run if put in JAR file
Hello, I've searched a lot and couldn't find an answer to my problem -
I want to put my applet into a jar file. and run it, of course.
I have a jar file that contains "b.class", "temp.class" both of them in directory "package_name", which is their package's name in eclipse. (this jar I obtained by using export from eclipse).
and - I have my index.html file -
<APPLET
CODE="b.class"
ARCHIVE "jar_file.jar"
WIDTH="100%" HEIGHT="90"
</APPLET>
both the index.html and the jar file in the same directory.
and the applet wont run!
what am I doing wrong? somehow I think that the problem is because the classes reside in another directory in the jar file,
but I already tried everything - with no success :(
Kogan.OK the problem solved -here is highlighted what I was missing -
<APPLET
CODE=package_name.b.class ( I was missing the "package_name")
codebase = "."
ARCHIVE "jar_file.jar"
WIDTH="100%" HEIGHT="90"
</APPLET>
Edited by: Kogan on Nov 3, 2008 6:51 AM
Edited by: Kogan on Nov 3, 2008 6:52 AM -
Can Netbeans put a jar file In a jar file?
I just went through the process of getting Eclipse to create a jar file that would execute from a command prompt using a plugin called fatjar :
http://fjep.sourceforge.net/
Details from other thread :http://forum.java.sun.com/thread.jspa?threadID=5219638&tstart=0
I really would like to use netbeans but i now have the exact same problem trying to make a jar file in netbeans 5.5.1
I am using a package from icaste.com It has a
.dll file to put in the windows directory
JCommSerial_3_0.jar file that contains all the classes
I can compile and run a file in the IDE and it works fine
The Jar file does not contain the classes so i get errors when running from command line.
Here is the layout of my screen and result of run command in IDE
http://www.acousticlights.com/netbeans.png
What do I need to try?georgemc wrote:
Why is everyone so obsessed with doing this? The gains are minimal and the problems numerousBecause we are new and don't understand how the java VM actually runs code and the error messages sent by the java machine are cryptic.
My first attempt at using an external jar in a java program lead me to believe that all of the code for a java program would be in a jar file including external jar files, after all the JDK standard library has tons of jars in it so I assumed the external jar file would be linked (as most other programming compiler/linkers I have worked with in my top down programming life).
I find out the answer is so simple that the external jar file could not be found by the VM running my jar file. Like I said, if the VM would have just gave me an error that it could not find a file on a specific directory i never would have perused the idea of jar in a jar (fatjar plugin for Eclipse for example)
Really this is like getting into a race car and not knowing at what RPM to shift gears, sure you can press the pedal and make it go but if you don't understand how it works under the hood you are going to blow the engine if you keep it in first gear.
I have read many posts on these errors, the reason is the error message is just not very descriptive of the original problem. If I try and open a database called xyz.dbf that has one field defined as lastname, in C for example, I would not give the error message "Lastname could not be found) when indeed the lastname could not be found but the reason it could not be found was because the database xyz.dbf could not be found. Further , adding to the error message that the system is looking for xyz.dbf on drive X- subdirectory -mydatabases would complete the error message and allow the user to fix the error. Just what is a non java programmer that is using my java program suppose to do with an Ecception Error in (main) bla bla bla... I know now I need to check for library files myself within my own java programs and give a better error message to the user before the java VM sends out it's cryptic message.
Edited by: metron9 on Sep 25, 2007 11:00 AM -
NOT WORKING: Putting a jar file requiring native library in bootclasspath
Hi,
I put my own jar file into the bootclasspath like this:
java -Xbootclasspath/p:myboot.jar TestClass
Some classes in the jar require a native library. For JVM 1.3 on Solaris, I put the native library in $JAVA_HOME/jre/lib/sparc and everything works just fine.
However, when I try the same thing on JVM1.4, I got the following error when my class containing the native methods is called:
Failed to load the native library: myboot_native
java.lang.UnsatisfiedLinkError: no myboot_native in java.library.path
I tried to put that native library in several different directories in jre/lib but still had no luck.
Is there anybody know the solution? Does JVM1.4 allow me to put a custom jar file that requires a native library in the bootclasspath?
Regards,
EmanWell is your file in a directory included in the java.library.path environement variable. I use java on windows but I have to add the directory where my native library is to the path variable (not classpath) in order to avoid the error you get.
-
Open new jframe doesn't work when put into jar
I cant get my program to open up a new frame. When i run my program from netbeans it works fine but when i put it into an executable jar it doesn't work. I have three frames, Main, About and SelectLanguage. From Main i can create a new instance of this from this window but it wont open either of the other two. This is the code i use for all three. Please help.
new About().show();please help.
clarkiewell, if that's the code you use for all three, and
they are different classes, maybe you should call the
right class name?
The code you posted isn't helpful, and I can't begin
to guess what you're doing wrong.nah, i use
new Main().show();
new About().show();
new SelectLanguage().show();also, i get this error:
java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
at About.initComponents(About.java:29)
at About.<init>(About.java:15)
at Main.aboutMenuItemActionPerformed(Main.java:409)
at Main.access$2200(Main.java:19)
at Main$22.actionPerformed(Main.java:344)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
d(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Maybe you are looking for
-
How do I stop my panels from being visible while in InDesign CS5's presentation mode?
Hey there, I have a quick question... So when I'm not working with two monitors I sporadically have this problem where when I enter InDesign CS5's (on a Mac) presentation mode (shift W) all of my panels (color, pages, swatches, pathfinder etc) are vi
-
Trying to open a streamed PDF in an IFRAME in Internet Explorer 9 on my Win7 64bit machine. This results in the following dialog: There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (4:4) The PDF is streamed (no
-
What is the ethernet port for on airport express?
Can I use the ethernet port to connect an asset (in this case a Sony Blu Ray player) to my wireless network? I can see my AE on the wireless network and I have a solid green light on the AE. I have connected the Blu Ray player by ethernet to the AE
-
My client is having the program we created for them open up in a new browser window when they click a button on the client's home page. How can I have the shockwave program close the window so the user ends up back at the client's home page?
-
Master Installation for ERP 6.0 SP3 does not has central instance
Hi, I have a problem to start ERP 6.0 installation. I canu2019t find right version of Installation Master disk. I attempted to use following object: Installations and Upgrades -> SAP Application Components -> SAP ERP -> SAP ERP 6.0 -> SAP NETWEAVER 7