半城风月半城雪 2017-02-22 03:02 采纳率: 50%
浏览 1011
已采纳

批处理打不开help文档

主要是由于前面的version通不过去,所以想把它简化一下,直接打开help
图片说明

 @echo off
REM Use this script to manually start the Java Help System
REM
REM Usage: startJavaHelp
REM
SETLOCAL
set EMPTY_STRING=

REM Windows XP
ver | find "5.1" > nul
IF %ERRORLEVEL% == 0 goto setWinXP2003Workspace

REM Windows Server 2003
ver | find "5.2" > nul
if %ERRORLEVEL% == 0 goto setWinXP2003Workspace

REM Windows Vista or Server 2008
ver | find "6.0" > nul
if %ERRORLEVEL% == 0 goto setWinVista78Server0812Workspace

REM Windows 7
ver | find "6.1" > nul
if %ERRORLEVEL% == 0 goto setWinVista78Server0812Workspace

REM Windows 8 or Windows Server 2012
ver | find "6.2" > nul
if %ERRORLEVEL% == 0 goto setWinVista78Server0812Workspace

REM Windows 8.1 or Windows Server 2012 R2
ver | find "6.3" > nul
if %ERRORLEVEL% == 0 goto setWinVista78Server0812Workspace

echo You are not using a supported Windows Operating System.  See http://support.esri.com for a list.
pause
goto end

:setWinXP2003Workspace
set WORKSPACE_HOME=%USERPROFILE%\Local Settings\Application Data\ESRI\DevKit10.0\JHSWorkspace
goto continue

:setWinVista78Server0812Workspace
set WORKSPACE_HOME=%USERPROFILE%\AppData\Local\ESRI\DevKit10.0\JHSWorkspace
goto continue

:continue
if not ("%AGSDEVKITJAVA%")==("%EMPTY_STRING%") set JAVAW=%AGSDEVKITJAVA%java\jre\bin\javaw.exe
if exist "%JAVAW%" goto setVariables

goto errorMessageDevKit

:setVariables
set HELP_SYSTEM_COMMAND=displayHelp
set HELP_SYSTEM_HOME=%AGSDEVKITJAVA%java\docs\eclipse
set PLUGIN_VERSION=3.3.100.v20080201
set HELP_SYSTEM_JAR=%HELP_SYSTEM_HOME%\plugins\org.eclipse.help.base_%PLUGIN_VERSION%.jar

start "%EMPTY_STRING%" "%JAVAW%" -classpath "%HELP_SYSTEM_JAR%" org.eclipse.help.standalone.Help -command %HELP_SYSTEM_COMMAND% -eclipsehome "%HELP_SYSTEM_HOME%" -data "%WORKSPACE_HOME%" -refresh -clean

echo When finished, run %HELP_SYSTEM_HOME%\stopJavaHelp.bat
echo Starting the Java Help System . . .
goto end

:errorMessageDevKit
echo Unable to find the AGSDEVKITJAVA environment variable.
echo Check to make sure the Java ArcObjects SDK has been installed and computer rebooted.
pause
goto end

:end
  • 写回答

2条回答 默认 最新

  • 半城风月半城雪 2017-02-23 01:42
    关注

    最后自己解决了,是由于环境变量的问题,要把系统的环境变量放在最前边才可以。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥60 优博讯DT50高通安卓11系统刷完机自动进去fastboot模式
  • ¥15 minist数字识别
  • ¥15 在安装gym库的pygame时遇到问题,不知道如何解决
  • ¥20 uniapp中的webview 使用的是本地的vue页面,在模拟器上显示无法打开
  • ¥15 网上下载的3DMAX模型,不显示贴图怎么办
  • ¥15 关于#stm32#的问题:寻找一块开发版,作为智能化割草机的控制模块和树莓派主板相连,要求:最低可控制 3 个电机(两个驱动电机,1 个割草电机),其次可以与树莓派主板相连电机照片如下:
  • ¥15 Mac(标签-IDE|关键词-File) idea
  • ¥15 潜在扩散模型的Unet特征提取
  • ¥15 iscsi服务无法访问,如何解决?
  • ¥15 感应式传感器制作的感应式讯响器