A probem about the javax.media

How can I read such infomation as the file's(*.mp3) header ,length ,Duration and so on;

Im kinda dealing with the same problem, well not really but im sure you can help. How can i add the .zip file to the application. THis is the first time im using windows for developement, i mainly use unix or sun boxes. I used code warrior for java to develope the application, it runs fine in code warrior but not in dos. I can run only simple .java apps in dos which have NO import statements in the code.
I have a program which i import javax.com, the error i get while compiling through ms-dos is "package javax.comm does not exist" when i use the javac Comport.java executable compiler.
Please help...
thanks for your time,
Steven

Similar Messages

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

  • 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

  • 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

  • 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

  • Javax.media.rtp.InvalidSessionAddressException:

    Hi:
    Using SIP Communicator Java client on Linux. (Redhat Enterprise 4 - WS).
    Works fine when on local lan. I'm testing the client over VPN (Nortel/Apani Netlock client). It brings up an interface in the form:
    nlv0: 10.61.x.x address
    This address is returned as the selected local interface that the SIP client is attempting to bind the RTP Port to.
    The specific error being received is:
    Local Data Address Does not belong to any of this hosts local interfaces.
    Does JMF not support VPN tunnels? if so how? What is the javax.media.rtp class code doing to determine that the VPN address brought up doesn't belong to my local machine?
    Anyone know what to do here?
    thx.
    Duff

    A workaround.
    I set the address of my machine in my /etc/hosts to the machine name of the IP address that was assigned to the nlv0 address.
    SIP client comes up fine now!
    Bonus.

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

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

  • 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());

  • Is the Java Media Framework still supported by Sun or not ??

    Hello my name is Michael.
    I have questions about the JFM, are there any person who can response it, please post it.
    I don't know if the technology is up to date if there is no release or bug fix since 2003.
    Please tell me something about the plan from Sun about the Java Media Framework.
    Is there any substitute java framework to work with ??
    Thank you for your benefit !!
    Michael

    Doug,
    Your iPod should work with no issues on 10.4.11 and iTunes 8+.
    When the iPod "locks up" do you hear any clicking noises? Your symptoms sound like the hard drive is having hardware issues.
    Here's a trick I used to use to fix the older iPods. It involves opening up the iPod, so if you don't feel comfortable, you might want to go to someone who does.
    Take a blade from a box cutter and gently move it along where the plastic meets the metal on the iPod. Use the blade to pry open the iPod from the metal case for the back.
    Once you get the iPod out, look towards the bottom of the iPod, and you should see the hard drive with a wide cable attached to it. Take that cable out of the hard drive (gently). Find a Bic pen cap (or something similar) and push it in between the two rows of pins on the cable. Try to make sure the pins are spread apart evenly and all pointing directly out. Once you get that in place, firmly push the cable back into the hard drive and gently put the iPod back together.
    You may then want to restore just to be safe, and try loading your music again. I've used this trick on many old iPods to bring another couple of years of life into them. (sometimes this cable comes loose, causing the issues you're describing)
    Justin

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

  • We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason. Anyone else got that too with Premiere Pro CC and the new Media encoder? Thanks! bedrijfsfilm Companyfilms

    We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason. Anyone else got that too with Premiere Pro CC and the new Media encoder?

    We have an issue when we send a film to the media encoder it crashes about half of the time for no particular reason
    Anyone else got that too with Premiere Pro CC and the new Media encoder?
    Lack of detailed info makes your question impossible for anyone to answer you!
    eg. ...."Doctor it hurts...anyone else got something that hurts?" 

  • How i can find out some the topic about introducing javax.servllet.http

    can anybody help me?
    in the sun micro site. i cannot do ......
    how i can find out some the topic about introducing javax.servllet.http

    http://java.sun.com/docs/books/tutorial/servlets/index.html

  • 4 questions about the the top boxes - SD box and Home media DVR

    Hello. I am going to be getting Fios soon and I have some questions about the boxes. I will be getting the Home Media DVR and 4 SD boxes.
    1) Do these boxes have timers on them to set so the box can turn off at a certain time?
    2) Do these boxes have parental control and if so is it good enough to block things that I do not want my child to see?
    3) How many people can access the home media dvr at the same time to watch already recorded programs
    4) If the Home Media DVR is in the family room can a record be started from the bedroom over the SD set top box (even an hd show)?
    Thanks for any help.

    I have been using two Standard Set Top Boxes for about a year. I have Parental Controls on and all channels locked. When I want to watch a channel, I tune to that channel, note the LOCKED message, which tells me to press the OK button to enter ther Parental Controls PIN and unlock the channel for viewing.
    This has worked flawlessliy for the last year -- ON THE Standard STB's.
    I just ordered the Home Media DVR STB to replace one of my Standardt STB..
    On the Home Media DVR:
    I can set the Parentals Control PIN and lock the channels, in the exact same way I did o nthe Standard STB's. However, when  tuen to ANY channel, I still ge the LOCKED message and instructions to press OK to unlock the channel -- BUT no matter how I press the OK button, the Enter your Parental Conlrols PIN dialog box willl NOT open. Nothing happens -- you CAN NOT view any channel.
    Again, it is the EXACT setup as for the Standard STB, but the OK button will NOT unlock any of the channels.
    If you unlock all channels and LOCK the Ratings, the same problem recurs: OK buitton will never open the "enter your PIN" dialog box.
    I have received two replacement boxes and have spent hours on the phone with some very capable and helpful Techs -- no luck.
    Has anyone else had the same problem? Here's how to test your Home Media DVR:
    1. Menu-Settings-Parental Controls.
    2. You will be prompted to CREATE youre Parental Controls PIN
    3. Enter you PIN twice.
    4. Use the > button to scroll to Enable On/Off and set it on.
    5. scroll down to Control Channels
    6. Press > button to See Locked Channels
    7. Scroll down to Add/Remove Channels
    8. Scroll right to choose LOCK ALL
    9. Press OK and then scroll to YES to lock all channels
    10. Press EXIT to get out of settings.
    11. All channels are now locked.
    12. Go to any channel
    13. A black screen will appear with a lock silhouette with the word LOCKED below, followed by instructions to Press OK to enter PIN and unlock this channel. (plus how to change locks...).
    14.Press the OK button and, if it is working, you will see a dialog box at the bottom of the screen that is titled: UNLOCK, with the channel listed and the instructions to "Enter your PIN using your numeric pad on remote to naje this channel availabe for all users." THere's a PIN box, which shows asterisks for each number entered, with "Press Exit to Cancel" below.
    15. On the Standard STB, it works exactly as described in steps 1 thru 14. On the Media Center DVR, it works up to step `13, but in 14, no matter how you press the OK button, the UNLOCK dialog box never pops us. The Remote STB light flashes on the remove and the REMOTE yellow light flashes on the DVR,  but nothng happens.
    If you have a Home Media DVR, can you please try this and see if it works?
    Thanks,
    John

  • Working on two machines - what about the media cache ?

    I'm a long time user of FCP just getting my head around Premiere Pro CS5.5. I quite often work on the same project at work and at home. With FCP I simply duplicated the media onto another drive and just transported the project file on a flash disk - obviously rendering of effects would have to be done locally.
    Now with Premiere I notice there's the media cache which, as far as I can tell, is not necessarily anything to do with rendering and effects but related and applied to every clip.
    So my question is, will the media cache have to be built from scratch on each machine every time I move the project file ?
    If so, is there a way to avoid this so that I wont have to wait for it to build the media cache ?
    ....or on a 30 minute film with 15 hours of original media will this will this be a quick process so as not to be a problem ?
    I suppose what I'm really asking is how can I easily work on the same project in different locations ?
    Any help appreciated.

    At the moment my media cache is in my user library folder on the system drive.
    I would avoid using the system drive for media cache files.
    The best would be to have a separate, identically named drive
    (D for example) for your media cache.
    If you use an external drive for your media, make sure that
    you assign the same drive letter to this drive on both systems.
    ... and then duplicate the lot onto another drive ?
    I have never tried to wholesale copy media cache files from one
    system to another... preferring to allow Premiere to generate a
    cache for each system.
    One other thing. Suppose I capture some more media at work, can I just copy this media into the same location on my home drive and then will the media cache on my home machine just update the new media ?
    Yes.
    A good reference for disk setup can be found here:
    Generic Guideline for Disk Setup

Maybe you are looking for