You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/04/26 03:53:32 UTC

[GitHub] yuleyule66 opened a new issue #1120: An exception thrown with using the startup.bat boot script on windows

yuleyule66 opened a new issue #1120: An exception thrown with using the startup.bat boot script on windows
URL: https://github.com/apache/incubator-skywalking/issues/1120
 
 
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   
   Skywalking version: **5.0.0-alpha**
   OS version: **win10**
   JRE: **1.8.0_151**
   
   - Which company or project?
   
   I'm the [.NET Core Community](https://github.com/dotnetcore) members, our project will using Skywalking.
   
   - What happen?
   
   When I ran the skywalking `startup.bat` script on Windows, there's an error occurred, my environment variable has configured Java_Home correctly.
   
   I run the `startup.bat` using the Cmder app like:
   ```
   G:\apache-skywalking-apm-incubating\bin
   λ startup.bat
   ```
   I got the following error:
   
   ```
   错误: 找不到或无法加载主类 C:\Program Files\Java\jdk1.8.0_151\bin\java
   
   
   Current directory:
   G:\apache-skywalking-apm-incubating\bin
   
   Command to be executed:
   "C:\Program Files\Java\jdk1.8.0_151\bin\java.exe"  "C:\Program Files\Java\jdk1.8.0_151"\bin\java  ""-Xms256M -Xmx512M -Dcollector.logDir=G:\apache-skywalking-apm-incubating\bin\.\..\logs"" -cp "G:\apache-skywalking-apm-incubating\bin\.\..\collector-libs\*;G:\apache-skywalking-apm-incubating\bin\.\..\config;.;" org.apache.skywalking.apm.collector.boot.CollectorBootStartUp
   
   ConEmuC: Root process was alive less than 10 sec, ExitCode=1.
   Press Enter or Esc to close console...
   ```
   and 
   
   ```
   错误: 找不到或无法加载主类 C:\Program Files\Java\jdk1.8.0_151\bin\java
   
   
   Current directory:
   G:\apache-skywalking-apm-incubating\bin
   
   Command to be executed:
   "C:\Program Files\Java\jdk1.8.0_151\bin\java.exe"  "C:\Program Files\Java\jdk1.8.0_151"\bin\java   -jar G:\apache-skywalking-apm-incubating\bin\.\..\webapp/skywalking-webapp.jar --server.port=8080 --collector.ribbon.listOfServers=127.0.0.1:10800
   
   
   ConEmuC: Root process was alive less than 10 sec, ExitCode=1.
   Press Enter or Esc to close console...
   ```
   
   I tried to use the Windows `CMD` command, which still doesn't work properly.
   ___
   ### Requirement or improvement
   
   I think I found the reason which cause the problem, I submitted a PR attempt to fix the problem.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services