Skip to content

Commit 32f94d9

Browse files
committed
fix startup script for jvm 16
1 parent 958d4dd commit 32f94d9

File tree

1 file changed

+6
-1
lines changed
  • kafka-webview-ui/src/assembly/distribution

1 file changed

+6
-1
lines changed

kafka-webview-ui/src/assembly/distribution/start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ if [[ -z "$LOG_OPTS" ]]; then
1313
export LOG_OPTS=""
1414
fi
1515

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+
1621
## Define configuration
1722
export SPRING_CONFIG_LOCATION=classpath:/config/base.yml,config.yml
1823

1924
## launch webapp
20-
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
2126

2227
## Change back to previous directory
2328
cd $CWD

0 commit comments

Comments
 (0)