mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 21:20:12 +00:00
Improve help text on server Java check failure
This commit is contained in:
1 parent
870e3ebcab
commit
80286594c5
2 files changed
+5
-3
No files matched your search
+4
-1
@@ -896,7 +896,10 @@ tasks.register('installerJar', InstallerJar) {
|
||||
}
|
||||
|
||||
final var argsFile = rootProject.file('server_files/args.txt')
|
||||
final Map<String, Map<String, String>> tokens = [tokens: [SHIM_JAR_FILE: serverShimJar.archiveFileName.get()]]
|
||||
final Map<String, Map<String, String>> tokens = [tokens: [
|
||||
SHIM_JAR_FILE: serverShimJar.archiveFileName.get(),
|
||||
MAVEN_PATH: MAVEN_PATH
|
||||
]]
|
||||
from(argsFile) {
|
||||
filter(tokens, ReplaceTokens)
|
||||
into 'data'
|
||||
|
||||
@@ -4,8 +4,7 @@ REM Add custom JVM arguments (such as RAM allocation) to the user_jvm_args.txt
|
||||
java -jar @SHIM_JAR_FILE@ --onlyCheckJava
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo.
|
||||
echo Java check failed.
|
||||
echo If you're struggling to get Java to work, ask for help on the forums or Discord mentioned in the readme.
|
||||
echo If you're struggling to fix the error above, ask for help on the forums or Discord mentioned in the readme.
|
||||
goto :exit
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user