Description
If you run openejb.bat from within the bin folder or do not supply the full path to openejb.bat, Java will fail to locate the jar because OPENEJB_HOME is set wrong. This is because Windows only passes the string you typed to run the command instead of the full path to the command like *nix does. For example:
/bin/openejb.bat
Windows: /bin/openejb.bat
Windows(Cygwin): /full/path/bin/openejb.bat
*nix: /full/path/bin/openejb.bat
Since we use that string and parse it to dynamically locate the directory to set OPENEJB_HOME, this is failing and continues to fail the openejb application.