Thursday, May 14, 2009

Compiler failed executable.exec

When deploying an application in Weblogic Server 8.1, got the following error :
'Compiler failed executable.exec' .

This error occurs because of the incompatibility with the JDK version used to build the application with the Weblogic's JDK version.

Well i have faced this error not once, not twice but many times. For fixing this error, did the following actions. But note, I can't promise that this would fix your error too. So if you are getting this error, you should definitely give a try, by doing the following

1. Check which jdk you are using to build your application.
For e.g. if it is "jdk142_05".
2. Check the jdk version of your Weblogic server.
For e.g. if it is " jdk142_11".

If both the jdk versions are different, then change the JAVA_HOME to "jdk142_05" in the Weblogic server from the following files :
1. user_projects/domains/domainname/StartWeblogic.cmd
2. user_projects/domains/domainname/setEnv.cmd

If this doesn't work, try to do vice-versa i.e, build your application with Weblogic JDK by setting the JAVA_HOME of the system to Weblogic's JDK. (Though, this didn't worked for me but the first fix definitely did worked).

1 comment:

Anonymous said...

It agree, it is the amusing information