The script /usr/share/java-config-2/launcher/launcher.bash has a problem with arguments containing special characters like / " $ ` This causes strange errors for example in groovy when it is used with the -e option: $ groovy -e 'println "Hello"' Caught: groovy.lang.MissingPropertyException: No such property: Hello for class: script_from_command_line at script_from_command_line.run(script_from_command_line:1) at script_from_command_line.main(script_from_command_line) I fixed it by replacing the loop starting in line 60 with this # Rebuild arg list so it doesn't get messed up for arg in "${@}"; do arg=${arg//\\/\\\\} arg=${arg//\`/\\\`} arg=${arg//\"/\\\"} arg=${arg//\$/\\\$} gjl_cmd_arg="${gjl_cmd_arg} \"${arg}\"" done
See http://overlays.gentoo.org/proj/java/changeset?new=projects%2Fjava-config-2%405936&old=projects%2Fjava-config-2%405934 for changes.
(In reply to comment #1) > See > http://overlays.gentoo.org/proj/java/changeset?new=projects%2Fjava-config-2%405936&old=projects%2Fjava-config-2%405934 > for changes. > You forgot java after the exec in the debug print
So I did http://overlays.gentoo.org/proj/java/changeset?new=projects%405941&old=projects%405936
Fixed in 2.1.4