IOException at the end of installation with the latest JDK version (7u25)

36 views
Skip to first unread message

Albin Carpentier

unread,
Jul 30, 2013, 8:40:50 AM7/30/13
to izpac...@googlegroups.com
Hi,

I'm using IZPack 4.3.5, with the latest JDK version (7u25) on windows.
I have this stack when I use the installer with the command line (java -jar installer.jar) when java is installed in a folder containing spaces:
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:1041)
        at java.lang.Runtime.exec(Runtime.java:617)
        at java.lang.Runtime.exec(Runtime.java:450)
        at java.lang.Runtime.exec(Runtime.java:347)
        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$100(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:724)
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:376)
        at java.lang.ProcessImpl.start(ProcessImpl.java:136)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
        ... 13 more

I didn't find this issue in your Jira, do you plan to fix it?

Thanks,
Albin Carpentier

Albin Carpentier

unread,
Jul 30, 2013, 9:00:59 AM7/30/13
to izpac...@googlegroups.com
I forget to add the link on the JDK release note that explain the modification of Runtime.exec: http://www.oracle.com/technetwork/java/javase/7u25-relnotes-1955741.html#jruntime
You must now use Runtime.exec(String[]) instead of Runtime.exec(String).

Regards,
Albin Carpentier
Reply all
Reply to author
Forward
0 new messages