I'm need to compile a Groovy code with a specific bootclasspath. Is there a way to specify the argument with groovyc
. When I specify it the way I specify with javac, it complains about it being unrecognized.
Asked
Active
Viewed 154 times
0

Psycho Punch
- 6,418
- 9
- 53
- 86
-
Do you want to show the command how it is being invoked and error / stack trace that you get when it fails? – Rao Oct 20 '16 at 03:51
-
I'm just using `-Xbootclasspath/p:path/to/file.jar` in both javac and groovyc. – Psycho Punch Oct 20 '16 at 04:14
1 Answers
0
I think it's -bootclasspath
, not Xbootclasspath
. One thing you can try if that doesn't work is this:
set JAVA_OPTS="-bootclasspath C:\path\here"
or on Linux
export JAVA_OPTS="-bootclasspath /path/here"
Also, if you copied and pasted your example exactly as you're doing it, you are missing a space between classpath and /p
in that example.

Mike Thomsen
- 36,828
- 10
- 60
- 83