-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjvmmp.cmd
42 lines (38 loc) · 1.01 KB
/
jvmmp.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
@REM ONLY CHANGE THIS CODE IF YOU KNOW WHAT IS DOING
echo Verifying file existence...
@REM ---- memory allocation ----
set "JVMOpts=-Xmx1024M -Xms512M"
@REM ---- File location: default version 1.0 nbsjava1
set file=nbsjava1.jar
if exist %file% (
echo File exists. Checking file size...
java --version > nul
if %errorlevel% == 0 (
echo Java installed!
goto executeprog
) else (
echo Java not installed.
echo Java is the REQUIRED program to run this.
echo Install at least Java 8.
echo Press any key to exit.
pause >nul
exit
)
) else (
echo The file %file% does not exist.
exit /b
)
:executeprog
echo Allocated Java Memory: 1 Gigabyte
echo If you want to change it, change in this file.
echo The Program is ready to start! Press any key to start
pause >nul
cls
java %JVMOpts% -jar %file%
echo.
echo.
echo Program execution completed!
echo Press any key to exit
pause >nul
exit /b