as.bat报错
- Dominant language
- Java
- Stars
- 37.5k
- Forks
- 7.6k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 4
Description
- [ ] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。
### 环境信息
* `arthas-boot.jar` 或者 `as.sh` 的版本:
* as.bat
* REM ----------------------------------------------------------------------------
REM program : Arthas
REM author : Core Engine @ Taobao.com
REM date : 2015-11-11
REM version : 3.0
REM ----------------------------------------------------------------------------
* Arthas 版本: xxx
* 操作系统版本: win11
* 目标进程的JVM版本: openjdk 11 2018-09-25
* 执行`arthas-boot`的版本: xxx
### 重现问题的步骤
C:\Users\quan>as.bat 30428
环境变量 JAVA_TOOL_OPTIONS 没有定义
JAVA_HOME: C:\Program Files\Java\jdk-11
telnet port: 3658
http port: 8563
Can not find lib\tools.jar under C:\Program Files\Java\jdk-11!
If java version <= 1.8, please make sure JAVA_HOME point to a JDK not a JRE.
If java version >= 9, try to run as.bat --ignore-tools
### 期望的结果
没有设置JAVA_TOOL_OPTIONS 环境完全可以用默认的,不要报错
openjdk 11 lib目录下本来就没有tools.jar,不应该报错
### 实际运行的结果
各种报错
```
把异常信息贴到这里
```
Contributor guide
Research direction
Start with as.bat and reproduce the reported command, `as.bat 30428`, on Windows with OpenJDK 11. Check how JAVA_TOOL_OPTIONS and the missing lib\tools.jar are handled; done means Java 11 can run without that file or variable and the reported errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100