Yep. That should clear them from javahome leaving only java 8
ok i uninstalled java now what?
Try the java --version command again
uhh its still 15
java 15.0.1 2020-10-20
Java™ SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot™ 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
Jordyns-MacBook-Air:~ jordyn$
i looked at oracle and found this
jre-8u281-macosx-x64.dmg
should i install it and run the command?
You can try it.
Your java version is still saying java 15
it didnt work its still build 15
java 15.0.1 2020-10-20
Java™ SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot™ 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
Jordyns-MacBook-Air:~ jordyn$
Ok lets try something else.
Your .command script. Mind sending it? Ill send you a modified version that should work by bypassing the default java version
how do i send it?
Open it in the program you wrote it in. Copy all, paste
ah ok here it is
#!/bin/bash
cd “$(dirname “$0”)”
java -Xms2G -Xmx4G -jar forge-1.12.2-14.23.5.2854.jar
#!/bin/bash
cd “$(dirname “$0”)”
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -Xms2G -Xmx4G -jar forge-1.12.2-14.23.5.2854.jar
Try that
Last login: Wed Apr 7 05:36:59 on ttys000
Jordyns-MacBook-Air:~ jordyn$ /Users/jordyn/Desktop/Multiplayer\ Server/launch.command ; exit;
usage: dirname path
/Users/jordyn/Desktop/Multiplayer Server/launch.command: line 2: cd: “”: No such file or directory
/Users/jordyn/Desktop/Multiplayer Server/launch.command: line 3: /Library/Internet: No such file or directory
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
[Process completed]
Darn it forgot about the space again XD
#!/bin/bash
cd “$(dirname “$0”)”
"/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java" -Xms2G -Xmx4G -jar forge-1.12.2-14.23.5.2854.jar
it still is not working
Last login: Wed Apr 7 05:39:24 on ttys000
/Users/jordyn/Desktop/Multiplayer\ Server/launch.command ; exit;
Jordyns-MacBook-Air:~ jordyn$ /Users/jordyn/Desktop/Multiplayer\ Server/launch.command ; exit;
usage: dirname path
/Users/jordyn/Desktop/Multiplayer Server/launch.command: line 2: cd: “”: No such file or directory
Error: Unable to access jarfile forge-1.12.2-14.23.5.2854.jar
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
[Process completed]
also im sorry that this is taking up so much of your time
Im learning a lot about macos, so i dont mind at all. While i personally dislike Apple and pretty much all of its products, ill need to support it with my programs eventually and I will admit they do get some things right. So please dont apologize
alright im glad that you dont mind
so yeh it still isnt working
Not sure if it will work, but try replacing the 2nd line with the following
cd "`dirname $0`"
It seems like it cannot find your forge file so make sure you have the correct name