https://issues.apache.org/bugzilla/show_bug.cgi?id=49266
Jesse Glick <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Jesse Glick <[email protected]> 2010-05-07 16:26:02 EDT --- (In reply to comment #0) > $ unset CLASSPATH > $ ant > The -cp argument must be followed by a classpath expression Does not happen to me. Are you using a custom java launcher wrapper shell script? Run file `which java` and if it is not something like "ELF 32-bit LSB executable", you might have a buggy launcher - e.g. using $* or $@ rather than "$@" for program arguments. > The -cp "$CLASSPATH" options are > appended to the command line even when the CLASSPATH is empty, resulting in a > command line which looks like 'exec java ... -cp ""' More like: exec java -classpath "...antstuff..." -Dant.home=... -D... org.apache.tools.ant.launch.Launcher -version -cp "" i.e. three args are passed to main(String[]) in this example: {"-version", "-cp", ""}, which should be fine. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
