Why this program cant open file

windows maybe cant parse file path which has space?how to solve it
package subject;
import java.io.IOException;
public class TestOpen{
    public static void main(String[] args){
        try{
           String fileName="C:/Documents and Settings/nj918/.netbeans/3.6/sampledir/readMe.txt";
           Runtime.getRuntime().exec("cmd /c start " + fileName);
           }catch(IOException e){
                System.out.println(e);
}

Try with quotation marks around the path:
Runtime.getRuntime().exec("cmd /c start \"" + fileName + "\"");

Similar Messages

  • In Bridge I cannot find Lightroom as a program to open files. All the other programs like photoshop etc are indicated?

    In Bridge I cannot find Lightroom as a program to open files. All the other programs like photoshop etc are indicated?

    You would go into Preferences > File Type Associations and from the dropdown menu and choose "Browse" to get to Lightroom.
    So yes you can set files that Lightroom supports to open from Bridge into Lightroom.
    But I don't think you'd want to.
    Lightroom is a standalone product for a Photography workflow. Bridge is a manager for Creative suite products like Photoshop, Illustrator, Indesign. Basically web and print design workflows.
    Bridge is not a manager for Lr because Lr has it's own catalog system.
    Lightroom is not a Creative Suite product.
    Bridge does use Adobe Camera Raw to make adjustments, but move those adjusted files into Lr, you have to make a decision whose settings stay.
    This video should explain the difference.
    Adobe Bridge CC vs. Lightroom 5 - Terry White's Tech Blog
    Julieanne Kost also explains using the two together. LR/BR - Working with Lightroom and Adobe Bridge | Adobe Evangelists - Julieanne Kost | Adobe TV
    Gene

  • HT1338 i purchased dvd studio pro and im trying to install it but when i go to click continue it gives me this  "you cant open the application gestalt tool becasue powerpc applications are no longer supported" what does that mean and how can i fix this ?

    i purchased dvd studio pro and im trying to install it but when i go to click continue it gives me this  "you cant open the application gestalt tool becasue powerpc applications are no longer supported" what does that mean and how can i fix this ?

    I note this information from Wikipedia: "DVD Studio Pro was a high-end software tool published by Apple Inc. to allow users to create DVD masters to be sent out for replication at production houses. Its tight integration with other Apple applications allows users to take Final Cut Pro and Motion projects and render them into the DVD format without encoding to intermediary formats. This streamlines the production workflow and reduces overhead."
    If that is your intent, finding a substitute program that will run on your Mac may not be as efficient.  Others can advise you on alternatives, or you can post a new thread specifically with that question.
    BTW: what Mac and what version of OS X?
    If it is important to you to continue to use DVD Studio Pro, consider the option of installing Snow Leopard (with Rosetta) into Parallels on your Mac:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions are here.

  • I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of A

    I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of Adobe InDesign CC (10.1). You must use that version or later to open the file." AARRGGHH! So how do I access the file?

    Sounds like you opened and saved it in CC, so now you need to go back to CC and either complete the project there, or export to IDML to take it back into CS6.

  • Why can I not open files saved on a server?

    Why can I not open files saved on a server?

    I think I figured it out.  I set the compatibility mode to Windows Server 2008 (which is the OS on the server we are using) and it opened just fine.  Whoop Whoop.  Thanks for your help.
    Lisa

  • Cant open file in photoshop from lightroom

    I installed portraiture yesterday in PS and now for whatever reason I cant open files from lightroom to photoshop?

    Nobody can tell you anything without proper system info or other technical details like exact versions.
    Mylenium

  • Why this program don't work without the "stop"?

    can you tell me why this program don't work without "stop"?and why the "stop" of my program can not work?
    Attachments:
    N(%}QA2R@SOLAF_12~0SQ)A.jpg ‏67 KB

