Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-RC-1
-
None
-
None
-
groovy svn head
-
Patch
Description
I was trying out my native launcher's ability to use other jvm than the one pointed to by java home. The feature seems to have stopped working - groovy throws an NPE from GroovyClassLoader when using that option.
Attached is a patch that removes the NPE so the real exception can be seen.
I am not sure whether this is a bug in the native launcher or in the groovy java code. It is fairly easy to reproduce - copy the groovy.exe (or platform equivalent executable) to the bin dir or groovy executable and say something like this:
bin\groovy.exe -jh c:\programs\Java\jdk1.5.0_09 -v
The error produced (after fixing the NPE) is:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, c:\programs\Java\jdk1.5.0_09: c:\programs\Java\jdk1.5.0_09 (Access is denied)
1 error
Any ideas? How can I get the whole stack trace? -d does not seem to cut it.