目前JAVA程序A,使用批处理开启
我用计划任务启动批处理,会把所有文件都生成在C:/WINDOWS/SYSTEM32下面而不是程序目录下面
我推测是路径问题
但是我不知道在哪里修改默认路径
JAVA程序名字是nodecore-pop
求大佬帮忙

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  nodecore-pop startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%..

SET APP_TITLE=VeriBlock Proof-of-Proof (PoP) Miner
TITLE %APP_TITLE%

@rem Add default JVM options here. You can also use JAVA_OPTS and NODECORE_POP_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\lib\nodecore-miners-pop-0.4.7-dev.1+segwit.a2bcf9c.jar

@rem Execute nodecore-pop
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %NODECORE_POP_OPTS%  -classpath "%CLASSPATH%" nodecore.miners.pop.Program %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable NODECORE_POP_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
echo Application terminated unexpectedly, press any key to exit
pause > nul
if  not "" == "%NODECORE_POP_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

哪位大佬知道怎么修改JAVA程序的路径啊,版本是8(64BIT)-LMLPHPmega
上海网友:set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

环境变量  JAVA_HOME
浙江网友:对的 楼上说的对 先添加java home
辽宁网友:参见你前几天的帖子

有人不是回复过用docker
然后你把生成的文件的目录挂载到你想要的目录下就可以了
吉林网友:我已经搞定了3Q,修改CLASSPATH

01-17 20:58