You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/08/24 14:34:51 UTC

[shardingsphere-elasticjob] branch master updated: In Windows env, run ShardingSphere-ElasticJob-UI, could not find or … (#1403)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new 116ad45   In Windows env, run ShardingSphere-ElasticJob-UI, could not find or … (#1403)
116ad45 is described below

commit 116ad457a27ea9f7cb29a2245ad17515f4fea992
Author: hunter4088 <69...@users.noreply.github.com>
AuthorDate: Mon Aug 24 22:34:38 2020 +0800

     In Windows env, run ShardingSphere-ElasticJob-UI, could not find or … (#1403)
    
    * In Windows env, run ShardingSphere-ElasticJob-UI, could not find or load main class
    
    * Update _index.en.md
---
 docs/content/faq/_index.cn.md | 13 +++++++++++++
 docs/content/faq/_index.en.md | 11 +++++++++++
 2 files changed, 24 insertions(+)

diff --git a/docs/content/faq/_index.cn.md b/docs/content/faq/_index.cn.md
index 2a209f5..8b1051a 100644
--- a/docs/content/faq/_index.cn.md
+++ b/docs/content/faq/_index.cn.md
@@ -92,3 +92,16 @@ ElasticJob 已将 IP 地址等敏感信息过滤,导出的信息可在公网
 
 回答:
 ElasticJob 执行任务会获取本机IP,首次可能存在获取IP较慢的情况。尝试设置-Djava.net.preferIPv4Stack=true.
+
+
+## 12. Windows环境下,运行ShardingSphere-ElasticJob-UI,找不到或无法加载主类 org.apache.shardingsphere.elasticjob.lite.ui.Bootstrap,如何解决?
+
+回答:
+
+某些解压缩工具在解压ShardingSphere-ElasticJob-UI二进制包时可能将文件名截断,导致找不到某些类。
+
+解决方案:
+
+打开cmd.exe并执行下面的命令:
+
+tar zxvf apache-shardingsphere-elasticjob-${RELEASE.VERSION}-lite-ui-bin.tar.gz
\ No newline at end of file
diff --git a/docs/content/faq/_index.en.md b/docs/content/faq/_index.en.md
index 338b8fc..50edef2 100644
--- a/docs/content/faq/_index.en.md
+++ b/docs/content/faq/_index.en.md
@@ -93,3 +93,14 @@ Shard to be adjusted indicates the state when the job has started but has not ye
 Answer:
 
 ElasticJob will obtain the local IP when performing task scheduling, and it may be slow to obtain the IP for the first time. Try to set -Djava.net.preferIPv4Stack=true.
+
+
+## 12. In Windows env, run ShardingSphere-ElasticJob-UI, could not find or load main class org.apache.shardingsphere.elasticjob.lite.ui.Bootstrap. Why?
+
+Answer:
+
+Some decompression tools may truncate the file name when decompressing the ShardingSphere-ElasticJob-UI binary package, resulting in some classes not being found
+
+Open cmd.exe and execute the following command:
+
+tar zxvf apache-shardingsphere-elasticjob-${RELEASE.VERSION}-lite-ui-bin.tar.gz