How to make internal speaker of a computer system on with a java program

hi experts........
i got a requirement that i have to just make a sound when i get some exception. is this possible to make internal speaker on from a java program? if so please tell me the solution
thanks
Naresh G.

thanks for the solution it is making default
fault beep ....... what if i explicitly neet to put
on internal specker rather than default beep of
windows....You can't. Some systems might not even have speakers. Standard sound output will be done using the sound card.
and tell me some solution .... first let me tell
tell u the situation...
it is a web application , a jsp contains an
ns an input type text...i will give some input in the
text box where i have to play a wave file through
javascript function if that input is wrong...... and
it should happen in a javascript function ....... So go ask in a Javascript forum.

Similar Messages

  • How to make sure that schema name is not included with generated sqls

    How to make sure that schema name is not included with generated sqls with tableadapter wizard.
    What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
    I want
    "Select a,b from t1" ,not "select "a","b" from schema.t1"
    Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
    . I now manually edit XML files of dataset. It works but....
    thanks

    The full hardware :
    Processor Intel core due 3.00 MHz
    RAM:1.5GB
    psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
    HD Disk:160 GB
    But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer??

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to make my HP 5150 to print in color with iMac with 10.9 OS

    How to make my HP 5150 to print in color with iMac with 10.9 OS

    Read the user manual that came w/the printer and/or contact HP Support. 

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • How to make my pixma ip 90 to work wireless with windows 7/64

    how to make my pixma ip 90 to work wireless with windows 7/64 i installed the bu-10 it is authorized but can't make it to print wireless.

    Hi again manny2249,
    If the Bluetooth Settings feature does not appear on the Canon iP90 Setup Utility screen, the Bluetooth unit may not be installed correctly.  We recommend contacting us via one of the support methods listed at the Contact Us link below for assistance with setting up the printer via Bluetooth.
    If this is a time-sensitive matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to Set up the  variables and others to compile and Run Java Programs

    Hello,
    I have just downloaded the jdk1.6.0_07 and jre1.6.0_07 and installed it in C:\Program files\Java in my Windows XP ,So please tell me how to sett up the enviroment variables etc to compile and run Java Programs from Command Prompt.
    thanks

    To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:
    1. Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
    2. Click Advanced > Environment Variables.
    3. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
    C:\Program Files\Java\jdk1.6.0_<version>\bin

  • How to make Internal consignment???

    I define a Storage location on a ship, i want to give stock to this storage location as a consignment stock . So how to make a internal consignment to a Storage location? how to give a consignment stock to a storage location???

    If I understand correctly:
    I think you'll have to do this as a two step process.
    Transfer the stock to the 'Ship' Storage Location e.g. transaction MIGO, movement type 311.
    Transfer the stock to consignment by a reverse e.g. transaction MIGO, Movement Type 412 K (who are you going to specify as Vendor ??).
    Regards,
    Nick

  • How to make mac speak when logging on or waking up

    hi, i was wondring how you make your mac speak to you and say welcome or hello everytime you log on or wake it up.
    if anybody knows, plesae help.
    Thanks!

    A login greeting is simple.  Make a small application with Automator:
    1. Choose Application from the Automator template.
    2. Add one action: Run Shell Script.  In this action, replace cat with say welcome.
    Save the application and store it somewhere.  (The Applications folder is a good choice.)
    Open System Preferences, choose Accounts, then select the account you want to target.  In that account, select Login Items.  Drag your new application to the login item window to create a link to the file.  Close System Preferences.
    Each time that you login to that account, the application will run and the Mac will say "Welcome."   Once it becomes annoying, return to the Login Items to remove the link to your application.
    A spoken wake-up message is trickier, but it can be done.  See these discussions: https://discussions.apple.com/message/3240458 and http://hints.macworld.com/article.php?story=20060908113605812, then get a copy of SleepWatcher, http://www.bernhard-baehr.de/.

  • Need to know how to change internal speaker for 6730b laptop

    how do i change speaker for 6730b hp laptop?

    Hi,
    Page #88 of the following manual will shows you how:
        http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c02030223-1.pdf
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to make Internal Frame on Focus

    Hi All,
    i have an application where in i have a JInternalFrame within in A JFrame.
    Queries:
    1.I want to make JInternalFrame focused,(without clicking on any portoion of Internal Frame) once i run the apllication(java Demo)
    2.i want to fix the JInternal Frame.(Non movable)
    //Demo.java
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;     
    import javax.swing.event.*;     
    import javax.swing.border.*;          
    public class Demo extends JFrame implements ActionListener {
    static JDesktopPane desk;
    String labelstr="Test ";
    JPanel contentpane;
    JLabel titlelabel;
    public Demo() {
              setTitle("Swing Test");
                    contentpane=(JPanel)getContentPane();
                    contentpane.setLayout(new BorderLayout());
                    desk=new JDesktopPane();     
                    desk.setBackground(Color.gray);
                    contentpane.add("Center",desk);
                    titlelabel=new JLabel(labelstr);
                    titlelabel.setForeground(Color.black);
                    titlelabel.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    getContentPane().add(titlelabel,BorderLayout.SOUTH);            
              public void actionPerformed(ActionEvent e) {
                 public static void main(String args[]) {     
                    try  {
                      UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                      //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                     }catch(Exception e) {
                                               System.out.println("Error loading L&F:"+e);     
                                               JOptionPane.showMessageDialog(null,e);
                    JFrame frame=new Demo();
                    frame.setSize(800,600);
                    frame.setVisible(true);
                      InternalFr jif=new InternalFr();
                      jif.start();
                    frame.addWindowListener(new CloseWindow());
           class CloseWindow extends WindowAdapter {
             public void windowClosing(WindowEvent we) {
                 Window w=we.getWindow();
                 w.dispose();
                 System.exit(0);
          }//InternalFr.java
    import java.io.*;
         import java.net.*;
         import java.lang.*;
         import java.awt.*;
         import java.awt.event.*;
         import javax.swing.*;
         import javax.swing.border.*;
         import javax.swing.text.*;
         public class InternalFr extends JInternalFrame {
             JLabel jlName, jlPass;
             static JTextField jtName,jtPass;
                 JButton submit,cancel;
            public InternalFr() {  
              super( "InternalFr");
              Icon img=new ImageIcon("Neticon.gif");
              setFrameIcon(img);
              JPanel contentpane=(JPanel)getContentPane();
               contentpane.setLayout(null);
              JPanel mainpanel=new JPanel();
              mainpanel.setLayout(null);
              mainpanel.setBounds(0,0,290,180);
              jlName=new JLabel("Username   :");
              jlName.setBounds(20,20,180,20);
              jlName.setForeground(Color.black);
              jtName=new JTextField();
              jtName.setBounds(150,20,100,20);
              mainpanel.add(jtName);
              mainpanel.add(jlName);
              jlPass=new JLabel("Password   :");
              jlPass.setBounds(20,50,180,20);
              jlPass.setForeground(Color.black);
              jtPass=new JTextField();
              jtPass.setBounds(150,50,100,20);
              mainpanel.add(jlPass);
              mainpanel.add(jtPass);
              JPanel buttonpanel=new JPanel();
              buttonpanel.setLayout(null);
              buttonpanel.setBounds(30,90,215,30);
              buttonpanel.setBorder(new EtchedBorder(EtchedBorder.RAISED));
              submit=new JButton("Submit");
              submit.setMnemonic('O');
              submit.setBounds(5,5,100,20);
              buttonpanel.add(submit);
              submit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                 if(ae.getSource()==submit)  {
            cancel=new JButton("Cancel");
              cancel.setMnemonic('C');
              cancel.setBounds(110,5,100,20);
              buttonpanel.add(cancel);
              cancel.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent ae) {
                      Object obj=ae.getSource();
                     if(obj==cancel){
                          System.exit(0);
           contentpane.add(buttonpanel);
           contentpane.add(mainpanel);
        public void start()  {
             InternalFr at=new InternalFr();
             at.setSize(290,180);
            at.setLocation(220,150);
            at.setVisible(true);
            Demo.desk.add(at);
      }Thanks
    Mohan

    To give focus to an internal frame, do the following (where iFrame is your internal frame):try {
        iFrame.setIcon( false );  // In case it is minimized
        iFrame.moveToFront();     // Make sure it is in front
        iFrame.requestFocus();    // Ask for focus
        iFrame.setSelected( true );  // Select it
    } catch( java.beans.PropertyVetoException pve ) {
    }

  • How to clean internal speaker of ipad2

    Hi.. Can any one please help to solve the internal speaker problem..of my ipad2.. No sound without headset or external speaker... Please help me.. Thanks in advance..

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • How to make a single payment for different open  items with same due date

    Hi,
    I have created a payment method  and selected "Payment per due day " option in payment method company code settings.
    Even I have selected that option, Payment will not happen grouping for the items with same due date
    for ex : I have two open items with one due date and another open item with another due date so when I am trying performing F110 system should make a single payment for the item with same due date and seperate payment for another item.
    But system making single payment for all items
    Could you please suggest anything how to make a seperate payment with due date.
    Regards
    VK GUPTA

    Hi,
    Please check Vendor Master data: FK02 ->company code data -> Payment transaction accounting: unflag 'individual payment'.
    Make a test and let me know if it's okay.
    regards

  • How to make a multiple request without waiting for a response in java ?

    A more specific question:
    how to make a multiple HTTP request without waiting for a HTTP response in java (using httpURLConnection)?
    Thanks

    Thanks for responding.
    But i want to make further request to the same resource URL. I want to reuse the connection, don't want to create a new connection for each of individual request.
    How can i do that using HttpURLConnection ?
    Thanks.

  • NewBie Q : How to make one clickable shape jump to a slide with the same name of the shape (button c_1 to slide c_1 f.e.) .

    I made some clickable placeholders on a masterslide
    Then : a new slide based on that masterslide
    and want to use one script or shared  action that says "on success jump to another slide with te samen name as the button...)
    Sorry for this unusual semantic language.
    But already thanks for answering!
    Lucas
    PS I'm using a trial version to try out a branched interactive scenario. A choice of a user leads tot anothe slide with a video reaction followed by other choices,...)

    Sorry, but I'm not a native English speaker, and I have some problems with your question.
    The only interactive object that is possible on a master slide is a shape button. What do you mean by a 'clickable placeholder'?  Why I like Shape Buttons - Captivate 6! - Captivate blog  explains possibilities with shape buttons.  Maybe the idea to have such a shape button on a master slide is not the best, because you cannot control objects on master slides since they do not have an ID. You cannot give a name to a shape button on the master slide, which means the scenario you are talking about is just impossible?
    Moreover: Captivate doesn't like to have the same name/label to be used for different objects. There are some exceptions, you can have an advanced action with the same name as the interactive object that is triggering that action, provided you label first the interactive object before labeling the action. With  "script" you probably mean an advanced action?
    If you tried to explain what you want to do as detailed as possible, maybe I could propose something. You'll see that my blog is focussed on advanced and shared actions. One other puzzling sentence is 'same name as the button'? Are you really talking about the name of the button or about the label ON the button?

Maybe you are looking for