    Crossrulz, sometimes you can snip the URL of the image:
    http://forums.ni.com/ni/attachments/ni/170/823066/1/
    The stop button is checked once in every iteration of the while loop, which includes waiting for the for loop to complete its 9 iteration.
    The for loop takes 9 seconds to complete because of the time delay, therefore clicking the stop button can take upto 18 seconds, depending on whether the button has been read yet.
    Turn on the highlight execution )light bulb icon) to see what is happening in your code
    - Cheers, Ed

  • I have recently had to hand back my work computer having had my email account closed as well. I have opened a new account but having done this I cant open the books I have on my reader that were purchased through my old account, pls help.

    I have recently had to hand back my work computer having had my email account closed as well. I have opened a new account but having done this I cant open the books I have on my reader that were purchased through my old account. How can I open my books on my e reader now? Please help.

    Yes, I guess as the new account I had to open and then reassign my reader
    to purchase more reading material as the new account id has I guess blocked
    my reading of the previously purchased books already saved. Does this make
    sense?

  • When downloading, why do I get a message saying "Safari cant open file because the file has moved since it was downloaded?"  I just attempted to download the file from a website.  Thanks.

    When downloading from a website, I get a message that says, "Safari cant open th file--- because the file has been moved since you downloaded it.  How do I correct this problem.  It wont let me open attachments from yahoo email either.  Thanks.

    EDIT:
    After posting I see this question has the tag of "windows". I don't know if this applies to the Windows version or not.
    The only time I see this message is if I download something, trash it, AND empty the trash. If I don't empty the trash, it finds it there. It will find it wherever I move it to, unless it is was in the trash and emptied.
    Using Finder, is the downloaded file in your Downloads folder?
    Maybe if you go to Safari/Preferences/General and change the location for downloads to something else then change it back to Downloads it might correct it.

  • Cant open file directly on default program

    hi!
    I´m trying to open a .RVT file in a program called Revit, wich is the default program for those files, and now its not working, it says the default program is Revit, but when I try to open the file it opens revit, not the file in revit, so I´ve got to go
    to open/file...etc... and after a while it gets hard finding every file... 
    can you tell me what do I do, I´m assuming I will have to go to *reddit* but after that I dont know...
    thanks!!!

    Hi,
    S.Sengupta's suggestion is worth a try. Also you could try to reset the default program for test:
    Change the program that opens a type of file
    http://windows.microsoft.com/en-in/windows/change-file-open-program#1TC=windows-7
    Karen Hu
    TechNet Community Support

  • Cant open files into PS CC

    I have Adobe Bridge CC as well as Photoshop CC and Windows 8
    Every since I did the switch i cant open my files into CC.
    I,ve gone to preferences and tried to change file type extensions but all i get is an error message that says Windows cannot find C:\program files\adobe\adobe photoshop CS5.1(64bit)photoshop.exe. make sure you typed the name correctly and then try again.
    This happens whether i try and double click or when i click on open with.
    I havent had PS5 for a long long time so not sure why this happening.
    Prior to this i had CE6 and everything worked beautifully,
    How can i get Bridge to open my documents in the correct location?

    What JJMack says, with the additional remark that it's not unusual for me to see the scratch file exceed 200 GB.  I also use Macs, but I don't go beyond Lion 10.7.5.
    Here's some boilerplate text I use in this respect:
    The rule of thumb I follow to figure out scratch space says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I also have 16 GB of RAM installed.
    Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch.

  • Cant open file on my windows 8 laptop

    i am having problems with this computer i have just bought it is brand new i dont know of i have to download a program for this to work but what im having troubles with is when i downloaded a file from my other computer onto this using a flashdrive it says i cant it will say "open" in one box then cancel in another. if i click open it wont open i dont know what wrong please help. ----rise pure

    Hi @RisePure ,
    Welcome to the HP Forums!
    It is a terrific place to find answers and tips!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I grasp that you are unable to open files off a USB from your old computer. 
    Do you have the program that they were created in installed?
    What format are they saved it?
    What type of files are they? ( text, pictures)
    Have you tried opening them in compatibility mode?
    Windows 8 Compatibility Mode from windows.microsoft.com /en-us/windows/answers
    I hope this helped!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Illustrator CS6 cant open files on win 8 machine

    Sats something like "file cant be opened/file cannot be found".
    is doing that on hebrew titled folder, when i change the folder name to english it opens, why ?

    @risepureog ,
    Hello and thank you for posting on the HP support forums.  So that I can help you out with our issue could you please check out the following link.
    Advice for asking the "Very Best Question"
    As well when you post back can you include the file type you are trying to open.  For the most part you need software to open files.  .pdf requires adobe PDF reader.  .doc would require a word processing software like microsoft word.
    It all depends on the file you are trying to open will depend on the software needed.
    Thank you again for posting and have a great day.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • How to change to PS CS6 is not default program to open files.

    I have PSCS4 and trial PSCS6. All my RAW and PSD files open by CS6 by default now. I want PS CS4 open PSD and RAW by default, as it used to, since CS6 is only trial.
    I have Mac Pro, OS X 10.7.4. (Lion)
    I tried to change it this way:
    File - Get info- Open with- change to CS4 - change all (use this application to open all documents like this one). It won't allow me, falls back to PS CS6.
    I can open files by right clicking and chose PSCS4, (indicated as Adobe Photoshop CS4.app (11.0.2(11.0.2x20100519 [20100519.r.592 2010/05/19:02:00:00:00 cutoff; r branch]))
    That arm long name for CS4 appeared after I installed CS6.
    Is there any way to do this on Mac? I cannot find anyplace file and program associations.
    Thanks for help,
    Rose

    Thank you, Dean,
    I tried the RCDefaultApp. It looks great and there is so much what can be changed, from the file extentions ends, program defaults and file types. I guess it works great. ... for other apps.
    But:
    Adobe PS CS6 keeps all files and extentions assigned and grayed out, unaccessible to change or uncheck.
    Therefore when extentions are assigned as default to anoter program or app, nothing happens. It won't allow to chose another program to open it under files tab too.
    It all falls back where it was before, same like with get info panel.
    PS CS6 is grabby program. PS CS4 Bridge now opens CS6 Photoshop, automatically, unless you tell it not to, chose right click CS4, which is pain in the neck, and will be even bigger after the trial expires. I may buy CS6, but not within a month. The period between is going to be troublesome, and making me not want to see CS6 at all, ever. I just hope after I uninstall it it will all fall back to CS4 defaults.
    Thabnks again for your reply.
    Rose

Maybe you are looking for

  • ITunes 10.6.1.7: "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." ?

    Fakt: iTunes 10.6.1.7 Fehlermeldung: "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." Jeder Versuch iTunes zu starten war bisher vergeblich: unter anderem auch das Vorgehen nach Artikel HT1925 der knowledge

  • How do I validate a drop down menu when it's greyed out?

    I have 4 drop down menus for 4 different products with 4 options in each.  The first option is "Choose a Size".  The next three options are what I want to have the user select and I want an error to occur if they leave it as "Choose a Size".  I reali

  • ITunes error 42404 A required iTunes component is not installed.

    Please repair or reinstall Quicktimes. iTunes and library is stored on external hard drive connected to Dell PC Windows XP. I made a shortcut on the desktop. Now all I get is this error message. I have tried uninstalling and reinstalling and repairin

  • How do I save anything to iCloud??

    I have backed up my iphone to icloud hoping that I would be able to access everything on my computer but can't get anything.  How do I save just my contacts to the iCloud and then access them from my computer?  (PS  If you are reading this, Winston C

  • What is sqlcxt and what it does?

    I am having code-> string read_stmt= "some query" strcpy(sqlstmt,read_stmt); struct sqlexd sqlstm; sqlstm.sqlvsn = 12; sqlstm.arrsiz = 1; sqlstm.sqladtp = &sqladt; sqlstm.sqltdsp = &sqltds; sqlstm.stmt = ""; sqlstm.iters = (unsigned int )1; sqlstm.of