不懂裝懂,永世飯桶!
set path=%path%+;C:\Program Files\Java\jre7\binset classpath=C:\Program Files\Java\jre7\lib
save as *.bat file and run
ref:http://registerboy.pixnet.net/blog/post/24370560-windows7下關於jdk-環境變量-常見問題