Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
-
Win XP
Description
On Unix I can do:
groovy -cp test.jar test.g
On Windows, the same command doesn't work:
Caught: java.io.FileNotFoundException: -cp (The system cannot find the file specified)
java.io.FileNotFoundException: -cp (The system cannot find the file specified)
This is the command that actually gets executed:
"C:\Programs\Java\bin\java.exe" "-Xmx128m" -Dprogram.name="" -Dgroovy.home="C:\Programs\Groovy" -Dtools.jar="C:\Programs\Java\lib\tools.jar" -Dclassworlds.conf="C:\Programs\Groovy\conf\groovy-classworlds.conf" -classpath "C:\Programs\Groovy\lib\classworlds-1.0-rc2.jar;;..\..\dist\expasy.jar" org.codehaus.classworlds.Launcher -cp ..\..\dist\expasy.jar test.g
Note the extra -cp near the end.