Need javax.media package

Hi.. Everyone
where do i get this javax.media package ? will it not be available with jdk?
Thanks in advance.

Some of it is included with JMF...you have to install JMF specificlly to have access to the javax.media classes that JMF uses...

Similar Messages

  • Need javax.el package

    hi there,
    currently, I use JDK 1.5_08, and update my web application to use JSF1.2. As I understand, javax.el package is part of Java EE 5 SDK. but I don't want to install EE 5 SDK.
    where can I get the jar of javax.el package?
    Many thanks,
    lluo

    javax.el is a part of JavaEE 5. So, Java EE 5 SDK is a right place where you can get it. However, do not be so optimistic. Taking this package will force you to take the rest. If you do not want to install Java EE SDK , but want to use JSF 1.2, only one way to go is using facelets.
    If you have existing working application and want to migrate it to JSF1.2+Facelets, it might be a challenge. I mean replacing jsp with xhtml.
    Working template for JSF1.2+Facelets: http://blog.exadel.com/?p=23

  • Re: javax.media.* package

    i am trying to work on an example that uses the javax.media package, but the package is not found. Any ideas on importing a package or whatever to get my example to work?
    thanks a million

    It may have something to do with the way you're building your MediaLocator. They should be URL-like.
    myLocator = new MediaLocator("file:\\"+adVids[currVid].getAbsolutePath());

  • Import javax.media.* is not working

    Hi,
    I'm new to java and i was trying to create a media player using the javax.media package from the JMF. I installed it using the windows setup and it seemed to install correctly. Testing it with the java.sun.com applet tester worked. The media player is also working...
    The only problem is that when i import javax.medis.* it gives me a compiler error:
    package javax.media does not exist
    my code is as follows:
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import javax.media.*;
    public class PlayerApplet extends Applet {
         Player player = null;
    public void init() {
         setLayout( new BorderLayout() );
         String mediaFile = getParameter( "FILE" );
         try{
              URL mediaURL = new URL( getDocumentBase(), mediaFile );
              player = Manager.createRealizedPlayer( mediaURL );
              if (player.getVisualComponent() != null)
              add("Center", player.getVisualComponent());
              if (player.getControlPanelComponent() != null)
              add("South", player.getControlPanelComponent());
         catch (Exception e){
              System.err.println( "Got exception " + e );
    public void start() {
         player.start();
    public void stop() {
         player.stop();
         player.deallocate();
    public void destroy() {
         player.close();
    } Could someone please help me out here... i've tried all the few probable solutions... but to no avail...

    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

  • 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 doesnot exits

    Hi,
    I have installed JMF,but am still facing the error "package javax.media doesnot exits"
    when i tried to import javax.media.*

    You need to import JMF's library JAR files

  • "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.

  • 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.

  • 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?

  • How to import javax.media.*

    i am doing project on audio ,video transmission over the LAN.
    after installing JMF1.2.1, when i run the program i am getting the error
    "D:\raghu\amp\audiolabreports\ampcom\AmpCom.java:3: package javax.media does not exist
    import javax.media.*;
    ^
    1 error"
    please help me out
    -raghnath.g

    Hi,
    You need to place jmf.jar in your classpath.
    -Amol

  • Newbye question: what is javax.media.jai ?

    Hello,
    What is javax.media.jai for, and what has it more than java.awt.image?
    I am experiencing difficulties with colormap manipulations in the standard java.awt.image classes, so I'm wondering if javax.media.jai could help.
    Its classes are not in the standard documentation javadoc. If I use it in my project, do I have to warn people downloading that package or is it basically installed in the standard download of jse ?
    thank you

    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!".

  • Use of javax.media.jai

    Hi all,
    I wanted to use some classes of javax.media.jai but , I get this error which says
    cannot resolve javax.media, I am using eclipse to write my code. Please let me know what I need to do.
    Thank you.

    Two things to check.
    If your trying to actually use the JAI from javax.media.jai you need to
    have the following import.
    import javax.media.jai.JAI;
    Also in eclipse you need to make sure that you have the package included in the project, and that your Class Paths are correct. If your class paths aren't correct then even if you have the package in the project you'll get errors.
    Hope that helps.

  • Error when using javax.script package

    Hi
    I want to call a javascript method from a .js file from .java class.
    when i searched, i came to understand that using jdk1.6 i can use javax.script package tht provide me what i needed.
    using the reply i got from i earlier post, i tried one example.
    public void show() {
    ScriptEngineManager engineMgr = new ScriptEngineManager();
    ScriptEngine engine= engineMgr.getEngineByName("JavaScript");
    try {
    engine.eval(new FileReader("D:/ShowScript.js"));
    Invocable invocableEngine = (Invocable) engine;
    //show_message is my function in ShowScript.js file
    invocableEngine.invokeFunction("show_message",null);
    } catch (Exception e) {
    e.printStackTrace();
    ShowScript.js
    function show_message()
    println("===> hi");
    alert("hi");
    When i execute my program, im getting the following error
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "alert" is not defined. ( #8) in at line number 8
    at com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:184)
    at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(RhinoScriptEngine.java:142)
    at testbuiltin.backing.Show_alert.show(Show_alert.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    When i remove the alert() from the js file, the println is working. But what i neede is the alert.
    Can anyone plz help me to solve this problem.

    As you're talking about "backing beans", are you using JSF?
    After all, this is definitely not the way to let Java and JS interact with each other. Java runs at the server side. JS runs at the client side. Java can write JS code to the response, but definitely cannot call it. JS can access the HTML DOM and invoke requests to the server (form.submit() and AJAX and so on) and send parameters along the request, but definitely cannot call Java classes and methods independently. Nothing more and nothing less than that.

  • Error using javax.mail package

    Hi,
    I have included the package javax.mail.* in my code.I have downloaded
    jaf 1.0.2 and javamail 1.1.3 from the Sun Microsystems website.
    When i try to compile my code i get the error message:
    com/voxspectrum/ccvox/EmailServer.java:55: cannot resolve symbol
    symbol : class MimeMessage
    location: class com.voxspectrum.ccvox.EmailServer
    javax.mail.Message msg = new MimeMessage(session);
    I am using JDK ver 1.3.1_02. What should i set my path and classpath as, if i am using javax.mail package?
    Please could you help me out with this problem!

    Hi Nisha
    You need to include the path to the mail.jar and activation.jar files in your classpath.
    How you do it depends on the OS you are running on
    in Windows 95 /98 the easiest way is to edit the autoexec.bat file and add the settings to your already existing classpath statement i.e.
    set CLASSPATH=%CLASSPATH%;C:\richard\javamail-1.3\mail.jar C:\richard\jaf-1.0.2\activation.jar
    (excuse the word wrapping) then reboot
    on Linux / Solaris edit the .profile file for your user and set the CLASSPATH variable to
    CLASSPATH=$CLASSPATH:<pathtofile>/mail.jar:<pathtofile>/activation.jar
    export CLASSPATH
    and that should do it
    Hope this helps

Maybe you are looking for

  • Search help for Custom Item level field

    Hi All, I have two custom fields at Item level. Both of them has fixed values defined at domain. The fixed values have a short text also given with them. The problem I am facing is when SRM provides default search help for these custom fields, for fi

  • Fetch tablespace data from Oracle database(HP UNIX server) to excel Sheet

    Hi team, I have 5 oracle databases and they all are on different machines. i want to fetch data(tablespace data) from db to excel. here is my macro code Sub tbs_STD() Dim Conn As New ADODB.Connection Dim RS As New ADODB.Recordset Dim Cmd As New ADODB

  • Cannot figure out why service could not be activated

     am trying to deploy and use a web part developed in SP2010 that requires connecting from a SP2010 server to a SQL server. I get the following error (greatly abbreviated): The requested service, '[blocked; this is not what it says on the error]//_vti

  • How to call stored procedure in hibernate

    hi , can any one help me how to call stored procedure in hibernate.Given code in hbm.xml and also plz tell me what is the use of <return-property/>in given hbm.xml file. <sql-query name="selectEmployees_SP" callable="true">      <return alias="emp" c

  • Requirement for a Report

    Dear all, I have requirement where I need to show the figures as a cumulation. Here is the example My current report shows Fiscal year/period     $ 001/2007                   17,865,128.05 002/2007                   19,756,842.89 003/2007