Problems with JMF and audio files.

Sofware:
Java Version 1.5.0_03
JMF Version 2.1.1e
Windows XP SP2
I have a application that consists of 2 parts. The first is an editor for creating exercises, like multiple-choice, matching and so on. The second part is a “client”, used to solve the exercises. The client uses Java Webstart.
When I include audio clips in the exercises they play just fine using the client, but in the editor program I just get a clicking sound, and then the application stops responding.
The strange part is that the editor and client use the exact same code to playback audio clips.
The old version of the editor (developed for Java 1.3.x) works just fine under Java 1.3.x, but when the same byte-code is launched under Java 1.5 I get the same problem (clicking sound and then the application stops responding).
Any suggestions?

When installing JMF, two new packages are stored in the jre\lib\ext folder : jmf.jar and sound.jar.
Sound.jar contains the same api that are in the packages sound.midi and sound sampled contained in jre.
Maybe these new api are an improved version but i noticed some trouble playing sound and i delete sound.jar file, now it works fine.
Try this, maybe you had the same problem.

Similar Messages

  • Problem with Preview and PSD files - random gray square

    Hi guys, hope you can help...
    I've got a problem with Preview and PSD files.
    If I open in Preview both an original jpg straight from my reflex and the photoshop version of the same picture, the psd file presents a gray square (of what it seems unrendered image) in a random area of the photo (sometimes in the center.). The square is quite big...
    If I zoom in or zoom out it disappears...if I scroll to another photo and then back to the psd, the square it's there again...sometimes in a different position.
    I've tried the same psd on my older iMac with leopard...and got no problem at all.
    I suspect it got something to do with my Ati...
    (this is the second iMac 27...the first went back for gray banding on the lcd screen and flickering and yellow tinge........)
    Thanks for your help.
    DAve.

    maybe I'm onto something...
    I've just found out that opening Preview in 32bit mode (instead of default 64bit) works flawlessly with any psd files. If I switch back to 64bit mode, Preview is much faster but the gray square comes back...
    It seems like the i7 is much faster than the Ati....
    Any more realistic ideas?

  • Problems with image and audio in Premiere

    Hi! I'm using Premiere Elements 9, but there's no synchronization with imagen and audio because the image is slower than audio and it's causing problems when I'm editing. Why can I do? It's there a poblem that can I fix in "Preferences" or is my laptop?
    I hope your answer,

    When you do post the PrE forum, this ARTICLE will give you tips on the types of info, that will be so useful. See you there!
    Good luck,
    Hunt

  • Problems With Syncing and Audio Play with Itunes

    I've been having a problem with Itunes and my iPhone for the past few days. First of all, iTunes will not play any songs. When I press the play button, the speaker changes to the play picture, and the song loads at the top, but the timer stays stuck on zero. Also, when I attempt to sync my iPhone it will not add new songs downloaded onto my phone. I have updated and re-installed iTunes and it has not helped. Also, tonight I even updated my phone settings (which I interestingly enough was able to do despite the fact that I cant get a song to transfer to my iPhone, yet somehow the new program settings were able to make the jump.)
    I am using Windows Vista at the moment. Does anyone have any idea as to what could be going on? Any help would be greatly appreciated.

    Hi,
    Have you tried backing up you iPhone and copying over everything to iTunes etc.Apps,Videos...Then Restoring to factory setting?
    If that doesn't work try Manually Managing you Music and Videos.

  • Problem with Java and Zip Files

    Hello there everyone. I have a problem with trying to zip up directories with empty folders in them. They zip fine with my code, but according to winzip, the number of files in the archive is incorrect. It's supposed to have a total of 288 files in it, but when it's zipped up, it only says 284. I mention specifically the "empty directories" note because the zipping works fine without empty folders.
    Below is the code for the zip method:
    public static void zip(File[] list, File zipfile, File zipRoot)
         throws IOException {
          if (!zipfile.exists()) {
                   zipfile.createNewFile();
              else if (!zipfile.isFile()) {
                   throw new IOException("The zip file, " + zipfile.getAbsolutePath()
                             + " is not a file.");
              if (list.length == 0) {
                  LOG.error("The list of files to zip up is empty.");
              for (int i = 0; i < list.length; i++) {
                   if (!list.exists()) {
                        throw new IOException("The file or directory, " + list[i].getAbsolutePath()
                                  + " does not exist.");
              FileOutputStream fos = new FileOutputStream(zipfile);
              ZipOutputStream zos = new ZipOutputStream(fos);
              for (int i = 0; i < list.length; i++) {
                   if (LOG.isDebugEnabled())
                        LOG.debug(i + ": " + list[i].getName());
                   String entryName = getRelativeName(list[i], zipRoot);
                   if (list[i].isDirectory()){
                        if (list[i].listFiles().length == 0){
                             ZipEntry entry = new ZipEntry(entryName + "/");
                             zos.putNextEntry(entry);
                   else {
                        ZipEntry ze = new ZipEntry(entryName);
                        zos.putNextEntry(ze);
                        byte[] buffer = new byte[8096];
                        FileInputStream fis = new FileInputStream(list[i]);
                        int read = 0;
                        read = fis.read(buffer);
                        if (LOG.isDebugEnabled())
                        LOG.debug("\tFound " + read + " bytes.");
                        if (read == -1){
                             //empty file, but add it for preservation.
                             //zos.write(buffer,0,0);
                        while (read != -1) {
                             zos.write(buffer, 0, read);
                             read = fis.read(buffer);
                        fis.close();
                        zos.closeEntry();
              zos.close();
    The files look like they're there, but I need the system to be able to determine the number correctly. 
    Here's the interesting thing:  It zips the files, and then when I use the size() method for zip files in java, it says 284 files.  But when I unzip, it says 288 again.  It's like there's files missing when compressed, but when decompressed, they return.  Note that the files are actually there.  If I open the archive in a third party app such as Winzip AND Winrar AND IZarc, they all show 288 files.  Any idea what would make the number of files appear incorrectly in a zip file when zipped by java with the code above?  Thanks in advance.
    - Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figured out the problem. When zipping files in windows using winzip, it doesn't explicitly count folders as a "file/folder" as a file in itself. It will create the folders for files to go in, but the folder itself will not be 'counted' when you query the info of the file itself. You have more control of the zip file in java, and can count the folder as a file or not.

  • Problem with keyboard and audio on Satellite L40

    Hi everybody,
    I just installed XP SP2 on my Satellite L40 (BTW thanx to all you that have helped me overcome the problems during this operation with your threads), but I have some problem with my keyboard. I have an azerty keyboard and after I installed xp, it worked as a qwerty, I repared it, now all my letters are working fine, but i have some problems with some symbols, such as @, !, _,if you understand me.
    Could somebody help me???
    I also have problems with my audio, in fact I have no audio at all, in control panel it says that no audio device is found.
    I saw some threads that said that I should first install kb888111, and another likely thing, but i can't find the other one. I've downloaded the sound driver from the toshiba website; thanx for helping me in that field also.
    bye

    I have the same problem with sound...I have found hotfix kb888111 and I instaled that one...but when i wanted to start instaling sound driver a popup window say thet there is some error and can't continue with instaling sound driver...
    I found hotfix kb888111 in this folder which i have downladed from toshiba site: english\sound driver\mshdqfe\win2k_xp\us\kb888111xps2....
    i do not know what to do.....Does anybody else knows....

  • Problems with jdbc and .jar files.

    I am having a problem with connecting to my database when running my .jar file as an executable.
    It connects correctly when I use the java command in command prompt and it also runs correctly when using my IDE.
    Is there something that needs to be added to the manifest or in the code it self inorder for the program to find the JDBC driver correctly?

    This is the error message that I get:
    java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at AboutFrame2$Connect.getConnection(AboutFrame2.java:109)
    at AboutFrame2$Connect.displayDbProperties(AboutFrame2.java:127)
    at AboutFrame2.<init>(AboutFrame2.java:72)
    at MainStartFile2.main(MainStartFile2.java:7)
    Error Trace in getConnection() : net.sourceforge.jtds.jdbc.Driver
    Error: No active Connection
    I think that it is because it cannot find the driver. I am going to add the path to the manifest and see if that works thank you for all the help.

  • Problems with syncing and transferring files

    Hi there. Im having problems with syncing my Ipod Touch and uploading files. Ive managed to transfer multiplr MP3 fils but i noticed that when i disconnectktwith my PC. All the sings are gone. What could have haplened?
    Please help.
    Thanks.

    Apologies for the misspellings.
    Basically i have tried uploading my MP3 files (one by one) in my device. then i tried uploading films. then when i disconnected my device all my songs on the device is gone. i do not know what happened exactly.
    it would seem the current iTunes version is "unstable". having uploaded 50 songs, doing them one by one only to find out out it got wiped out in the device for some reason.
    any explanation for this?
    Thank you.

  • [solved] Problem with Amarok and flac-files

    When I installed Arch for the first time a couple of months ago, I was happy to find that some flac-files that didn't play in Amarok on my Debian installation was now played back perfectly. However, upon trying to play these files today, Amarok refuses to play them. I get an error stating that there is no suitable demux plugin for the files. Other flacs play back fine though, and the problem files play back perfectly in mplayer.
    Another thing I would be very happy to resolve is that I have a few files that use japanese in their tags. IIRC these displayed correctly in Amarok on my Debian install, but in Arch all I see is squares where there should be japanese, despite me installing both arphic-ukai and arphic-uming packages. What am I missing?
    All help appreciated!
    Last edited by Emphrygian (2007-04-20 22:36:45)

    Your tip worked like a charm and the files now play perfectly in Amarok once again.
    I solved my second problem by installing the ttf-sazanami package from AUR and adding both sazanami gothic and sazanami mincho as substitute fonts for Sans Serif (my default font) in qtconfig (not sure that I really needed both though, but hey, it works now ).
    Last edited by Emphrygian (2007-04-20 22:35:37)

  • Windows 8 Elements 11 Problem with DNG and CR2 files

    Have a Windows 8 machine with Elements 11 which has Camera Raw 7.4 installed and showing correctly in the editor. The Browser shows thumbnails of the DNG and CR2 files, but when an attempt is made to edit them, the editor opens but does not open the file. Same thing happens if I try to open the file using the File Open from the menu.
    Also I have been through the help and forums and found an article about opening jpeg files as Camera Raw files (http://blogs.adobe.com/pselements/open-jpeg-files-in-adobe-camera-raw-in-photoshop-element s/) and this does not work either.
    Help please !

    Disclaimer:  The following applies to WINDOWS EXPLORER.  I don't use Bridge so I don't know if it's applicable at all to Bridge.
    Adobe does not provide a codec for viewing Canon raw files as thumbnails.  Canon has one for free but it only works on a 32 bit Windows system.
    Early this year I found a free download for displaying raw file thumbnails that works on an x64 Windows system.  Since that time the author realized there's a real demand for this software and has started charging for it.  In any case, I find it works very well.
    http://www.fastpictureviewer.com/codecs/
    -Noel

  • Problems with UAC and NTFS File Permissions on a File Server.

    LarryG. wrote:
    It looks to me like your account doesn't have the proper permissions on all of the sub folders.  Can you verify that?  Once you have the proper permissions this issue should go away.
    This is a feature, not a bug.  You do not have permissions.

    Hello Everyone,I'm curious about your experience with UAC and NTFS permissions--in particular on a file server. In my case, I'm running Server 2012 R2.I have a very large company shared folder. I right click on it and go to properties to check the size. The size is only 5GB or so and should be over 300GB. How is this possible? I'm finding that some of its subfolders are tied into UAC and some folders are not. UAC-related subfolder:Non-UAC related subfolder:In the pictures above, both folders are department-related folders. They are not system folders. The folders have the same owner. The folders are located on the same folder level. When I try to view the permissions of the UAC-related folder, I get this:I'm a domain admin, so when I go through the prompts, I can see the permissions.But this is a total pain because I now require third...
    This topic first appeared in the Spiceworks Community

  • Having problems with Video and Audio

    Hi - I am new to Captivate.  I have created a demostration with about 85 slides with audio on each slide.  When I preview the project all is fine.  When I publish the swf and htm and play on my machine all is fine.  However when my colleagues try and listen to the demo, the video and audio get out of sync.  The audio seems to go faster than the video.  I am not sure if it is due to the sound speeding up or the video slowing down.  Has anybody seen this bfore ?  Can anybody help ?  I am using Captivate 4 with the latest patch

    Hi there
    I've seen others suggest that adjusting the audio clips for each slide so they begin playing at perhaps .1 or .2 seconds after the slide begins solves the issue.
    Perhaps you will have good luck with this approach as well.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Indexing Problem with FILE_DATASTORE and .pdf files

    Hello all,
    Do any of you have an example showing how to index .pdf files through FILE_DATASTORE? I am able to successfully index text and .doc files but not a .pdf file. Below is the script that I use to index my files:
    create index myindex on mytable(docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR filter ctxsys.null_filter');
    I am using Oracle 8.1.6
    Thanks you!!!
    -garrett

    I don't think that you are able to index anything else then plain ascii texts, because you are not using the INSO filter.
    Use preferences like this:
    exec ctx_ddl.drop_preference('NO_PATH');
    exec ctx_ddl.create_preference('NO_PATH','FILE_DATASTORE');
    exec ctx_ddl.drop_preference('MY_LEXER');
    exec ctx_ddl.create_preference('MY_LEXER','BASIC_LEXER');
    exec ctx_ddl.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
    exec ctx_ddl.set_attribute('MY_LEXER','INDEX_THEMES','NO');
    exec ctx_ddl.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
    exec ctx_ddl.drop_Preference ('MY_FILTER');
    exec ctx_ddl.create_Preference ('MY_FILTER','INSO_FILTER');
    exec ctx_ddl.drop_section_group ('MY_SECTION');
    exec ctx_ddl.create_section_group ('MY_SECTION','NULL_SECTION_GROUP');
    drop index i_filenames;
    create index i_filenames on filenames (filename)
    indextype is ctxsys.context
    parameters ('datastore NO_PATH
    section group MY_SECTION
    lexer MY_LEXER
    filter MY_FILTER
    memory 10M
    IMPORTANT is the INSO_FILTER preference.
    Thomas

  • Problem with Report and distribution file

    Hi.
    I have a report that create the paycheck for my customer's employe.
    My first group on the report is the email adresse of the employe, so i can cut the report end send it by mail to the said employe.
    95% of the time it's working perfectly. But when i encouter a blank adresse or simply no result (no line return by the query)
    then the report execute, and crash giving me this error.
    access control disabled, clients can connect from any host
    REP-0177: Erreur au cours de l'exécution sur serveur éloigné
    Paramètre de référence 'REFADRCOU' non valide dans la liste de diffusion
    Sorry i did not find the equivalent in english. It say that the email field (REFADRCOU) that i am using for the TO is invalid and make the whole report crash.
    I'm not sure how i could deal with this.
    I had a idea of executing the query before report, in the afterpform, and if i have no result, add a blank line with select XXX from dual for exemple so it would have at least 1 row and won't crash. but it's not very elegant.
    Any idea or suggestion on how i could handle this problem.

    Hi.
    Thanks for answering.
    I solved the problem.
    First I stored the file into a string variable.
    And on that variable I do
    some processes. (Analyze the read
    bytes and add more text to the original file)
    Before I did that processes on
    .Text property on the object.

  • Problems with Lion and .pkg files.

    After the upgrade to Lion, i've a problem to install .pkg files. If i try to open it with double click, terminal window starts and cursor waits for commands! With Leopard the installer program started after double click on .pkg files, but with Lion "installer" seems to be disappeared.
    Same happens with some apps, when clicking they don't install, but terminal window starts...
    How to fix this problem?

    Apologies for the misspellings.
    Basically i have tried uploading my MP3 files (one by one) in my device. then i tried uploading films. then when i disconnected my device all my songs on the device is gone. i do not know what happened exactly.
    it would seem the current iTunes version is "unstable". having uploaded 50 songs, doing them one by one only to find out out it got wiped out in the device for some reason.
    any explanation for this?
    Thank you.

Maybe you are looking for

  • Mail shows up in sent but not in inbox

    just setting up the mail function - I am a mac.com member and using 10.3.9 - trying to send messages to myself to test it out. They show up in my sent folder but not in my inbox. Also - where should my mailboxes be located - under on my mac - or the

  • The app gets killed on navigating to one or two views without showing any crash logs. How to check the cause of crash?

    On launching the app, it works fine upto two or three pages and gets killed after some time. Currently not able to figure out what is the reason since its not showing any logs in device as well the project. In case there are memory issues , how can I

  • JFrame running with Java Web Start

    I have a problem with running my application with Java Web Start. My main application window is a JFrame and I have a line of code as below this.setExtendedState(MAXIMIZED_BOTH); It runs fine when run on a PC locally. But if I try to run the applicat

  • Delegate permissions to edit only certain settings in a GPO?

    We are running a 2008R2 domain. I know this is doubtful, but thought I would ask.  We have lots of drive mappings through a single GPO(mapping is through GPP). I would like to delegate the editing of those drive mappings to help-desk user. That is ea

  • Get Flash Player to work under Vista

    Using Internet Explorer, I am trying to get Flash Player 10 to work under Vista 32 bit. When I go to youtube.com, their greeting says "Hello, you either have JaveScript turned off or an old version of Adobe's Flash Player. Get the latest Flash player