Am i too stupid to ask this qn??

that what is the command to execute a windows based application from java???

You have to call Runtime.exec() on the machine where the executable must be execute (pretty obvous, isn't it)?
Since you said the statistical sw resides on the server-side, I guess you should put the exec() call on a server class...
Hope it helps

Similar Messages

  • I feel stupid just asking this, but...

    I'm trying to write a class to extend PrintStream, but no matter what I do my constructor is flagged with the error:
    Cannot resolve symbol
    Symbol: Constructor PrintStream ()
    Location: class java.io.PrintStream
    Here's the code:
    import java.io.PrintStream;
    import java.io.OutputStream;
    public class OutWriter extends PrintStream {
        public static OutWriter writer = new OutWriter();
        private OutWriter() {
            System.setOut(this); //Redirect System.out
        public static OutWriter getInstance() {
            return writer;
        public void print(String text) {
            //Redirect to JTextPane
    }I'm completely confused. Is PrintStream extendable? I'm certain this error is incredibly simple, but I don't see what I'm missing. Any suggestion would be greatly appreciated.

    It gives me the same error. Here's some updated code:
    import java.io.ByteArrayOutputStream;
    import java.io.PrintStream;
    import java.io.OutputStream;
    public class OutWriter extends PrintStream {
        public static OutWriter writer = new OutWriter(new ByteArrayOutputStream());
        private OutWriter(OutputStream out) {
            System.setOut(this); //Redirect System.out
        public static OutWriter getInstance() {
            return writer;
        public void print(String text) {
            //Redirect to JTextPane
    }Do I need to override all of the constructors? I've never had this problem with extending a class before. Very strange...

  • I feel stupid for asking this, but-

    I've made a very simple workflow with Automator that opens up multiple documents (in this case, VectorWorks CAD files) and prints them as PDFs. The problem, if it can be called that, is that I end up having to press the return key three times for each document: Once to confirm that I want to print it, once to confirm the PDF's name and location, and once to save the CAD file before it's closed. The default settings for each prompt are always correct.
    I can't work out how to tell Automator to press return for me. Is the answer likely to be staring me in the face, or do I need to import either an action or an AppleScript from elsewhere? I know nothing about AppleScripts; if I needed to write something like this, assuming it's possible, would it be easy?
    Thanks in advance to anyone who'll shed some light on this for me. It would be nice to be able to do something else instead of being a yes-man for Automator.
    PowerBook G4 (12-inch)   Mac OS X (10.3.9)   256 MB RAM, 867 MHz

    Memento Mori,
    Know need to apologize as you won't find that capability in Automator yet. You have already guessed the work around which is to use AppleScript.
    I am not sure whether VectorWorks CAD has an AppleScript dictionary but even if it doesn't it should be possible. If you prefer an Automator workflow then a "Run AppleScript" action could be created such as below.
    As I don't have access to VectorWorks CAD I am guessing on the name of the application and whether a delay of 2 seconds between each sending of return is enough on your machine. You need to copy this text to a "Run AppleScript" action in Automator. Note that you must replace all of the text and not just that labelled (* Your script goes here *).
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    tell application "System Events"
    tell process "VectorWorks CAD"
    set frontmost to true
    keystroke return
    delay 2
    keystroke return
    delay 2
    keystroke return 
    delay 2
    return input
    end run</pre>

  • All I want is all my contacts on my phone and the same on my iMac, but no, that's too much to ask, instead I get everything doubled up on the phone and everything doubled up (triple in some cases) on the iMac, why does it do this? and more importantly how

    All I want is all my contacts on my phone and the same on my iMac, but no, that's too much to ask, instead I get everything doubled up on the phone and everything doubled up (triple in some cases) on the iMac, why does it do this? and more importantly how can I stop it? Thanks

    Look under system preferences on the mac at what is be controlled?  Look at Mail, Contacts, Calendars.  How many accounts are managing contacts?  Just the cloud? the cloud and gmail? or cloud, gmail, yahoo, and exchange?  If you have more than one contact account, then you will have different contact lists, if John Smith shows up in more than one of your contact lists, you will have multiple entries.
    Pick a contact list that is your master, (I use iCloud), only turn on contact syncing for it.  The same for your phone.  Spend some time on the iCloud webset (www.icloud.com) and work on your contact list there.  Clean it up, remove duplicates, etc...Changes will auto sync back to all your devices.  Life gets much simplier.
    Just remember, if you sync different contacts lists and a large number of people appear in your different lists, then they will appear as duplicates.

  • What is the temperature limit of the finger to work on iPhone touchscreen? I'm asking this, because I've noticed that when my finger gets too warm (about 104oF) the screen of my iPhone 5 doesn't recognize its touch. Thank you.

    What is the temperature limit of the finger to work on iPhone touchscreen? I'm asking this, because I've noticed that when my finger gets too warm (about 104oF) the screen of my iPhone 5 doesn't recognize its touch. Thank you.

    I understood. Emphasizing that this is still a guess, when you touch the screen it compares your fingerprint at that time to the one you originally recorded. The fact that the finger is warmer may have a small effect on the fingerprint making it appear different than the original colder one. Temperature differences cause things to expand and contract and that may be having an effect on the comparison. You could try recording a fingerprint after doing what you are doing and then see if it will be recognized when you do the same thing to log into the phone. I know that prior to iOS 7.1 for a few minutes after I would wash my hands the phone had difficulty recognizing the fingerprint. Don't know if it was temperature or moisture that caused the temporary change induced by the hand washing. That improved with version 7.1 I think.

  • Im sorry to ask this question but am new too the imac world. Should i BUY intigo AV as suggested by apple and my bank has offered me something called Rapport!!! Any advice very much appreciated thanks

    Im sorry to ask this questioon, but am new to apple. Should i as recommended by apple buy and install intigo av, and can anyone advise me on Rapport as offered by the bank free of charge.
    Can anyone tell me how to increase the font size of the menu bar at the top of the desktop screen without changing the display setting.
    Told you I was new

    Kevsmac...
    You do not want Rapport...
    Read a post from one of their representatives > Trusteer's Rapport Software: Apple Support Communities
    If you want to install a/v software, use either ClamXav or Sophos.
    Free Antivirus for Mac - Sophos Anti-Virus for Mac  Edition
    Apple - Downloads - Networking & Security - ClamXav
    Good article here >  Thomas' Corner : Mac Virus Guide

  • Is it too much to ask for Apple to explain the content of the Console?

    I've asked for definitions of terms for years now ... defintions of console terms and phrases such as the following example, each of which may well relate, in terms of the components and the Consoles ref to their "loading", to the ongoing, sophistcated penentration that manages to deinstall my ESET firewall and screw up desktop components across the board. None of third-party malware products have ever found a "threat" on my system, but the malicious activity continues. '
    Unfortunately Apple long ago decided against helping their customers with the UNIX-based Mac, pretending to the world that new OS X Macs were as simple use as System 9 Macs, and just as secure. LOL. What a lie.  
    Apple exploits its reputation for not documenting its products by continuing to not document their products. Apple also continues to imply in all sorts of ways that a Mac is the most secure platform on the planet, ignoring the fact that its Firewall is a joke because, among other things, its "safest" setting — Block All Incoming Traffic — lets Bonjour traffic in, as if it or its Windows twin ZeroConfig are safe when in truth Bonjour is a massive back door that is almost impossible to shut off.
    WHY DOESN'T APPLE DEFINE ITS CONSOLE MESSAGES, ESPECIALLY THOSE REPORTING ON COMPONENTS THAT ARE SUPPOSED TO BE DISABLED, SUCH AS ACTIVE DIRECTORY, WHICH HACKERS LIKE TO USE TO SET UP SHAM DHCP SERVERS?
    WHAT DOES THIS MESSAGE MEAN? Plugin "Active Directory", Version "6.5.1", is set to load lazily.
    Since I have the bad luck of being targeted, and since I know Active Directory represents a huge security hole unless it is used in a controlled environment (i.e., and office the infrastracture of which is used by IT staff to secure its at-work network), I know I don't want mdsresponder guiding a sham server through a firewall's "maximum security" setting.
    SO, I SHOUT THIS QUESTION INTO APPLE'S ECHOING VOID: IS IT TOO MUCH TO ASK FOR A DEFINITION FOR: Is set to load lazily"?
    Is there anyone with integrity left at Apple, or did they all leave when Bonjour was introduced?

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

  • Too stupid and/or lazy for anything but Arch?

    Many times during the last 15 years, I made an effort to use GNU/Linux, mostly so-called "beginner-friendly" distributions, as my main operating system but never successfully. There were always some issues that I was too stupid or too lazy to understand and fix. So I kept using Windows and later on Mac OS X.
    While still using Mac OS X, I inexplicably stumbled upon Arch some months ago and gave it a try. I followed the awesome Beginner's Guide to setup Arch on my notebook. For the first time there were no issues I could not resolve. Overall, it was beginner-friendly, transparent and fun. I have been using Arch as my sole operating system since then. Best computing experience ever.
    Recently, I am becoming more and more interested in other GNU/Linux distributions and *BSDs. I tried to find a (desktop) system that:
    1) followed KISS,
    2) (easily) allowed a minimal installation,
    3) was documented for the stupid and/or lazy.
    I looked at Debian but its init system scared me. I looked at Gentoo but its compiling scared me. I looked at Slackware but its documentation scared me.
    I am wondering: Am I unfoundedly scared by either of these? Have I overlooked a system? Or am I just too stupid and/or lazy for anything but Arch?

    it sounds to me like Arch is just the best fit for you
    ...and i can share my own perspective on the matter...
    I've used many many distro's; gentoo (and a few derivatives), Fedora (and a few remixes), Ubuntu (and many of it's derivatives), puppy (and...same goes..), slackware, FreeBSD, PClinuxOS, debian (various versions), etc, etc....
    i haven't found any distribution that i like better than Arch....and i do not 'distro-hop' anymore at all. there is absolutely no point for me to do so...
    So I don't think you're too stupid or lazy for anything but Arch, it's quite the opposite... Arch is simple/easy to use, but does require the user to be somewhat competent, right? - i say this because things can break (although not too often), and the end-user has to be able to do things a little more hands on than some of the so-called 'user-friendly distro's'. we also all tend to be aware of where all config files are, how to edit them, where they are located, etc...the average archer knows the underlying system fairly well, i tend to think.
    Arch also tends to offer some of the advantages of both meta/binary distributions; ie: ubuntu, fedora, etc....while also offering the advantages of source-based distributions; ie: gentoo, yoper, etc.  because it covers both types, you also do away with some of the disadvantages of both types; ie: compiling from source is more often than not as simple as using tools like 'yum' or 'apt-get' (which i suppose could be taken as laziness, but i tend to think it is just a better design), while in say Fedora or Ubuntu, there is more to do, to accomplish the exact same end-result... another example, we also don't have to sit around and wait for the whole system to compile on system upgrades (unless you choose too, using pacbuilder), this to me is a significant advantage over source-based distro's too....
    I feel as an Archer i reap the benefits of all distros, in other ways too. for example, if i want some patch from Ubuntu, or say some software that is found in a PPA - usually i can find it in AUR. i need not bother with adding software sources, or any of that stuff, all i have to do is use 'yaourt -S *pkgname*'... the whole thing is automated, it grabs the source, builds it, installs it and i am done. easy peasy
    then, there is the part, where using the kernel (with the patches i want), is much easier than say Fedora or Ubuntu, etc. I used to have to download and patch everything myself for the most part. but same goes as the example above - now all that it requires it 'yaourt -S *pkgname*'... which is much better, you want to use your applications, not spend your evening patching and compiling everything manually, when you don't have too - right?  I am a tinkerer, but i still try to take the most sensible approach, ya know...?
    then, as someone else pointed out. We have some of the best documentation available in ArchWiki - this is why i switched to Arch in the first place. i had been using ArchWiki with other distributions for a long time. it got to the point, that i started to realize that maybe Arch as a better fit for me...and the wiki showed me some of the other advantages of using Arch over other distros...
    anyway, that's my 2 cents on the matter
    cheerz

  • Would it be too much to ask for Firefox to ignore the "www" when sorting history by site?

    Like it says in the topic question. Would it be too much to ask for Firefox to ignore the "www" when sorting history by site? IE ignores the "www", but not Firefox. It's a real pain to have to look in two places rather than one for a site I previously visited.
    Other than that my migration to FF has been great.

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

  • Is it too much to ask from apple, an option for different volumes levels from different apps, including alarm, text, email, basically from every posible app?

    Is it too much to ask from apple, an option for different volumes levels from different apps, including alarm, text, email, basically from every posible app?

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Deleting All Emails all at once, I just am too stupid to find it

    I hope somebody can tell me I'm a dunce who has totally missed something obvious. I get over 50 emails a day. I have to delete them ONE AT A TIME! Then they go to trash and I HAVE TO DELETE THEM ONE AT A TIME AGAIN! I know there has to be a better way, I am just too stupid to find it. This is so irritating, I'm considering turning off the email unless I'm out of town or something. How do you empty the inbox ALL AT ONCE!?! Or at least the trash ALL AT ONCE??!!
    If by some weird fact of programming blind idiocy, there is no way to do the most basic thing I am talking about, which is common to every phone email system on earth, would the wise programmers at Apple do an update tomorrow so that we can EMPTY THE INBOX IN ONE MOVE, PLEASE!!!!

    A POP account is designed to be accessed with an email client such as Apple's Mail application on one computer or device only.
    New messages received at the incoming mail server for a POP account are downloaded by the email client used to access the account with an option to remove messages from the server after being downloaded. Sent messages with a POP account using an email client cannot be stored on the server.
    An IMAP account is designed to be accessed with an email client on multiple computers or devices with the ability to store all account mailboxes on the server - the account's Drafts, Sent, Trash and Junk mailboxes with each email client used to access the account and the ability to create additional server stored mailboxes with the email client used to access the account - with the exception of the iPhone's email client. You cannot create additional server stored mailboxes from the iPhone's email client but any additional server stored mailboxes created with the email client used on your computer to access the account will become available with the iPhone's email client automatically.
    All messages with an IMAP account remain on the server until deleted from the server - there is no setting to remove messages from the server when received by the email client used to access the account. All server stored mailboxes are synchronized with the server automatically with the email client used to access the account.
    Receive a new message with the email client used on your computer and read the message, when checking the account with the iPhone's email client, that message will be available in the account's Inbox mailbox and will be marked as already being read since the account's Inbox mailbox stored on the server is kept synchronized with the server automatically. Delete a message from the account's Inbox mailbox with the email client used on your computer and this message will not be available when checking the account with the iPhone's email client. Send a message with the email client used on your computer and the sent message will be available in the account's Sent mailbox with the iPhone's email client automatically and vice-versa for all.
    If you are accessing an IMAP account, instead of deleting all messages from the account's Inbox mailbox with the iPhone's email client one at a time, you can delete all from the account's Inbox mailbox with the email client used to access the account on your computer and all messages will be automatically removed from the account's Inbox mailbox with the iPhone's email client since all server stored mailboxes are kept synchronized with the server with the email client used to access the account.
    Someone has a desktop at their office and a laptop when traveling or when away from the office or in your situation accessing the account with your computer's email client and with the iPhone's email client. An IMAP account provides for keeping all account mailboxes synchronized automatically between multiple computers or devices to access the account.

  • I need to input text from PC to iPad with large font size. Too much to ask?

    Works well with PC to PC using just software likge Windows Live Messenger, but not with iPad because I haven't seen a Messenger app for iPad that can display large fonts or has custom font size option. They all use small font size that can't be changed.
    I've also tried many VNC apps by writing the text in my PC to notepad and using the VNC to display the large text for iPad. Probelm is VNC's wont work well with 3G.
    Is this really too much to ask from iPad?
    If some app developer reads this, I'll buy an app for 50$ that has white background and can receive text sent from PC with custom font sizes. Doesn't have to have any other features. Just receive text from PC using the existing IM softwares like Windows Live etc or simple custom software.

    I was wondering if you could help me out with my current situation. It seems like it is similar to your previous I/O delima. I think I might have to parse the data, but i dont know how to do that yet. I basically have to put the information from one text file into a database, and it is formatted in one way, and i need to format it a different way that SQL statements can read. Here are 2 entries of about 12,000 that i have in one text file:
    1
    UI - 4
    TI - 117-28
    Y2 - -32676
    RP - NOT IN FILE
    SO - <None Specified> -1 ;():
    2
    UI - 11721
    TI - The mechanism of genetic recombination in Escherichia coli.
    MH - mechanism
    MH - recombination
    MH - Escherichia coli
    RP - NOT IN FILE
    SO - Cold Spring Harb Symp Quant Biol 1953 ;18():75-93
    This is only 2 of the records, You notice that the record number is first, followed by another field ex. (UI), which then the data stored in that field are after the "-"
    Thanks for your help

  • Hi, Since updating to 10.7.2 I cannot make any changes to my web site. I just keep getting the same stupid message asking if I have an account even though I am already logged in. Any thoughts. Thanks

    Hi, Since updating to 10.7.2 I cannot make any changes to my web site. I just keep getting the same stupid message asking if I have an account even though I am already logged in. Any thoughts. Thanks

    Go and log out of your MobileMe account and then try logging back in again with a dummy username and password.  This can help clear it and then just log back in again with your normal username and password.
    Note though that iWeb does not require a password or username to use it - this is MobileMe.
    Also, start thinking about MobileMe alternatives before you are forced to in June.

  • I want to use my apple TV as a second monitor not a mirrored one, in other words, I want to use my TV as a second screen not a copy of my first screen,other people have asked this question but have been given mirroring answers. I want a second display.

    I want to use my apple TV as a second monitor not a mirrored one, in other words, I want to use my TV as a second screen not a copy of my first screen,other people have asked this question but have been given mirroring answers so I am spelling it out here very specifically. I want a second display. This should be possible and would be awesome. Anyone know how to do this?

    Nevermind I just installed it to try it and it's awesome, so happy right now, Thanks. All the things I had read about it on third party sites led me to believe it could not do extended desk tops, thanks for your help!

  • I just upgraded my iPad from 4.3.3 to the newest - I think 6.1.3.  I cannot find my photos and videos.  I tried a restore, but after 3 hours, it's timing out.  Pardon my ignorance on asking this question; but is there a way to find my photos?

    I just upgraded my iPad from 4.3.3 to the newest - I think 6.1.3.  I cannot find my photos and videos.  I tried a restore, but after 3 hours, it's timing out.  Pardon my ignorance on asking this question; but is there a way to find my photos?  I do nto care about anythign else.
    Here are the steps I though I took this morning:
    Backup iPad
    Connect to iTunes and downlaod newest version of iTunes and then newest iOS
    restart Vista Laptop
    upgrade to newest iOS
    I knew somethign was wrong when it took about 6 hours to upgrade the iPad
    at the end it errored with this message error (-50), but the upgrade worked
    I was expecting to see all my photos but didn't see them
    I have tried a restore to a back up 2 times.  The first time took 3 hours and just sort of timed out - it kept saying that there was an hour to go
    I tried it again 2 hours ago and same message.
    They are very valuable to me and so now I am panicking
    Your help is much appreciated

    Hi Eric Ferguson,
    Thanks for using Apple Support Communities.
    For troubleshooting on this, take a look at this article:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/ts3694
    Error 13, 14, 35 and 50 (or -50)
    These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
    Put a USB 2.0 hub between the device and the computer.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
    Try to restore from another known-good computer and network.
    Best of luck,
    Mario

Maybe you are looking for

  • Lion 10.7.4 to a previous Lion update

    How do I go from the latest Lion 10.7.4 to the previous Lion update?  This new upgrade makes my computer sluggish.  Every video I watch is extremely slow and makes my computer slow and I work with video.  Thanks, Juan

  • Multiple Unit of Measure (No Fix Conversion Formula)

    Dear All, Cilnet has given me requirement to book the sales document for the particualr product in unit of mesure 'Nos/PC', and the stock is maintained in Base Unit of Measure 'Qtl' (100 Kg = 1 Qtl). Price is also applicable or calculated on the basi

  • Report to the employee list under an org unit for a specific PSA

    Hello Experts, Is there any standard report to see the list of employees belonging to a particular sub org unit under a particular personnel sub area? For eg: There is a company X, and it has got 3 plants in blore, mumbai and chennai. Blore , chennai

  • No way to convert european dsts to utc???

    Hi, is it really true that there is no sql function to convert from cest (central european summer time) to utc or gmt? If so, what's the problem for Oracle? tia Lothar

  • Installation update

    Why am I getting an istalation error? Error message: Instalation fail to update! U44M1P7. This happens when updating PhotoShop CS6! Please help!