Making a program that depends on another program

What would I have to do to make a simple program to lets say just type in the phrase "Hello" into another program such as for instance an AOL IM or into a game chat? If anyone could help me that would be great. Thanks.

Sounds like what you're doing will require native code.
One program can execute another with Runtime.exec(), or communicate with another using sockets, but you can't just randomly type text into other programs from your Java application.

Similar Messages

  • Can't load a library that depends on another

    I built a library and it loaded perfectly (just for testing).
    Now, my library is supposed use ALSA's API.
    Now, I get to compile my library, just like before, but now I can't load the library. I get a UnsatisfiedLinkError. The message is a little cryptic: Can't load IA 32-bit .so on a IA 32-bit platform
    It seems like when my library is being loaded, the alsa library on which it depends (libalsa09.so) can't be loaded. How can I avoid this? I added both my library's and alsa's directories to LD_LIBRARY_PATH, but I just can't get it done.
    Here's what happens:
    $ LD_LIBRARY_PATH=/usr/lib/ao/plugins-2:lib java -cp bin wmagic.basic.Wave 440
    Can't load library wmagic_alsa
    java.lang.UnsatisfiedLinkError: /home/antoranz/eclipse/europa/workspace/wmagic/lib/libwmagic_alsa.so: Can't load IA 32-bit .so on a IA 32-bit platform
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at wmagic.basic.SoundOutput.initializeAlsa(SoundOutput.java:87)
            at wmagic.basic.SoundOutput.<init>(SoundOutput.java:29)
            at wmagic.basic.Wave.main(Wave.java:61)Maybe the problem is the way I'm creating my jni so (in an ant target):
    <echo>Compiling Library</echo>
    <exec executable="${Ccompiler}">
         <arg value="-o"/>
         <arg value="${library.dir}/libwmagic_alsa.so" />
         <arg value="-shared" />
         <arg value="-I${source.dir}/wmagic/alsa" />
         <arg value="-I${jni.includes.dir}" />
         <arg value="-I${jni.includes.dir}/linux" />
         <arg value="-lalsa09" />
         <arg value="-L/usr/lib/ao/plugins-2" />
         <arg value="${source.dir}/wmagic/alsa/wmagic_alsa.c" />
         <arg value="-static" />
         <arg value="-lc" />
    </exec>How can I get it to work? I'm catching the exception and using Java Sound as a fall back, but I want to use alsa (and that's another thread in the forums: How to use alsa's default device in Java Sound... but nobody has told me how to... so don't go down that path, please. :-)).

    If you are linking to a shared library then one of the following must be true.
    1. The shared library must be in the shared library path of the OS
    2. You must explicitly load the shared library first using an explicit path.

  • How can I submit a form that depends on another form?

    Hello,
    I have a jsp with 2 different forms. The one is a Login form and the other one does some calculations.
    In my servlet I want to be able to proceed with the calculation form (when I click submit) only if someone is logged in.
    How can I do that? Any suggestions please?

    Actually what I did is when I submit the calculation form in my servlet I am requesting the login bean ( this is where I store the username and password if a customer logs in, plus a boolean variable to keep track if someone is logged in or not) like that:
    Login login = (Login)session.getAttribute("login");
    But I want somehow to get the Bean boolen variable and check if it is true or false, but I don't know how to do it. I did the following and it didn't work:
    //create a new boolean variable to store the Bean boolean
    boolean checkLoggedIn = request.getIsLogged();
    Any suggestions?

  • Error on smart playlist depending on another smart playlist

    I got iTunes Math synced both at home with my iMac and at work with a PC.
    Here's my issuse:
    I got some smart playlists (A,B and C) that depends on another smart playlist (Z).
    A, B and C that have some rule and between these rules there is "the playlist is Z". Like "song has 5 stars, played at least 10 times and is on playlist Z".
    I come home a day and A, B and C are empty. The depending playlist Z is there but "can't be find". Editing the three smart playlist re-reselecting Z works.
    Back to work, same issue. Playlist Z has same name and same contents both at home and at work but if I edit A B and C to correct the error in one place, I get the error at the other place...

    Thanks for your response, I have created smart playlists for all the different genres, and they update automatcally (live) as I purchase music and the program automatically sorts the songs in alphabetical order and that works fine when I want to listen to a particualr genre. But what I want is to create a smart playlist of all the purchased music sorted first by genre and then alphabetically so that as you listen to the playlist it moves from genre to genre within the same playlist and the tracks are alphabetical within each genre. Do you understand?
    I think it can be done using smart playlist creation I just don't know how.
    Elio

  • Write a program that would schedule another program in background multipul

    Hi All,
              I need to write a program that would schedule another program in background multipul times according to input we provided on different application servers.
    For ex:- In  table FKKVKP, i am having 2.1 millons contract accounts. I need to write a program(A) that should take 5000 contract accounts at a time as a input and schedule another program(B) in background with input of 5000 contract accounts. And program A ,again schedule program B on differrent application servers , till 2.1 millions contract accounts get used.
    Thanx in advance.
    Regards,
    Dilip Kushwah

    hi,
    1) Carry out the recording for the required transaction using SHDB.
    2) Use batch input method to create session this is done by three FMs
    bdc: open_group, bdc_insert, close_group.
    3) A session is created , which can be seen in transaction SM 35.
    4) Use the standard program RSBDCSUB to configure the session created in SM35.
    This way you can achieve your requirement.
    Check this links too for more information
    Batch input [http://help.sap.com/saphelp_nw04/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/content.htm]
    Thanks
    Sharath

  • In Mac OS X, I installed a third party toolbar to Safari which is making the program unusable. How can I uninstall it? It did not have an uninstall option.

    In Mac OS X, I installed a third party toolbar to Safari which is making the program unusable by constantly giving a dropdown box requesting a sign-in to a mail feed. It came from http://WWW.BBshare.com/Products/gtoolbar-for safari
    How can I uninstall the toolbar? It did not come with an uninstall option.

    Instructions for manually uninstaling third party add ons >  Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues

  • What is the  best money making java program?

    what is the best money making java program?
    any of them are in fact very "simple"? - say in fact can be develop by a middle- level programmer.

    public class MoneyMaker {
       public static void main(String[] args) {
          while (true) {
             System.out.println("+-----------------------------------------------+");
             System.out.println("| 10        RESERVE BANK OF INDIA \"93T 872468\"  |");
             System.out.println("|                                               |");
             System.out.println("|   ______                                   10 |");
             System.out.println("|  /      \\             __          ____        |");
             System.out.println("|  |      |        /|  /  \\        /  __\\       |");
             System.out.println("|  |      |         | |    |       0_o  \\\\      |");
             System.out.println("|  |      |         | |    |      /      ||     |");
             System.out.println("|  |      |         |  \\  /       `==    ||     |");
             System.out.println("|  |      |        ===  **         \\    /       |");
             System.out.println("|  |      |                        /\\--/        |");
             System.out.println("|  \\______/                       /______   /\\  |");
             System.out.println("|                                           \\/  |");
             System.out.println("| \"93T 872468\"                                  |");
             System.out.println("+-----------------------------------------------+");
             System.out.println("");
    }

  • [SOLVED] Making a program appearing on all workspaces

    Hi!
    Is it possible to making a program appearing on all available workspaces with Fluxbox?
    Last edited by svanberg (2009-08-06 10:46:17)

    I found the solution here.
    Last edited by svanberg (2009-08-06 10:46:03)

  • I need to know the best, safest way to convert video for Mac.  I just had home movies converted to a DVD format a realize now that I need another step to burn them to my computer.

    I just had home movies converted to a DVD format a realize now that I need another step to burn them to my computer.  This is for a Christmas present!  Help.

    I don't think you need to use a ripper program to read a home movie DVD. Those are primarily for copy-protected commercial DVDs, right?
    I think you just need to transcode the DVD files using a utility like Handbrake, which is free and fast.
    http://handbrake.fr/details.php

  • SQL SERVER AGENT job dependent on another job

    Hi
    I have 2 Sql Server Agent jobs that run on a daily basis.
    One which is run first but is dependant on another job completing.
    The secone runs every 30 mins between 9:00am to 7:00pm.
    If my first Job hasn't run but the 2nd job does start running the 2nd job will fail.
    Is there away with SQL servent agent where if my first Job hasn't run  then don't run the 2nd job?
    Regards

    Hi aivoryuk,
    According to your description, if you set one job is dependent on another job, when the first job does not run or execute failed, then the second job will not run. I recommend you use two steps to instead of this two jobs. In step Advanced page, we can set
    that the first job execute successfully then go to the next step. Or else, it will quit the job and report a failure.
    The other way is that we create new job with the same schedule as the second job , in this job , we can check the first job status with the sp_help_job stored procedure, then you can use sp_start_job to Start
     the second job. For more information, you can review the following post.
    http://social.technet.microsoft.com/Forums/en-US/d5cb4004-02fb-4b41-a321-5197f8105941/sql-server-agent-making-1-job-dependent-on-another?forum=sqltools
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Indicator that says that dependent is court mandated in Infotype 167

    Hi,
    We have some employees where dependents are maintained in infotype 167 for health insurance and that are court mandated. We cannot remove the dependents prior to age 19 (or 23 if a full time college student) without getting something from the court. Obviously if the employee terminates his/her employment, that ends everything.
    We are looking for user exit either in infotype 167 OR in HRBEN0001 tcode so we can provide some Indicator that dependent is court mandated. Any ideas ?
    Niranjan

    Hi Amosha,
    Thanks for your reply. I used PM01 tcode, entered 0106 in 'Infotype no' field, click on 'Enhance IT' tab, selected 'CI include' and pressed 'Create' button. It took me to SE11 with structure name CI_P0106. I added a new field called 'COURT_MANDATED'.
    Then backed out, clicked on 'Include Screen' radiobutton, entered 9999 in field and clicked on 'Create' button. It took me to SE51 with program name ZP010600 and screen 9999. I added this new field 'COURT_MANDATED' in the screen with a checkbox.
    Now I am not sure how to link this screen with main screen infotype 21 and code further. Pl let me know. Pl also note that we cannot enter directly in infotype 0106.
    Niranjan

  • Report parameter startdate has a defaultvalue or a valid value that depends on the report parameter startdate forward dependencies are not valid

    Hi,
    Am trying to develop a report the parameter has an issue, it gives me an error.
    There are 2 parameter (1st is Date range like start and end date and 2nd is Loan number)
    When ever I select date range the Loan number parameter should go blank. If I input a loan number then date range should go blank. 
    What should I do. Please help
    ERROR --report parameter startdate has a defaultvalue or a valid value that depends on the report parameter startdate forward dependencies are not valid

    Hi Kay_MD,
    If there are only two parameters, we can use first parameter charge the second one, but the second one cannot charge the first one in turn. Because parameter forward dependencies are not valid. To achieve your requirement, we can create another parameter
    to control Date_range and Loan_number parameters. For more details, please see:
    Add a parameter named ReportParameter1 with two available values: Date_range and Loan_number.
    Use the following expression as the default value in Date_range parameter:
    =iif(Parameters!ReportParameter.Value="Date_range",1,"") (1 means a useless value)
    Use the following expression as the default value in Loan_number parameter:
    =iif(Parameters!ReportParameter.Value="Loan_number",1,"") (1 means a useless value)
    Please note that the Date_range and Loan_number parameters should enable Allow blank value (“”), and the blank values should also be contained in available values.
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SUGGEST:"Installed as a dependency for another package" -What package?

    When we run "pacman -Qi" and the name of a package, ex: xulrunner (dependency of firefox), in the end, this shows up:
    Install Reason : Installed as a dependency for another package
    My suggestion is that it should show what package was it installed as a dependency of. Let me explain better. In this specific example, in my system, xulrunner was installed as a dependency of firefox, so, according to my suggestion, it should show exactly this:
    Install Reason : Installed as a dependency for another package - firefox
    As you can see in bold, my suggestion adds firefox after showing that it was installed as a dependency.
    I hope a Pacman/Arch Linux developer sees this topic and develop that feature,

    Unlikely, tbh. Feature requests should be posted in the bugtracker.
    Also.. the same pacman -Qi output already provides a 'Required By' which tells you which apps depend on the one you're looking at. Not quite the same, I know, but almost.

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

Maybe you are looking for

  • PS Elements 9 for Macintosh: Crashes on Start Up (after install)

    I've successfully installed Photoshop Elements 9 on my iMac (Intel) running the 10.6.3 and 4GB of RAM. After I go past the "Use as a trial" screen (and I skip the login step), it proceeds to load the app -- but crashes. The Error log contains no appa

  • ITunes wont uninstall or Install.

    When i go to uninstall itunes it isnt in the list of programs that can be uninstalled. And when i downlaod iTunes it runs the installer but when it get to the end of the installation process, i get a message that says that the current version of iTun

  • "Error in message monitoring in runtime workbench"

    Hello All,     I have an error in message monitoring in runtime workbench. We have installed PI7.0 and it should run on port 50000.But it is running on port 50100. Please suggest what are the steps involved to resolve this problem. Thanks and Regards

  • How do I get Powerpoint to terminate from a running VI ?

    I have deveopped a sub vi (see below) to run a power point presentation. Everything works fine except the last step. Although I invoke the method to quit powerpoint, powerpoint does not terminate until I terminate the top level VI that iniatiated the

  • How to Convert Doc or Docx File to HTML?

    Is there any API in java is avilbale to convert doc/docx into HTML?