We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 958d4dd commit 32f94d9Copy full SHA for 32f94d9
kafka-webview-ui/src/assembly/distribution/start.sh
@@ -13,11 +13,16 @@ if [[ -z "$LOG_OPTS" ]]; then
13
export LOG_OPTS=""
14
fi
15
16
+## For JVM > 1.8 add exports.
17
+if [[ -z "$EXPORT_OPTS" ]]; then
18
+ export EXPORT_OPTS="--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED"
19
+fi
20
+
21
## Define configuration
22
export SPRING_CONFIG_LOCATION=classpath:/config/base.yml,config.yml
23
24
## launch webapp
-exec java -jar kafka-webview-ui-*.jar $HEAP_OPTS $LOG_OPTS
25
+exec java $EXPORT_OPTS -jar kafka-webview-ui-*.jar $HEAP_OPTS $LOG_OPTS
26
27
## Change back to previous directory
28
cd $CWD
0 commit comments