æä½æ¥éª¤
1ãæ°å»ºä¸ä¸ªæ件夹ï¼å°è¦æ§è¡javaç¨åºï¼å¯ä½¿ç¨eclipse导åºçå¯æ§è¡çjarå
ï¼æ·è´å°è¯¥æ件夹ä¸ï¼
2ãå°jdkä¸jreæ件夹æ·è´å°è¦æ§è¡çjavaç¨åºæå¨çæ件夹ï¼
3ãå¨javaç¨åºæå¨çæ件夹ä¸æ°å»ºä¸ä¸ªbatæ件ã
batæä»¶æ ·ä¾ï¼
æ ·ä¾ä¸ï¼
@echo off
set PATH=.;%CD%\SocketAdapter_lib\jre\bin
set CLASSPATH=.
start java.exe -jar SocketAdapter.jar
@pause
æ ·ä¾äºï¼
@echo off
start SocketAdapter_lib\jre\bin\java -jar SocketAdapter.jar
@pause
注ï¼
å¯ä»¥å¨æ²¡æå®è£
JREçç¯å¢ä¸ï¼è¿è¡Javaåºç¨ç¨åº
java.exe å
·ä½ä½¿ç¨åè§cmdä¸è¾å
¥java -help
javaw.exe ç¸å¯¹äº java.exe æ§è¡javaç¨åºè¿ç¨ä¸MS-DOSä¸å¯è§
对äºå®è£
äºJREçç¯å¢ä¸ï¼ç¬¬2æ¥å¯ä»¥çç¥ï¼batæ件å¦ä¸
æ ·ä¾ä¸ï¼
@echo off
java -jar SocketAdapter.jar
@pause
温馨提示:内容为网友见解,仅供参考