Commit 0567974
Fix a weird MacOS classpath issue in flux.sh
The line:
"$FLUX_JAVA_BIN" "${java_opts_array[@]}" -jar "$jar_file" "$@")
resulted in a "Could not find or load main class" error.
But when the verbatim command is executed in an interactive shell,
it all works fine.
Debugging with `-verbose:class` showed that the call from the script
and the interactive call resulted in a different set classes loaded.
Especially the culturegraph.* classes were missed.
I cannot pin down the source of this bug.
But changing the failing line to:
command=$(echo "$FLUX_JAVA_BIN" "${java_opts_array[@]}" -jar "$jar_file" "$@")
$command
fixes the problem.1 parent e99b463 commit 0567974
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
0 commit comments