Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-11110

Installer throws IOException when using default oracle jdk installation location

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • EAP_EWP 5.3.0.GA
    • EAP_EWP 5.3.0.ER3
    • Installer
    • None
    • Windows

    • Not Required
    • NEW

    Description

      Default JDK location for Oracle JDK is C:\Program Files\Java\jdk1.6.0_45 (C:\Program Files (x86)\Java\jdk1.6.0_45). If I run the installer with JAVA_HOME pointing to this location, installer throws IOExceptions at the end of installation, and during uninstallation.

      Reproduce:
      - use default java location (C:\Program Files\Java\jdk1.6.0_45 || C:\Program Files (x86)\Java\jdk1.6.0_45)
      - run installation
      - see at the end of installation

      java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
              at java.lang.Runtime.exec(Runtime.java:593)
              at java.lang.Runtime.exec(Runtime.java:431)
              at java.lang.Runtime.exec(Runtime.java:328)
              at com.izforge.izpack.util.LibraryRemover.initJavaExec(Unknown Source)
              at com.izforge.izpack.util.LibraryRemover.<init>(Unknown Source)
              at com.izforge.izpack.util.LibraryRemover.invoke(Unknown Source)
              at com.izforge.izpack.util.Librarian.cleanUp(Unknown Source)
              at com.izforge.izpack.util.Housekeeper.shutDown(Unknown Source)
              at com.izforge.izpack.installer.InstallerFrame.exit(Unknown Source)
              at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(Unknown Source)
              at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$300(Unknown Source)
              at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(Unknown Source)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:177)
              at java.lang.ProcessImpl.start(ProcessImpl.java:28)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
              ... 13 more
      

      - uninstall EAP

      C:\workspace>java -jar EnterprisePlatform-5.3.0\Uninstaller\uninstaller.jar -console
       Force the deletion of c:\workspace\EnterprisePlatform-5.3.0 [y/n] y
      

      - another IOException will occurs, gui uninstaller in launched

      C:\workspace>java -jar EnterprisePlatform-5.3.0\Uninstaller\uninstaller.jar -console
       Force the deletion of c:\workspace\EnterprisePlatform-5.3.0 [y/n] y
      Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
      java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
              at java.lang.Runtime.exec(Runtime.java:593)
              at java.lang.Runtime.exec(Runtime.java:431)
              at java.lang.Runtime.exec(Runtime.java:328)
              at com.izforge.izpack.uninstaller.SelfModifier.initJavaExec(Unknown Source)
              at com.izforge.izpack.uninstaller.SelfModifier.<init>(Unknown Source)
              at com.izforge.izpack.uninstaller.Uninstaller.main(Unknown Source)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:177)
              at java.lang.ProcessImpl.start(ProcessImpl.java:28)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
              ... 6 more
      Unable to exec java as a subprocess.
      The uninstall may not fully complete.
      

      Attachments

        Activity

          People

            thauser_jira Thomas Hauser (Inactive)
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: