java.io.IOException: Cannot run program "C:/Program Files/Java/jdk1.6.0\bin\java " (in directory "C:\Sun\AppServer\domains\domain1\config"): CreateProcess error= 193, %1 is not a valid Win32 application

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
Expert tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Solutions on the web

via Oracle Community by 807581, 1 year ago
Cannot run program "C:/Program Files/Java/jdk1.6.0\bin\java " (in directory "C:\Sun\AppServer\domains\domain1\config"): CreateProcess error= 193, %1 is not a valid Win32 application
via Stack Overflow by Unknown author, 2 years ago
Cannot run program "screen -h 5000 -dmS BF1 java -Xmx1024M -jar spigot.jar -p 20000" (in directory "/home/cloud/bedfight/BF1"): error=2, No such file or directory
via Google Groups by Muthu, 2 years ago
Cannot run program "java": error=2, No such file or directory
via Google Groups by Muthu, 2 years ago
Cannot run program "java": error=2, No such file or directory
via GitHub by oporkka
, 1 year ago
Cannot run program "C:\Users\Oskari\AppData\Local\Temp\sbt_a8dde3df\simple-app\target\universal\stage\bin\simple-app" (in directory "C:\Users\Oskari\AppData\Local\Temp\sbt_a8dde3df\simple-app\target\universal\stage"): CreateProcess error=193, %1 is not a valid Win32 application
via Coderanch by syruss kumar, 1 year ago
Cannot run program "cmd /c dir": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.executeBackgroundCommand(ASLauncher.java:573)
at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.executeCommand(ASLauncher.java:468)
at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.process(ASLauncher.java:433)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.startInstanceAllJava(PEInstancesManager.java:283)
at com.sun.enterprise.ee.admin.servermgmt.EEDomainsManager.startDomain(EEDomainsManager.java:471)
at com.sun.enterprise.cli.commands.StartDomainCommand.startDomain(StartDomainCommand.java:148)
at com.sun.enterprise.cli.commands.StartDomainCommand.runCommand(StartDomainCommand.java:215)
at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:171)

Users with the same issue

Once, 1 month ago
Once, 3 months ago
3 times, 6 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.