Javax.media Where download it?

Hi all.
I've downloaded and create the jmf.jar from jmf-2_1_1e-scsl-bin.
Now I try to compile this:
[cut]
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import javax.media.*;
import javax.media.control.FrameGrabbingControl;
import javax.media.format.VideoFormat;
import javax.media.util.BufferToImage;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
[cut]
but I've this errors:
[cut]
Scan.java [15:1] package javax.media does not exist
import javax.media.*;
^
Scan.java [16:1] package javax.media.control does not exist
import javax.media.control.FrameGrabbingControl;
^
Scan.java [17:1] package javax.media.format does not exist
import javax.media.format.VideoFormat;
^
Scan.java [18:1] package javax.media.util does not exist
import javax.media.util.BufferToImage;
^
4 errors
Errors compiling Scan.
[cut]
So, where I've to download the javax.media pakage?
thank you.
jmaxosft
[cut]

Try:
http://java.sun.com/products/java-media/jmf/2.1.1/download.html
Yous should choose cross-platform java and in zip file you have
in directory :src\share\ packet source for javax, copy it to your
project directory and that's it...
I hope it helps...

Similar Messages

  • Where to download JAI and javax.media libraries

    i want to download java advanced images and javax.media
    help please

    you didn't search quite hard!!!!! go on java.sun.com in the downloads section

  • Downloading javax.media.jai.JAI

    hi,
    helo im new to this forum. Can anybody plz help me in downloading the package "javax.media.jai.JAI". Please let me know where can i download the above package. This is very important to me plz help me.

    Hey,
    Search google man.....Type JAI software for download...u find setup file.......
    Best Of Luck!
    Rgds,

  • Where can I get replacement media or download for final cut 3?

    where can I get replacement media or download for final cut 3?

    There is no download for any install of Final Cut Pro before version X.
    For physical media, try contacting Apple Care support. Otherwise, ebay or alternative resellers is your only recourse for acquiring install discs.
    x
    edit: If you want Final Cut Pro 3, you'll need a PowerPC computer that can run OS9. If you mean Final Cut Studio 3 (aka FCS 2009) you'll have better luck finding something out there that will run on contemporary machinery.

  • I have a LR4 licence, no installation media. where to download it, please?

    I have a LR4 licence, no installation media. where to download it, please?

    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5599
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5600

  • Where are the javax.media.*  ?

    hello,
    i want download the packages javax.media.* , but I didn't found its!
    Please give me a download's url
    Big Thx

    JMF: http://java.sun.com/products/java-media/jmf/index.jsp

  • Where is the javax.media.j3d

    Hi I install Java3d JDK 1.4.2 but i have only one jar file with com.sun... utility java 3d package what I must do to have package javax.media.j3d?And do I can use java 3d to create games?

    Hi I install Java3d JDK 1.4.2 but i have only one jar
    file with com.sun... utility java 3d package what I
    must do to have package javax.media.j3d?For me it was straight forward process of installing the complete J3D. Extract the files to YOUR_JDK_PATH/jre/lib/ext and/or tell java via the CLASSPATH variable to use the jar's.
    And do I can use java 3d to create games?Yes...if you put some brain and effort in it. There are several projects in the web, which care about game programming using J3D. Try to google for them.
    Hope this helps.
    Kai

  • Package javax.media.jai does not exists

    I am geting this error
    'package javax.media.jai does not exists'
    when I try to compile my Java Application in Netbeans.
    i have upgraded from JDK 1.5_06 to JDK 1.6_27 and no other code changes
    Earlier I was using jai_codec.jar and jai.core.jar with JDK 1.5_06.
    Can anyone help me with this?Where can I download the latest jai_codec and jai_core.jar files
    that are compatible with JDK 1.6_27 ?
    Thanks

    885522 wrote:
    Earlier I was using jai_codec.jar and jai.core.jar with JDK 1.5_06.So keep using them.

  • Javax.media.NoPlayerException: Cannot find a Player

    Hi all,
    I've installed JMF,
    and tried the sample 'SimplePlayerApplet.java' from Sun:
    http://java.sun.com/products/java-media/jmf/2.1.1/samples/
    (see the code below)
    However, everytime I run the applet,
    I get the message:
    "javax.media.NoPlayerException: Cannot find a Player"
    Can anybody help?
    -------code from sun website-----------------
    * @(#)SimplePlayerApplet.java     1.2 01/03/13
    * Copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.String;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import java.util.Properties;
    import javax.media.*;
    //import com.sun.media.util.JMFSecurity;
    * This is a Java Applet that demonstrates how to create a simple
    * media player with a media event listener. It will play the
    * media clip right away and continuously loop.
    * <!-- Sample HTML
    * <applet code=SimplePlayerApplet width=320 height=300>
    * <param name=file value="sun.avi">
    * </applet>
    * -->
    public class SimplePlayerApplet extends Applet implements ControllerListener {
    // media Player
    Player player = null;
    // component in which video is playing
    Component visualComponent = null;
    // controls gain, position, start, stop
    Component controlComponent = null;
    // displays progress during download
    Component progressBar = null;
    boolean firstTime = true;
    long CachingSize = 0L;
    Panel panel = null;
    int controlPanelHeight = 0;
    int videoWidth = 0;
    int videoHeight = 0;
    * Read the applet file parameter and create the media
    * player.
    public void init() {
    //$ System.out.println("Applet.init() is called");
    setLayout(null);
    setBackground(Color.white);
    panel = new Panel();
    panel.setLayout( null );
    add(panel);
    panel.setBounds(0, 0, 320, 240);
    // input file name from html param
    String mediaFile = null;
    // URL for our media file
    MediaLocator mrl = null;
    URL url = null;
    // Get the media filename info.
    // The applet tag should contain the path to the
    // source media file, relative to the html page.
    if ((mediaFile = getParameter("FILE")) == null)
    Fatal("Invalid media file parameter");
    try {
    url = new URL(getDocumentBase(), mediaFile);
    mediaFile = url.toExternalForm();
    } catch (MalformedURLException mue) {
    try {
    // Create a media locator from the file name
    if ((mrl = new MediaLocator(mediaFile)) == null)
    Fatal("Can't build URL for " + mediaFile);
    try {
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.writePropArgs);
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.readPropArgs);
    JMFSecurity.enablePrivilege.invoke(JMFSecurity.privilegeManager,
    JMFSecurity.connectArgs);
    } catch (Exception e) {}
    // Create an instance of a player for this media
    try {
    player = Manager.createPlayer(mrl);
    } catch (NoPlayerException e) {
    System.out.println(e);
    Fatal("Could not create player for " + mrl);
    // Add ourselves as a listener for a player's events
    player.addControllerListener(this);
    } catch (MalformedURLException e) {
    Fatal("Invalid media file URL!");
    } catch (IOException e) {
    Fatal("IO exception creating player for " + mrl);
    // This applet assumes that its start() calls
    // player.start(). This causes the player to become
    // realized. Once realized, the applet will get
    // the visual and control panel components and add
    // them to the Applet. These components are not added
    // during init() because they are long operations that
    // would make us appear unresposive to the user.
    * Start media file playback. This function is called the
    * first time that the Applet runs and every
    * time the user re-enters the page.
    public void start() {
    //$ System.out.println("Applet.start() is called");
    // Call start() to prefetch and start the player.
    if (player != null)
    player.start();
    * Stop media file playback and release resource before
    * leaving the page.
    public void stop() {
    //$ System.out.println("Applet.stop() is called");
    if (player != null) {
    player.stop();
    player.deallocate();
    public void destroy() {
    //$ System.out.println("Applet.destroy() is called");
    player.close();
    * This controllerUpdate function must be defined in order to
    * implement a ControllerListener interface. This
    * function will be called whenever there is a media event
    public synchronized void controllerUpdate(ControllerEvent event) {
    // If we're getting messages from a dead player,
    // just leave
    if (player == null)
    return;
    // When the player is Realized, get the visual
    // and control components and add them to the Applet
    if (event instanceof RealizeCompleteEvent) {
    if (progressBar != null) {
    panel.remove(progressBar);
    progressBar = null;
    int width = 320;
    int height = 0;
    if (controlComponent == null)
    if (( controlComponent =
    player.getControlPanelComponent()) != null) {
    controlPanelHeight = controlComponent.getPreferredSize().height;
    panel.add(controlComponent);
    height += controlPanelHeight;
    if (visualComponent == null)
    if (( visualComponent =
    player.getVisualComponent())!= null) {
    panel.add(visualComponent);
    Dimension videoSize = visualComponent.getPreferredSize();
    videoWidth = videoSize.width;
    videoHeight = videoSize.height;
    width = videoWidth;
    height += videoHeight;
    visualComponent.setBounds(0, 0, videoWidth, videoHeight);
    panel.setBounds(0, 0, width, height);
    if (controlComponent != null) {
    controlComponent.setBounds(0, videoHeight,
    width, controlPanelHeight);
    controlComponent.invalidate();
    } else if (event instanceof CachingControlEvent) {
    if (player.getState() > Controller.Realizing)
    return;
    // Put a progress bar up when downloading starts,
    // take it down when downloading ends.
    CachingControlEvent e = (CachingControlEvent) event;
    CachingControl cc = e.getCachingControl();
    // Add the bar if not already there ...
    if (progressBar == null) {
    if ((progressBar = cc.getControlComponent()) != null) {
    panel.add(progressBar);
    panel.setSize(progressBar.getPreferredSize());
    validate();
    } else if (event instanceof EndOfMediaEvent) {
    // We've reached the end of the media; rewind and
    // start over
    player.setMediaTime(new Time(0));
    player.start();
    } else if (event instanceof ControllerErrorEvent) {
    // Tell TypicalPlayerApplet.start() to call it a day
    player = null;
    Fatal(((ControllerErrorEvent)event).getMessage());
    } else if (event instanceof ControllerClosedEvent) {
    panel.removeAll();
    void Fatal (String s) {
    // Applications will make various choices about what
    // to do here. We print a message
    System.err.println("FATAL ERROR: " + s);
    throw new Error(s); // Invoke the uncaught exception
    // handler System.exit() is another
    // choice.
    }

    First and most obvious question is, what are you trying to have the applet view? The NoPlayerException generally means that JMF couldn't figure out how to display what you're telling it to display, be that an unknown codec, or unknown media type.

  • Problem to find the javax.media.jai package

    hi everyone!! it's not the first time I ask this question, but i have troubles to find javax.media.jai..
    I've downloaded the jai 1.1 and everything is fine... However, I have to use classes from the javax.media.jai... I made the import, and it doesn't find it, as if it doesn't exist... Someone tells me that the jai contained it, so why doesn't it find it??
    i'm using a java version 1.2.. do you think that is the problem?
    thanks a lot, and sorry for my bad english!!
    Anne.

    thanks a lot!!! it helps me but doesn't resolve my problem!! ;o)
    you may be right,, it's a classpath problem. well i work under unix, so i have to give my classpath by the command setenv CLASSPATH ...
    i didn't find the jai_core.jar in my JAI 1.1, I have only the BugFixes.jar...
    I tried to download the latest version of JAI, and unfortunately i have a new problem with the .tar, i don't manage to "open" it... the command
    tar xvf [archieve file] gives me some errors!!
    so I don't know what I'm gonna do.... I think I'm going to ask someone to send me the package, or the specific classes I need, it would be more easier!!
    Thanks
    Anne.

  • "package javax.media does not exist" error message. Help!

    May be this is a rookie problem, but I can't solve it by myself.
    I'm using JBuider X to develop a GUI, and need to capture an image, from a web cam or so, and to save it in DB.
    The problem is: I found some source codes wich are supposed to do this... but they references (imports) an javax.media class... and the JBuilder says that this class doesn't exists.
    Can anyone help me?
    Where can I get the class, and how I inform to JBuider where it's located?
    Thanks in advance.
    Ernesto Becker

    Project tab, "Build", Libraries -> import the JMF libraries. Something like that.

  • Javax.media.jai in applets

    I would like to use some features of javax.media.jai in developing some applets, but from what I read I get the impression that most average users' JRE would not have this installed. Is this correct?

    Sidereal wrote:
    1. Would this greatly increase load time?That depends on the size of the Jar's, and the speed of the server and client connections (or whatever connection between them is the slowest).
    If you deploy the applet in a 1.6.0_10+ JRE, it can be deployed using web start (while still embedded in the web page). Deploying using web start can offer a number of advantages, such as..
    - Better control of class caching, and even 'lazy' deployment of classes and resources. This latter ability ensures the applet appears on-screen quickly, while downloading other components as needed.
    - Sand-boxed access to the local file-system.
    - The ability to offer different security levels for different application components. (E.G. the JAI Jar's might already be digitally signed with a valid certificate, simplifying matters.)
    Sidereal wrote:
    2. Can you point me to any good tutorials on setting this up?As an aside, it would help if you had not ignored my earlier question. It was not merely curiosity. If you had answered my question, I might have been able to determine some of the constraints of this deployment. As it is, I am not about to enter a lengthy discussion (or lots of links) covering all the possibilities, so how about you narrow it down by answering my earlier question? (<- as opposed to that one, which was purely rhetorical.)
    And please be as specific as possible. What I am looking for is like the 'feature list' you might see on the box of commercial software. The things that are supposed to make the person think "I +need+ that!".

  • Import javax.media?

    i have been trying to play a video from a application and i get a bunch of compile errors one is "package javax.media does not exist" because of this im getting 14 other errors, can anyone help me? i just downloaded and installed Java SDK 1.4.2 and i have jdk1.5.0_05 and jre1.5.0_05. so i should be up to date

    Well changing the classpath to the correct one still didn't work.... but i still found the solution.
    The Developer Environment that i use is JCreator and it seems it ignores the classpath and has its own settings for the class path... changing this also didn't work.
    What worked was copying the Jar files from the JMF2.1.1e installed location into the path of the original classpath

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/

    Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/
    After I got this exception, I tried the following solution:
    I downloaded the Windows package for JAI from this link:
    https://jai-imageio.dev.java.net/binary-builds.html
    Then I went to the Projects window > Libraries (Netbeans IDE) and browsed to the two jar files in that download. The two jar files are now showing under the Libraries node and, accordingly, they are listed in my Classpath as this:
    ..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\jai_imageio.jar
    ..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\clibwrapper_jiio.jar
    There also a couple of DLL files which I wasn't sure how to add.
    So why am I still getting this error? Maybe it's the wrong version of JAI?

    This research made me VERY late for work and I've been swamped all day. Didn't have a chance to post my solution earlier.
    "It appears that you have downloaded wrong package... try downloading and installing the stable release " jai_imageio-1_1-lib-windows-i586-jdk.exe ".
    I didn't know how to install that one. I tried clicking it and got an error msg. Then I added it as a reference (I browsed to it from the Libraries node) which "seemed" to work (allowed me to run my app using F6) but then it wouldn't produce a deployment package when I seleced Run > Clean and Build. So I went back and downloaded the "Daily Build" which unzips to two jar files
    jai_imageio.jar
    clibwrapper_jiio.jar
    and immedliately Run > Clean and Build produced a deployment package. (All of this is to get PDFbox running in my app). I also needed jai_core.jar which I believe was from this page:
    http://code.google.com/p/mapmap/downloads/detail?name=jai_core.jar&can=2&q=
    specifically this link:
    http://mapmap.googlecode.com/files/jai_core.jar
    By the way I am using a "Daily Build" for PDFbox (0.7.4) which came from the "FOP" downloads here:
    http://www.jeremias-maerki.ch/download/fop/pdf-images/
    but I still needed the older pdfbox 0.7.3 download just to extract the Fontbox.jar from it. I needed a codec from this page as well:
    http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
    the codec was offered as a one-link download:
    http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
    The upshot of all this is that I can now work with more types of PDF files than before - but still not all of them. I'm getting another error on some of them (I'll have to reproduce this at home).

  • Javax.media.jai not in jmf.jar

    I’ve 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?

Maybe you are looking for

  • Explain plan, Oracle 10g, AWR, ASH etc etc

    Hi, I'm obviously not searching on the right terms but using one of the following : AWR, ASH, ADDM, isn't it possible to get the explain plan for a certain SQL_ID after the fact? I was sure that using ash and specifying the SQL_ID that one could have

  • New How-To: Exchanging Binary Content Using MTOM

    Hello, One of the new features of the OracleAS Web Services (10.1.3.1) is the support of Message Transmission and Optimization Mechanism (MTOM) to exchange binary content using SOAP Web Services. This is documented in the following how to: - How-To U

  • Airport Update Problems-Where's Apple?

    I am not here to flame Apple but I know they have Mods on this board that should be able to answer my question. Is there an official message from Apple on what users like me should do now that my $2000 laptop is no longer useful for me when I travel?

  • Contact manager

    I am trying to convert from using a Blackberry for 8 years and though I like the overall features of the iPhone and I can live with the email issues the contact manager definitely needs work. Is there anyway to search by other fields then First /Last

  • External drives not showing in disk utility

    All of a sudden, my mid 2011 iMac has stopped recognizing 2 external hard drives via either FW800 or USB.  The drives don't even appear in the Disk Utility.  I switched to another account, and the drives still do not appear.  Flash cards still work,