Hi, new to keycloak.
I’m following OpenJDK - Keycloak
On running bin/kc.sh, I get:
bin/kc.sh: eval: line 100: unexpected EOF while looking for matching `"'
bin/kc.sh: eval: line 101: syntax error: unexpected end of file
No modifications done to anything.
Debian 11.5
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/"
java --version
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Debian-1deb11u1, mixed mode, sharing)
Suggestions?
I added some debug output to the script:
echo "JAVA: $JAVA"
echo "JAVA_RUN_OPTS; $JAVA_RUN_OPTS"
Output:
JAVA: /usr/lib/jvm/java-11-openjdk-amd64/" /bin/java
JAVA_RUN_OPTS: -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Dkc.home.dir='/home/kc/keycloak-19.0.3/bin'/../ -Djboss.server.config.dir='/home/kc/keycloak-19.0.3/bin'/../conf -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dquarkus-log-max-startup-records=10000 -cp '/home/kc/keycloak-19.0.3/bin'/../lib/quarkus-run.jar io.quarkus.bootstrap.runner.QuarkusEntryPoint
./kc2.sh: eval: line 102: unexpected EOF while looking for matching `"'
./kc2.sh: eval: line 103: syntax error: unexpected end of file
The value of $JAVA looks strange to me.
Take close look, the " at the end should not be there
1 Like
JAVA_HOME is set by Debian. I haven’t edited anything manually. I had both Java 11 and 17 installed, but removed Java 17 via apt before starting with Keycloak. I did a grep and found JAVA_HOME in /etc/environment. I adjusted the value there (+ reboot), and got Keycloak to start. I’m thinkinig this could be a bug in one of Debians Java related packages.
Thanks for replying 