I figured it out; it was a very simple directory issue in the script. Once I made the directory values absolute, "javadoc" was able to find the required jar files to build into the -classpath parameter, and everything worked just fine
I do need to eventually learn PowerShell, as Batch Script is crazy to work with
:: If you want to use the Web CMA path, use C:\Users\phil\web_sandbox_062020\dandylabs\src
:: Otherwise, it will default to the Java classpath to generate all javadocs
@echo off
SETLOCAL EnableDelayedExpansion
SETLOCAL ENABLEEXTENSIONS
set myPath="%JAVA_CLASS_PATH%"
set jarBasePath=C:\Users\phil\OneDrive\Desktop
set /P myPath="Enter path (hit ENTER for default Java classpath [%JAVA_CLASS_PATH%]): "
set /P packageName="Enter package name: "
set packageName=%packageName:&=%
cd "%myPath%"
set _filelist=.
for /f "delims=|" %%f in ('dir /B %jarBasePath%\jar') do (
::if exist %jarBasePath%\jar\%%f\* echo "%jarBasePath%\jar\%%f is a directory"
if not exist %jarBasePath%\jar\%%f\* (set _filelist=!_fileList!;%jarBasePath%\jar\%%f)
)
for /f "delims=|" %%f in ('dir /B %jarBasePath%\jar\spring') do (
::if exist %jarBasePath%\jar\spring\%%f\* echo "%jarBasePath%\jar\spring\%%f is a directory"
if not exist %jarBasePath%\jar\spring\%%f\* (set _filelist=!_fileList!;%jarBasePath%\jar\spring\%%f)
)
set _filelist=%_filelist:,,=%
::echo %_fileList%
"%JAVA_JDK_HOME%\javadoc" -Xdoclint:none -classpath %_fileList% %packageName% && (
(call )
) || (
PAUSE
)