Why cant I  Runtime.exec(file.getAbsolutePath())  ???

I want to run custom file (not directory!) using Runtime.exec() (or you know other way? :) )
Here is what i get::
java.io.IOException: CreateProcess: C:\Documents and Settings\Sugar.SERVER\jbproject\test\theFileICannotOpen.txt error=2
     at java.lang.Win32Process.create(Native Method)
     at java.lang.Win32Process.<init>(Win32Process.java:66)
     at java.lang.Runtime.execInternal(Native Method)
     at java.lang.Runtime.exec(Runtime.java:566)
     at java.lang.Runtime.exec(Runtime.java:428)
     at java.lang.Runtime.exec(Runtime.java:364)
     at java.lang.Runtime.exec(Runtime.java:326)
     at NotWorkingRuntimeClass.main(NotWorkingRuntimeClass.java:27)P.S. 1) the file i want to open EXISTS.
2) I can get also the 193 error code.
P.P.S. It WORKS on *.exe files. How to make all type-files to open? (allow the system to decide which application to use for opening the fie, of course...)
Please help!
THANK YOU!!!

Well, then i've got another question.
How to open the specified file using the system's default program for such file types?
Thanks again, Boris.

Similar Messages

  • Why cant i play wmv files in quick time x?

    why cant i play wmv files on quick time x?

    http://www.telestream.net/flip4mac-wmv/overview.htm
    They suggest QuickTime Player 7.6.6

  • Why cant I preview Project files in Outlook 2013 ?

    Why cant I preview Project files in Outlook 2013 ?

    Hello,
    Because there is no Outlook previewer available for MPP files. Typically Outlook only has previewers for default office applications.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Why cant i copy my files from my computer?

    why cant i copy my files from my computer?

    What happens when you try, how are you doing it, and what are the files (music, films, documents ...) ?
    If you are trying to copy documents then you first need an app on the iPad that supports the type of file that you want to copy to it - the iPad doesn't have a file system like a 'normal' computer, everything has to be associated with an app. As to how you then get the file to your chosen app will depend upon what the app supports - different apps will have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc.
    If you are trying to copy music or films then are you using your computer's iTunes ?
    Syncing music : http://support.apple.com/kb/HT1351

  • Why cant I delete local files when in ftp is there move command...

    why cant I delete local files when in ftp... is there a move command in FTP...

    Ignore the post by Thomasjomson1234 if it is still visible. He is a spammer attempting to phish information.

  • Why cant i transfer raw files from my panasonic g3

    why cant itransfer raw files from my panasonic g3

    tony groves wrote:
    why cant itransfer raw files from my panasonic g3
    It could be because your camera must be relatively new model for the PSE you are currently using.  Do you get any error messages when you try to transfer your photos?
    For unsupported cameras there are essentially 3 ways to deal:
    1) Upgrade PSE 10 the latest version (version 11) if at all possible;
    2) Use the software that might have come with the camera;
    3) Use Adobe's DNG converter and watch this video to learn how to use it:
    <http://www.youtube.com/watch?v=0bqGovpuihw>
    G/L

  • HT204382 why cant i play wmv files?

    I cant play certain wmv files. Why not?

    Download and install Flip4Mac WMV Player for Free from the internet:
         http://download.cnet.com/Flip4Mac-WMV-Player/3000-13632_4-87679.html
    Hope this helps

  • Why cant I open raw files in photoshop CS6

    I just downloaded photoshop but cant open raw files in CS6 with my nikon D600

    You may want to check out this thread, which deals with problems opening RAW files from a D600.

  • Why cant i open pdf files with adobe on my phone?

    Why can't I open PDF files on my phone if I have adobe installed?

    I can't open on sasung galaxy tab2, used too ut now can't

  • Why cant i switch my file to a PDF file on INDESIGN?

    Im in a Computer Design class where we had to create a story board and the professor asked us to change our file into the smallest file size and make them into spreads. I have 109 pages and i did what i usually did by going into Adobe Presets and switching everything. But this time around, it notified me that the file has failed to export it into a PDF file. Can anyone give me some suggestions?

    Sure. First off, as you are clearly a beginner and this is your first post: learn the lingo. "What are elements, methods, and functions in InDesign called?" It seems a strange thing to ask from a (beginning) designer, but what if you want to draw a plane with semi-circular junctions? (That's a rectangle with rounded corners in ID.)
    Any particular reason you chose the scripting forum to post in? "Scripting" is writing lil' programs that can repeat tasks in ID.
    "Switch a file to PDF" -- nah. "Export to PDF". In fact, I'm surprised you din't call it that way because you used the Export function before...
    "i did what i usually did by going into Adobe Presets and switching everything" -- fah. A preset is just that -- a preset. ID has loads of them. You must mean the PDF presets; and there is a preset called 'Smallest file' (something like that).
    As for the actual problem, I have no idea. A quick google, though, using the exact phrase "indesign failed to export pdf" returns some 10,000 hits, and the first one http://hellbox.org/archives/000497.html is an interesting story just to read. Besides, it also mentions a few reasons why export may fail.

  • Hi why are my photos after downloading twice ,once in photo library and once in a file with the date why cant i delete a file its an iphone 4s please help

    why are my photos after downloadon twice one as photo library the other as a file with date how can i delete one file same pics

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • Why cant I view adobe files but must save first

    When downloading pdf files on the internet In Adobe X1 I have to save these before I can view them. Why has this changed from privious versions.

    Hi Pat thanks a mil for the quick response
    OS is Win 7 32 bit SP 1, browser is Firefox 3.6.25
    Cheers Starman202

  • Why cant I see all files on my Mac?

    I dont really need to delve into the OS...
    But I need to access a directory called Libraries under Applications (I think that's where it is and called)
    Finder doesn't show
    Why?
    How can I access?
    Do I have to use Terminal or something?
    And... why is it protected?
    Thanks
    Omar    

    omar.m wrote:
    @murrae, thanks for the reply
    what else is hidden apart from the library?
    thanks
    By default, many, many files are hidden. In your own user folder, for example, you probably have quite a few whose names begin with a period (e.g., .profile, .MacOSX). There are a huge number outside Users, up at the root level, e.g., whole folder trees of syste files with top-level folders bin, opt, sbin, usr). And they are hidden so that the user does not inadvertently mess up the system.
    It's easy to toggle between revealing all such hidden files and hiding them. Various free utilities are available that do so with a quick click of a button. Or one can use a Terminal command; see:
    https://discussions.apple.com/message/23522493#23522493

  • Why cant I see all files on my SD card?

    On my old PC I just connected my Nikon camera and transfered my pictures and the deleted on the camera SD card. On my Mac that seems impossible. First of all its not possible to connect(USB) the camera. That is possible to solve by just entering the SD card directly to the Mac. The next issue though is that I cant see all files. When I have deleted the pictures some kind of files are still on the card meaning there isnt a full memory space left. Again, on the PC this is clera but on the Mac I cant see the files. Can somebody help me?

    Well, a card always has a very small portion for its own system on it. And, deleting the cards on the computer is not the best idea - it may work for some time, but it is best to format the card in the camera (which erases it). After you drag the pictures to the trash and empty it, what exactly is left on the card? Can you post a screenshot of the remaining file(s) please.

  • Why Cant I open NEF files In Photoshop CS3?

    I bought a Nikon D7000 and can not open the Raw files (NEF) I did not have this problem with my Pentax and DNG files. I can not seem to find Camera Raw either. Any help would be great!

    And you'll find links to the Mac and Windows downloads of DNG Converter about half way down page http://www.adobe.com/products/photoshop/extend.displayTab2.html

Maybe you are looking for