java.io.IOException: Failed to open file:/G:/04%20Kickstart%20My%20Heart.mp3. Error message: The parameter is incorrect.

Coderanch | Peter Dennis | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Calling Desktop.open() on an mp3 file fails

    Coderanch | 8 years ago | Peter Dennis
    java.io.IOException: Failed to open file:/G:/04%20Kickstart%20My%20Heart.mp3. Error message: The parameter is incorrect.
  2. 0

    How to open avi's and mp3's in associated programms

    Oracle Community | 9 years ago | 843807
    java.io.IOException: Failed to open file:/C://mp3/Lightbringer.mp3. Error message: Parameter is wrong.
  3. 0

    Java - Desktop.open() won't open videos or music

    Stack Overflow | 5 years ago | Andy
    java.io.IOException: Failed to open file:/C:/8GB/Bruno%20Mars%20-%20It%20will%20rain.mp3. Error message: Access is denied.</code> (for example) and doesn't open the file, even though it is associated with Windows Media Player!</p> <pre><code>private static void openFileinAssociate(File toOpen){ // Open it using the operating system/environment Desktop environment = Desktop.getDesktop(); if(toOpen.exists()){ if(!toOpen.isDirectory()) try{ environment.open(new File(toOpen.getAbsolutePath())); }catch(Exception ex){ ex.printStackTrace(); JOptionPane.showMessageDialog(null, "An error occured whilst trying to open the file.", applicationName, JOptionPane.ERROR_MESSAGE); } } } </code></pre> <p>AND here is the rest of the stack trace as requested. I can really post anymore of the actual code though, sorry.</p> <pre><code>at sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:77)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why does my java-application fail to find a file on usb?

    Stack Overflow | 4 years ago | Alex B
    java.io.IOException: Failed to open file:/E://Ressources/test.pdf. Error message:The system cannot find the file specified.</p> </blockquote> <pre><code>at sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
  6. 0

    PDF not opening

    Stack Overflow | 5 years ago | Rag
    java.io.IOException: Failed to open file:/C:/Program%20Files%20(x86)/TheatreAudi t/data/AE%20wording.pdf. Error message: Unspecified error</p> <pre><code> at sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:59)

    Root Cause Analysis

    1. java.io.IOException

      Failed to open file:/G:/04%20Kickstart%20My%20Heart.mp3. Error message: The parameter is incorrect.

      at sun.awt.windows.WDesktopPeer.ShellExecute()
    2. Java RT
      WDesktopPeer.open
      1. sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
      2. sun.awt.windows.WDesktopPeer.open(Unknown Source)
      2 frames