How to force motherboard to beep via java?

Is there a method that makes the motherboard beep using its built in speaker? I am running in windows xp if thats any help. Thank you

tjacobs01 wrote:
It was back in the good old days, where it still possible to have fun on the internet. After they disabled the <blink> tag, it all went down hill fast.No, all deprecated HTML elements were moved into CSS. It's still available by the CSS text-decoration property.

Similar Messages

  • How to close external files opened via java via java itself?

    hi,
    I am using jdk1.6 so I've used the Desktop Class to run the .bat file for some purposes via java with the open(File f) method. Now, what I want is to close those opened .bat files but had no idea so I would appriciate any help.
    thank you,
    Jay

    Okay, now I've used the ProcessBuilder class for that
    approach. Now I can find the destroy() method in the
    Process class but it didn't help me. Here's how I
    tried:
    public class Main extends JFrame implements
    ActionListener
    Command com;
    public Main()
    super();
    com=new Command(1,this); // this class
    class implements ActionListener and handles the
    actions happening in the Main class.
    a_button.addActionListener(com);
    /* from the Command class the ProcessBuilder is
    der is started returning the instance proc of the
    class Process.*/
    public void windowClosing(WindowEvent evt)
    com.proc.destryo(); //<------ does the API really have a typo in it?
    System.exit(0);
    public void window.....(WindowEvent evt){}....
    }regards,
    Jay

  • How to call business rules scripts via Java API

    Hi
    I have a problem. I have some scripts (business rules in essbase) that can be seen thru Administration Services Console under Business Rules folder. How can I execute these script using Provider Services (via Java API to EssBase interface)?

    hi
    i look too java api sample for "HBR Lounch"
    you can try found example in EAS folder
    C:\Hyperion\AdminServices\AppServer\InstalledApps\Tomcat\5.0.28\eas\webapps\hbrlauncher\MC_LaunchWindow.jsp
    please back, if you will have resolution :)

  • How to insert a new attachment via java code

    Hi everybody,
    I need add a new attachment via java code. I found the service EDIT_RENDITIONS on the Add Attachments page. But this service is not documented. Does somebody have a example how to add attachments?
    Thank you
    Martin

    Martin,
    Try the following code:
    final IdcClientManager clientManager = new IdcClientManager();
    IdcClient client;
    try {
        client = clientManager.createClient(IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);
        final String username = "sysadmin";
        final DataBinder dataBinderReq = client.createBinder();
        ServiceResponse severiceResponse = null;
        dataBinderReq.putLocal("IdcService", "EDIT_RENDITIONS");
        dataBinderReq.putLocal("dID", "1560"); // as integer
        dataBinderReq.putLocal("dDocName", "DEV2_001509"); // as string
        dataBinderReq.putLocal("renditionKeys", "addRendition0"); // as string
        dataBinderReq.putLocal("addRendition0.name", "theFileName");
        dataBinderReq.putLocal("addRendition0.description", "theFileDescription");
        dataBinderReq.putLocal("addRendition0.action", "edit");
        final String fileName = "c:\\test.txt";
        final File file = new File(fileName);
        final TransferFile tf = new TransferFile(file);
        dataBinderReq.addFile("addRendition0.file", tf); // as byte
        severiceResponse = client.sendRequest(new IdcContext(username), dataBinderReq);
        final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder();
        //  DataBinder resultado = severiceResponse.getResponseAsBinder();
        System.out.println(dataBinderResp.toString());
    } catch (final IdcClientException e) {
        System.out.println(e.getMessage());
        e.printStackTrace(System.out);
    Jonathan
    http://jonathanhult.com

  • How to create a logon ticket via Java?

    Hi all,
    I need to create a SAP logon ticket programmatically. Do you have some useful documntations or links?
    Thanks.
    Vito

    try this, may be it will help you.
    Example1.java - call the rfc module 'STFC_CONNECTION' with custom definition
    of function metadata. Please notice, the communication with static
    metadata interface definitions is dangerous. The inconsistencies in the
    interface definitions may cause corrupted data, errors while communication or
    even application crashes. In Example2 you can see, how to avoid these problems.
    Property of SAP AG, Walldorf
    (c) Copyright SAP AG, Walldorf, 2000-2003.
    All rights reserved.
    import com.sap.mw.jco.*;
    Example1 - start a simple call with static metadata definition
    @version 1.0
    @author  SAP AG, Walldorf
    public class Example1 {
      public static void main(String[] argv)
        JCO.Client client = null;
        try {
          // Print the version of the underlying JCO library
          System.out.println("\n\nVersion of the JCO-library:\n" +
    \n" + JCO.getMiddlewareVersion());
          // Create a client connection to a dedicated R/3 system
          client = JCO.createClient( "clientnum",       // SAP client
                                         "JOHN",   // userid
                                         "SMITH",     // password
                                         "EN",        // language
                                         "111.111.11.51", // host name
                                         "00" );      // system number
          // Open the connection
          client.connect();
          // Get the attributes of the connection and print them
          JCO.Attributes attributes = client.getAttributes();
          System.out.println("Connection attributes:\n" +
    \n" + attributes);
          boolean is_backend_unicode = attributes.getPartnerCodepage().equals("4102") ||
                                       attributes.getPartnerCodepage().equals("4103");
          // Create metadata definition of the input parameter list
          JCO.MetaData input_md = new JCO.MetaData("INPUT");
          input_md.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                            -1, 0, null, null, 0, null, null);
          // Create the input parameter list from the metadata object
          JCO.ParameterList input = JCO.createParameterList(input_md);
          // Set the first (and only) input parameter
          input.setValue("This is my first JCo example.", "REQUTEXT");
          // Create metadata definition of the output parameter list
          JCO.MetaData output_md = new JCO.MetaData("OUTPUT");
          // Specify the parameters types of the function will be returned
          output_md.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                             -1, 0, null, null, 0, null, null);
          output_md.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                             -1, 0, null, null, 0, null, null);
          // Create the output parameter list from the metadata object
          JCO.ParameterList output = JCO.createParameterList(output_md);
          // Call the function
          client.execute("STFC_CONNECTION", input, output);
          // Print the result
          System.out.println("The function 'STFC_CONNECTION' returned the following parameters:\n" +
          for (int i = 0; i < output.getFieldCount(); i++) {
              System.out.println("Name: " +  output.getName(i) + " Value: " + output.getString(i));
          }//for
          // All done
          System.out.println("\n\nCongratulations! It worked.");
        catch (Exception ex) {
          System.out.println("Caught an exception: \n" + ex);
        finally {
            // do not forget to close the client connection
            if (client != null) client.disconnect();

  • How to open-up a pdf file to a particular page via java? (file and page number from another program)

    I have created an Access 2003 Form. Data is entered. The data can be viewed once entered in the same form format, with one addition. The addition is a link to another program where we store files. The files stored are pdf documents. Each document is a scanned file (500+ pages). The link can open-up the pdf file. I want the link to open-up the pdf file to a particular page. I will supply the page number from the database.
    I am aware of Adobe Acrobat 7.0 PDF Open Parameters using a URL that specifies the file to be opened plus actions to be performed once the file is openend (i.e. http://example.org/doc.pdf#page=3). However, the 3rd party program transfers a file from a server to the client via java. The file does not go via a web browser. The java code transfer the file directly from the file server to the the client.
    Any idea how to accomplish the task of viewing a particular page with the process flow described?
    I am using Adobe Acrobat 7.0 Professional.

    So you are reading this file in a standalone version of Acrobat? If so then use the PDF Open Parameters /a option via the command line.
    Sabian
    Example:
    C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe /A "zoom=1000=OpenActions" "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Where:
    Path to Acrobat: C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe
    Note: The example starts in the Acrobat application directory
    Switch: /A
    Parameter Syntax: "zoom=1000=OpenActions"
    Path to file: "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Note: The quotes are very important for the syntax to work appropriately.

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • How to make BPEL process to be exposed via java binding?

    How to make a BPEL process itself to be exposed via java binding?

    You can using WSIF. There are a few doc on the internet that explain this here are a few to get you started.
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/juric.html
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/java.htm
    cheers
    James

  • How to access calendar rules via java

    Hi to all,
    We have a process in which we need to set a Timer, but the date must be validated against Calendar Rules. We searched in forums, webs, documentation and we couldn't find a way to do this.
    I know it is possible to set an expiration date based on Business Calendar on a Human Task (deadline tab in Human task editor), but this is not what we need.
    We actually need a way to set a variable date in the process that can handle only business days. e.g.: 'now' + 2 business days.
    Right now we are setting the Timers with this expression from a Business Rule: Duration.from string("PT48H")
    Then I associate the business rule output with a Time type variable(deadlineTime) doing: 'now' + deadlineTime
    So right after that I can use the Time variable on a timer attached to the human tasks I need. * We need to use business rules because the customer may want to change the times accordingly to their needs through BPM Composer. *
    The problem is that this solution does not take into account Saturday and Sundays (holidays are a concern too).
    We need to set the expiration time to timers attached to human tasks, but the time should consider working days only. We consulted with experts from Oracle and told us that functionality is available in the PS 6 version. At the moment it is impossible to migrate to that version. I need to know how to access via Java APIs to the calendar rules for checking programmatically.
    JDeveloper version: 11.1.1.6
    Any suggestion?
    Thanks in advance
    Marcelo

    Hi Yarner,
    Once you have all your dll included in a jar and used the nativelib tag, you have to use, at the beginning of you application, the command System.loadLibrary to load all the dll you need. Including the ones called by the others you have direct access.
    The dll�s have to be explicitly loaded in the order they are called.
    For example: you use lib1.dll and lib2.dll. The lib1.dll needs lib0.dll.
    Even if you don't use lib0.dll directly, once its called by lib1.dll you have to put then in the order.
    System.loadLibrary("lib0.dll");
    System.loadLibrary("lib1.dll");
    System.loadLibrary("lib2.dll");
    I hope it may help you, good luck.
    Mario

  • How to invoke ant via java

    Hi.
    My application has a gui. Now, when a button in the gui is invoked, its action should invoke Ant build which is existing , so that the build.xml will
    do what is necessary.
    How can I do it? That is, how to call the Ant via java? can anybody help me
    Thanks in advance

    Search the ant documentation for a Launcher class.

  • How to call Jakarta Ant via JAVA?

    Hi.
    My application has a new menu. This menu creates a build.xml Ant file.
    Now, when this menu is invoked , its action should call
    Jakarta Ant, after creating the xml file, so that the build.xml will
    do what is necessary.
    How can I do it? That is, how to call the Ant via java?
    Is there any way to use an Ant object?
    Thanks?
    Rodrigo Pimenta Carvalho.

    There is a slight problem in that
    PorjectHelper.configureProject is deprecated, but
    that is what Main calls...maybe someone else will
    complete this thread with an alternative call.The javadoc recommends using the non static method parse() instead. This is available by implementing class ProjectHelperImpl. An alternative to the code above might look like this:
            Project ant = new Project();
            ProjectHelper helper = new ProjectHelperImpl();
            ant.init();
            helper.parse(ant, new File("build.xml"));
            ant.executeTarget("clean");you might also want to add a logger so you can see the output of events generated by ant. The DefaultLogger class would be used like this. Simply add the code before you call the ant.init().
            DefaultLogger log = new DefaultLogger();
            log.setErrorPrintStream(System.err);
            log.setOutputPrintStream(System.out);
            log.setMessageOutputLevel(Project.MSG_INFO);
            ant.addBuildListener(log);

  • How to force OTT generating java?

    I've read in an Oracle white paper that Oracle has an Object Type Translator (ott) utility that creates java objects from object type definitions in the database. In my installations of Oracle 8.1.7 and 9.2i my ott utility only supports output of C structures (though in ott.exe present such strings as "public void...", "throws SQLException..."). Does anyone know how to force ott.exe generating java sources?

    OTT can generate C structures or C++ classes from object definitions. You should look at JPublisher for Java classes.

  • How to force OTT generating  java objects?

    I've read in an Oracle white paper that Oracle has an Object Type Translator (ott) utility that creates java objects from object type definitions in the database. In my installations of Oracle 8.1.7 and 9.2i my ott utility only supports output of C structures (though in ott.exe present such strings as "public void...", "throws SQLException..."). Does anyone know how to force ott.exe generating java objects?

    OTT can generate C structures or C++ classes from object definitions. You should look at JPublisher for Java classes.

  • How To Force Access Via HTTPS/SSL?

    Forgive me if this question reveals how little I know about SSL, but... ;-)
    What is the standard, best practice way to force a web client (via browser)
    to use HTTPS/SSL? Our configuration is that the clients hit an IIS server
    first, which then uses the WebLogic proxy/forward plug-ins to the WebLogic
    server. The URLs that our clients follow come from an email we send, which
    has https:// on the front. Access seems to stay in https as long as they
    follow our links, but if the client edits the URL and changes https to
    http, the access is now without SSL. How can I restrict access to https
    only, or otherwise make sure they never use non-SSL access?
    Thanks in advance for any explanations or pointers to references, etc.
    -Paul

    Paul,
    You can disable the http port between IIS and weblogic. Configure only the SSL
    connection. That way if any request comes to weblogic as http , it will be rejected.
    Udit
    Paul Hodgetts <[email protected]> wrote:
    Thanks for the reply! What if the web server (the front end IIS server)
    also serves static web pages that are allowed to be accessed without
    HTTPS/SSL? It's primarily the requests forwarded through to JSP/servlets
    on the WebLogic server that must use HTTPS/SSL.
    Thanks,
    -Paul
    Robert Patrick <[email protected]> wrote:
    One way would be to close the HTTP port in your firewall so that non-HTTPS
    traffic cannot reach the web server...
    Paul Hodgetts wrote:
    Forgive me if this question reveals how little I know about SSL,
    but... ;-)
    What is the standard, best practice way to force a web client (viabrowser)
    to use HTTPS/SSL? Our configuration is that the clients hit an IISserver
    first, which then uses the WebLogic proxy/forward plug-ins to theWebLogic
    server. The URLs that our clients follow come from an email we send,which
    has https:// on the front. Access seems to stay in https as long
    as they
    follow our links, but if the client edits the URL and changes httpsto
    http, the access is now without SSL. How can I restrict access tohttps
    only, or otherwise make sure they never use non-SSL access?
    Thanks in advance for any explanations or pointers to references,etc.
    -Paul

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

Maybe you are looking for