如何在macOS上将路径参数传递给java

问题描述 投票:0回答:1

我应该如何将路径传递给macOS上的jvm?我正在尝试运行this command,但它不起作用,因为语法错误(相同的命令适用于具有明显不同库的Windows)。谢谢您的帮助!

完整命令:

java  -Djava.library.path=/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/natives -cp /Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/authlib-1.5.25.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/codecjorbis-20101023.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/codecwav-20101023.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/commons-codec-1.10.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/commons-compress-1.8.1.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/commons-io-2.5.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/commons-lang3-3.5.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/commons-logging-1.1.3.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/fastutil-7.1.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/gson-2.8.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/guava-21.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/httpclient-4.3.3.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/httpcore-4.3.2.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/icu4j-core-mojang-51.2.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/jinput-2.0.5.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/jinput-platform-2.0.5-natives-windows.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/jna-4.4.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/jopt-simple-5.0.3.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/jutils-1.0.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/libraryjavasound-20101123.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/librarylwjglopenal-20100824.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/log4j-api-2.8.1.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/log4j-core-2.8.1.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/lwjgl-2.9.4-nightly-20150209.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/lwjgl_util-2.9.4-nightly-20150209.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/netty-all-4.1.9.Final.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/oshi-core-1.1.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/patchy-1.1.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/platform-3.4.0.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/realms-1.10.22.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/soundsystem-20120107.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/text2speech-1.10.3-natives-windows.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/bin/text2speech-1.10.3.jar;/Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/cores/1.12.2.jar -Xmx4G -XX:MaxPermSize=32m net.minecraft.client.main.Main --username tigierrei --version 1.12.2 --gameDir /Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2 --assetsDir /Users/filippocavallari/Documents/SoulNetworkLauncher/modpacks/Vanilla1.12.2/assets --assetIndex 1.12 --uuid 2842ec6ea599466298472a1edbb9619b --accessToken 84a4b1eb01f4449cb47257d8c3123259 --userProperties {} --userType mojang
java macos terminal
1个回答
0
投票

正如JB Nizer所说,你必须使用:而不是;分开路径

© www.soinside.com 2019 - 2024. All rights reserved.