Follow these easy steps:
Create a file called Java11.bat and copy it to the c:\ directory
You can run in two ways:
way 1.
way 2.
For the next time you want to run with java 11, it will be in the list to select and run:
regards,
Create a file called Java11.bat and copy it to the c:\ directory
set JAVA_HOME=C:\Java\java-11.0.1 <--- you directory java11
set APP_PATH=%~p1
set APP_NAME=%~nx1
cd %APP_PATH%
%JAVA_HOME%\bin\java.exe --module-path %JAVA_HOME%\javafx\lib --add-modules=javafx.controls,javafx.fxml,javafx.web -jar %APP_NAME%
pause
You can run in two ways:
way 1.
cmd
cd you_app_path\Objects
c:\Java11.bat app_name.jar
way 2.
For the next time you want to run with java 11, it will be in the list to select and run:
regards,
Last edited: