Audio Clip problem plz help..

There is some problem with my code. It is actually for simply playing a wav file.
It gives errors on two lines....
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
public class MediaPlayerDemo extends JFrame
     AudioClip clip; //Error Here
     public MediaPlayerDemo(String title)
          super(title);
     clip = getAudioClip(getCodeBase(),"access.wav"); //Error Here
     clip.loop();
     public static void main(String args[])
          MediaPlayerDemo m = new MediaPlayerDemo("Title");
          m.setSize(400,400);
          m.setVisible(true);
}

"Audio Clip problem plz help"
You have to learn to help yourself.
Have you done anything to try to fix the errors yourself?
AudioClip clip; //Error Here
the error generated here is self-explanatory.
if you can't fix this, you should get a good book on java basics and start again.
the other error is also easy to fix.

Similar Messages

  • N96 audio recording problem, plz help

    Hi everyone , this is my first post and I need help.
    I bought n96 2 months ago.
    When I record -video or audio- there is noisy noise in the backgroud that sometimes is unbearable, I downloaded the vidoes and sound to my pc and yeah it's bad
    the problem isn't new, is this a hardware issue? because I fotmatted the phone and upgraded it and nothing has changed.
    what should I do?

    This is a known (and very annoying) bug with the N96.
    Hopefully they will fix it in the next software update.  The exact date of this update is unknown but shouldn't be too far away.
    It is also unknown if this update will actually fix the problem or not.
    You should complain to nokia using the "contact us" link near the top of the page.  The more people that complain the more likely they are to fix it.

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • Error while trying to synchronize Audio and MIDI. plz help i cant hear anything

    plz help me i cant hear nothing and its says: Error while trying to synchronize Audio and MIDI.
    Sample Rate 38536 recognized.
    Check conflict between Logic Pro X and external device. ????????   PLZ HELP

    It means you are overtaxing the CPU, likely with just one (3rd party-)software instrument plugin. Ignore the word "external", in this context it often means "3rd party plugin".
    So what synth is it? Since you're Dutch, it's probably one of the trancy dancy synths, such as Albino, Diva, Sylenth or Massive... I could be wrong though...
    The best way to avoid this message is to Freeze the track with the guilty synner - however, a frozen track cannot be edited, so if that is a problem, you will have to make the synth itself run lighter, which can be achieved by turning of internal effects that are ON the synth itself, especially reverb.
    http://help.apple.com/logicpro/mac/10/#lgcpf1cbfd51

  • Audio clip problem

    I have a question. I want to transfer songs/audio clips to my phone (like movie/tv quotes). (Motorola RAZR v3)
    I converted 1 audio file in iTunes from WAV to mp3 and then onto my phone but my phone said it was corrupt. I tried WAV to AIFF to mp3 to my phone, but that was also corrupt. My friend took the same clip and converted it to mp3 (I believe using quicktime), then sent it to me, and when I put it on my phone, it worked.
    I am having problems getting the tv/movie quotes to work after I transfer them to my phone. My phone tells me the file is corrupt. The songs I put on there work fine.
    How can I get them to work?
    Thanks

    I can't help you with the corrupt file issue, but I CAN tell you how I get files onto my Razr phone. There's a program I use I got from versiontracker.com called "Audio Hijack Pro" that will record sound from any source (web browser, quicktime, etc). They are generally created in mp3 format, then I transfer them to my phone. Haven't had any corrupt file issues yet. Hope this helps.

  • Problem PLZ Help me

    Hi Guys,
    I have a problem to make a developer application Client/Server.
    When i install forms Runtime on the Client`s computer and i open the application, i get the error that he can`t find the menu and the libraries.
    The menu path is for example on my computer F:\s3\Salesmenu
    But on the client it can be a different path an then he can`t find the menu.
    Now the properties for the main form are:
    Menu module f:\s3\Salesmenu
    Initial menu Salemenu
    Does anyone know how to fix this problem for example:
    1) by let the program search for the menu.
    2) .....
    Plz Help
    Vincent

    set your FORMS60_PATH on the client to Formspath;libpath;menupath so it looks in every dir named in the path.

  • Big Problem, PLZ HELP

    So, when i click on the itunes shortcut, which has the same icon as the Apple Software Updater, I get a box that says that iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I hit send once and sent the error report, and then restarted my computer to see if that would help. It didnt, so, now i cant access itunes this is a major problem cause i have all my songs on this computer. I also tried to plug in my ipod and see if that would make it load.
    I installed iTunes 7.0 on my laptop, the exact same way, and i works on my laptop, but not on my computer.
    PLZ HELP ME

    ok this is what i did when that happened to me. i uninstalled quicktime then went here: http://www.apple.com/quicktime/win.html and reinstalled the latest version :0)

  • Urgent audio tracks problem, please help

    I am on deadline, and suddenly a major audio problem has popped up. As far as I can tell, it started when I exported some sequences to QuickTime (uncompressed, self-contained) to show my client.
    The exported MOVs look and sound fine, but now that I've gone back into FCP to do some final edits, the sound tracks are playing corrupted music. I have tracks A1 and A2 playing stereo music, in AIFF. The waveforms look fine, but they are playing out of sync, with the tracks dropping out randomly. I tried deleting the music and reimporting, but no luck. I also tried laying down a different mp3, rendering that, and playing--also no luck. I tried creating a new project. I went into my AutoSave Vault and opened up a previous version of the project, before the issue appeared, and even that no longer plays properly. I don't believe I changed any settings, and my sequence settings are the same, but clearly FCP is not playing my audio tracks correctly.
    Anyone come across anything like this before? I couldn't find anything on any forums. Thanks in advance.

    It sounds like the issue only appears once the audio clips have been rendered (which is what would happen when you output a QT for a client). Do the audio clips have small lime-green bars at the top like on p. 649 of the manual? First, use the render manager to delete all your audio render files. Does that clear up the problem? If it does, you need to determine in what way your audio differs from the sequence settings. I would guess it's a different sample rate. If you convert the sample rate to match your sequence settings (probably 48 kHz, 16-bit) using Soundtrack Pro or QT before you import into FCP that might make a difference.

  • Nokia n79 problem Plz Help!

    Hello!My nokia just stuck,or hang in(i dont now english good) but i cant do enything.Evry button just dont work only at start when i write my pi(and somethimes then too).Works only power button.Its weard.Plz help.Somethimes a whole day are no problems somhetimes a whol day.

    hey ivee n everyone else .. i'm facing the same problem.. n i need to fix this problem myself..
    my n79 gets hang constantly nowadays.. i've used this phone for 1 year plus now so warranty's no more..... none of the buttons on the keypad works when it gets hang.. onli the power button is functioning.. now it's gettin worse .. it even hangs before i insert my pincode... i cant sms, call , or anything.. it hangs after i pressed a few buttons..
    so ivee u've fixed ur n79 youself right..? umm.. can u explain to me wat a smallboard is? is that the board at the lower part of the keypad where u can see buttons underneath the white layer? and is that board expensive?
    pls reply asap anyone.. urgent

  • N79 hanging problem plz help....

    while unlocking the keypad of my n79 sometimes the phone gets hanged then i have to take the battery out and then again switch on the phone........plz help me how to get rid of this problem???

    I have also same problem with my Nokia N79, I just cancelled sensor for automatic themes from cover. Just open back cover & stick some paper or plastic cello tape on four hole marks of covers wich r sensor for automatic themes to change colour of back cover same as theme colour. From 2 days I feel my mobile working fine without hanging ! so try it, all the best.

  • Bluetooth connection problem plz help...

    hi everyone, just bought a new pearl 9105. everything works fine and even bluetooth... through which i can transfer data from blackberry to other mobiles(samsung,sony ericsson)... but the problem is i could not recieve data from other mobiles.i should get contacts list from the other mobiles... but due to this problem i couldnt. plz help me out..

    The best way to receive a file from another device via bluetooth is to go to Media, then press Menu, choose Receive Using Bluetooth, waiting for connection will be display, then send from the other device. It should work without hassle.

  • Applet problem plz HELP

    Hi all,
    I have a problem when I am trying to run a jar file from an applet. The jar is for remote desktop application. Jrdp.jar.
    And the Exception is���.
    Exception in thread "Thread-6" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at gnu.getopt.Getopt.<init>(Getopt.java:617)
    at gnu.getopt.Getopt.<init>(Getopt.java:581)
    at net.propero.rdp.Rdesktop.main(Rdesktop.java:290)
    at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:190)
    can any one suggest me what I have to do???? Plz give your valuable suggestion in that matter. Should I have to do any thing in java.policy file. In that case what would be the syntax and what have allow. If possible plz help me out.
    Thanking you,
    With regards
    Shibaji Sabyal

    Try googling on how to sign your applet. The error you're getting can usually be solved by signing it.

  • Package Problem : Plz help

    I've make two classes named First.java and Second.java in e:\javafiles\test\vg folder
    package vg;
    public class First
              public int m = 100;
              public int n = 200;
    package vg;
    public class Second
              public static void me0()
                   System.out.println("Stupid cant u see the value of m is zero");
              public static void mgrn()
                   System.out.println("Yaar m is greater than n");
              public static void neven()
                   System.out.println("The value of n is Even");
    and a Third class
    import vg.*;
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Now the problem is that if I put the Last.java at e:\javafiles\test and compile it , it works fine but if I put the Last.java anywhere else e.g at e:\javafiles and try to compile it it does not works and gives error
    E:\JavaFiles>javac Last.java
    Last.java:1: package vg does not exist
    import vg.*;
    even if I change classapth variable as E:\javafiles\test or even E:\javafiles\test\vg
    plz help me in this regard

    You need to change where it is trying to find the 'vg' package. So, if your Last.java is in e:\javafiles, then you need to
    import test.vg.*
    e.g.
    import test.vg.*;           // Change this line
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Alan

  • N95 maps problem plz help me

    please any body can solve my problem?
    i have n95
    when i open gps application
    then on the screen globe is not showning and no maps are showing on screen
    only city names are showed
    and after the closing of map application in apst there are type on screen
    saving maps and data
    but now nothing typed
    plz help me

    i am using latest firm ware
    and using old maps application bcoz new beta 2.0 not showing my accurate position in pakistan
    if i am in my city
    the maps application shows u r 10 km from your city
    but old version give me accurate position...

  • Ps4 problem plz help ASAP

    ps4 can ON got sound can control but no image and also the color on the top is white...

    Sry for my bad english.... I have try other HDMI but still the same problem. The problem is when I turn on the ps4 the LED on top of the ps4 turn from blue to white. Then when it's started there no image the screen is black, but have sound and I can control it with my controller. I also try to plug in my HDMI from my laptop to the TV and there no problem what so ever.. Plz help :<

Maybe you are looking for