Menu

[c9c018]: / scripts / script.bat  Maximize  Restore  History

Download this file

20 lines (13 with data), 451 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
@ECHO OFF
REM Get the full path of the currently executing script
SET SCRIPT_PATH=%~dp0
REM Set the path to the bundled JDK dynamically
SET BUNDLED_JDK=%SCRIPT_PATH%..\JDK\jdk-21.0.1
REM Change the directory to the specified path
CD "%1"
REM Set the path to the java executable within your bundled JDK
SET JAVA_EXECUTABLE=%BUNDLED_JDK%\bin\java.exe
REM Run the Java application using the bundled JDK
"%JAVA_EXECUTABLE%" -cp "%1" "%2"
PAUSE
EXIT
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.