转载

bat 多jdk指定jdk 运行jar包

title xxxxx
set path = C:/Program Files/Java/jdk1.8.0_111
set classpath=C:/Program Files/Java/jdk1.8.0_111/jre
@echo off
java -jar xxxxx.jar
title xxxxx
rem set JAVA_OPTS=-Xms256m -Xmx256m
rem mode con cp select=936
mode con cols=100 lines=100
java -jar  -Xms64m -Xmx256m xxxxxxx.jar
rem pause


正文到此结束
Loading...