您可以參考本博客:http://blog.netoearth.com/html/201107/how-to-install-voldemort-on-windows.htm
這裏BAT文件:https://gist.github.com/erikhoward/344463
伏地魔-shell.bat:
@echo off
REM
REM Copyright 2008-2009 LinkedIn, Inc
REM Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
set Count=0
for %%a in (%*) do set /a Count+=1
if %Count% equ 2 goto :continue
echo USAGE: bin/voldemort-shell.bat store_name bootstrap_url [command_file]
goto :eof
:continue
setlocal
SET BASE_DIR=%~dp0..
%BASE_DIR%\bin\run-class.bat jline.ConsoleRunner voldemort.VoldemortClientShell %*
endlocal
:eof
https://gist.github.com/erikhoward/344450
運行class.bat:
關閉@echo
Apache許可證下REM REM版權所有2008-2009 LinkedIn,公司REM版權所有2010埃裏克·霍華德http://www.gonosql.comhttp://erikhoward.net REM REM許可,2.0版(以下簡稱「許可證「); REM除非符合許可證,否則您不得使用此文件。 REM您可以在REM REM獲得許可副本http://www.apache.org/licenses/LICENSE-2.0 REM REM除非適用法律要求或書面同意,否則根據許可分發的軟件REM按「原樣」基礎發佈,REM無任何擔保或條件,無論是明示還是暗示。 REM請參閱許可證以瞭解許可證下特定語言的權限和REM限制。 REM
組計數= 0 用於%%一個在(%*)執行設置/一個Count + = 1 如果%計數%GTR 1轉到:繼續 回聲%0 Java的類名[選項] 轉到:eof :繼續
SET BASE_DIR=%~dp0..
SET CLASSPATH=.
for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j")
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j")
goto :run
:append_classpath
set CLASSPATH=%CLASSPATH%;%1
goto :eof
:run
REM You might have to adjust the max allowable memory setting to fit your environment
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote"
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %*
endlocal
:[email protected] off
REM
REM Copyright 2008-2009 LinkedIn, Inc
REM Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
set Count=0
for %%a in (%*) do set /a Count+=1
if %Count% gtr 1 goto :continue
echo %0 java-class-name [options]
goto :eof
:continue
SET BASE_DIR=%~dp0..
SET CLASSPATH=.
for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j")
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j")
goto :run
:append_classpath
set CLASSPATH=%CLASSPATH%;%1
goto :eof
:run
REM You might have to adjust the max allowable memory setting to fit your environment
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote"
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %*
endlocal
:eof
可以請您發佈或提供您的bat文件嗎? – PMoubed