windows系统bat执行.class文件

@echo off    
REM SET UP CLASSPATH    
set CLASSPATH=./classes
set LIB=./lib
FOR %%F IN (./lib/*.jar) DO call :setclasspath %%F
echo %CLASSPATH%   
goto :startjava    
:setclasspath    
set CLASSPATH=%CLASSPATH%;%LIB%/%1
goto :eof    
:startjava    
java -classpath %CLASSPATH% server.collector.RunALCCMC

要运行的类名:server.collector.RunALCCMC

你可能感兴趣的:(java,windows,F#,UP)