My forge.jar for my server isn't doing anything despite having downloaded Java 8
Hey, I've been trying to lauch a Create
Above and beyond serveru to play with a friend and I downloaded the server files from curse forge, installed the forge server and extracted the files in, I have all the mods into the mods folders etc but when I try to lauch "forge-1.16.5-36-2-20.jar' nothing happens (except a brief apparition in my task manager and my fan spinning faster for 1 second), I have a minecraft_server.1.16.5.jar but from what I understood that is a vanilla server and doesn't loads mods (confirmed it when trying to connect I see that it is a vanilla server). I've seen on the internet that I need to make a bat files and redirect to my java 8 but... all the post are from 2017 and half the messages are deleted so... Any help...?
141 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by blovarsk#0
I've just made a .bat file with this in it, but I see a window appear on my taskbar but then it instantly disappear
you need to incase it in ""
all of it ?
the path part
yeah
replace java with "ur path"
with " around the path
also, if u put
at the end of ur batch script, the window wont instantly close and u can see the error
^ updated this to include ur path
-Xmx4096M
<- change the 4096
number to how much ram u want to allocate
4096 = 4gbI'm doing it
I've used your website and added my path with " " around it and put pause at the end
š
But then it does the same thing
well if u have pause at the end it wont instantly close
Nothing happens except the quick flash of the application in the taskbar
make sure u save the file properly
it wont close if u have pause
"C:\Program Files (x86)\Java\jre-1.8\bin\java.exe" -Xms8192M -Xmx8192M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar pause
Aikar's Thoughts
JVM Tuning: Optimized G1GC for Minecraft - Aikar's Thoughts
Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.
put pause on a new line
^ updated
okay
There's no error in the CMD
what does it show
it says the error right there
^ use this
there is no server.jar in that folder
Ah, yes, it seems i'm quite stupied
rename the server jar to server.jar, or in the script update it so it uses the name of the forge.jar
the script i shared with you already has the proper name
are you sue thats the proper name of the jar file
My server folder
ok click on the jar file
copy the name
and paste/replace the name in the .bat file
i accidentally used - instead of .
but copy/pasting the name will fix it
yzq, oky
ur allocating 4gb of ram
but it seems u dont have 4gb
Well, I currently have 32 Gb installed on my PC, and ~20 currently not used
ok then you probably downloaded 32bit java
i think that has a maxmium of 1 or 2gb
Maybe, it didn't specify on java website so I'll go on oracle
i'd recommend using adoptium
instead of oracles
!java
Any reason ?
Pretty sure that's the 32 bit Java error
^
Being as it's in program files (x68)
yup
!adoptium
You should not use Oracle's OpenJDK JRE <17 on your public server as it has serious licensing issues
- on Windows, we suggest you try Adoptium instead
- on Linux systems, you should use the openjdk-jre package provided by your distribution's package manager anyways
For JRE 17, Oracle modified their license so you may use whatever is most convenient for you, though we still recommend the non-Oracle options.
Admincraft Canned Responses
ah there it is
i was tryna look for the canned response
Use Java 11 64 bit for 1.16
do we hvae a list of those
Just wondering, JDR or JRE ?
JDK*
Latest Releases | Adoptium
Eclipse Adoptium provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.
u want the jdk
the development kit
jdk = java development kit
Okay, and then I extract it whenever I want
yup, where ever u want
and just update ur batch file that points to that
Yes, tagged you in #commands
Okay, slowly advancing, lol, thanks guys for keeping up with me
oh mb
I've just extracted the file, didn't do anything other than that
yeah
remove that flag
its not available in java 11
--add-modules=jdk.incubator.vector
^ remove that
things happen
š
server booming?
(the good boom)
Mmmayyybe....?
no that means it crashed
lmao
!logs
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file.
Where can I find the server log?
Logs are stored in
<server_directory>/logs/
. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log
file. Some providers have a separate page for logs and may hide the "logs" folder.
On Aternos:
ā¢ Go to https://aternos.org/log/.
On Minehut and server.pro:
ā¢ Go to the "files" tab in the left menu.
ā¢ Navigate to the root directory of your server.
ā¢ From there navigate to /logs/latest.log
.
What should I do with the log?
ā¢ First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing.
ā¢ If you got the latest.log
file or created a .txt
file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/.
ā¢ If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)Admincraft Canned Responses
lol
well good news is it crashing is most likely due to a mod
and not java
so original topic has been solved š
Let's go !
now onto the the mod issue D:
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
Wait, i'm trying to figure out wich log I need to send
upload ur latest.logs here
serverfolder/logs/latest.log
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
latest.log
Requested by blovarsk#0
try another version of antiqueatlas
I've just exctrated these
From the .rar given by curse forge
By another version you mean the latest or just random, and if the server work after that I will need, client-side, to have the same version ?
yes
and look for a version supporting ur mc version
Yes of course
Guess it crashed again
I installed the latest version of antique atlas for 1.16.5
can u remove all of the mods and see if the server boots up
Bu why would the modpack extracted for the servers would not work for it but work when I go into single player ?
Yes
well serverpacks are different from modpacks
so the pack maker could of just made a mistake in the one u downloaded
but looks like its a java issue
try remove all of the flags
but the -xmx and -xms
hmmm maybe we go back to java 8
can I have the two versions together ?
u can have as many java installs as u want on a pc
Or is it better that I uninstall the 11 version
but it doesnt hurt to uninstall, but wait a sec
its weird java 11 aint working, ima do some research
!javaver
Recently, the Java version recommendations for Minecraft became more strict
For Minecraft <1.17, Java 11 is recommended.
Minecraft 1.17 won't start without Java 16 (or newer).
Minecraft 1.18 won't start without Java 17 (or newer).
Admincraft Canned Responses
hmm.. tbh i dont even use adoptium, i use zulu and havent had this issue with java 11, but lookin online looks like its a java patch related issue
Do I try with java 8 nonetheless ?
sure
just make sure u get 64bit
Yes lol
You're traumatized
well i dont think u wanna run a modded server with 1gb of ram
up to you š
4 gb is the max for 32 oh nvm
:d
I change the path, but what would be a good amount of ram for 2 players ?
4 gb
for modded i would do like 6
its 2gb
actually
for user processes
its diffrent on windows irc
weird limit for me was 4
(windows multimc)
aight bro what pack did u download
ima see if u just got a shit forge jar
By pack what do you mean ?
u said u download a serverpack right?
from curseforge
Yes, the above and beyond
can u link the version u downloaded
also did u update the java path location in the .bat file
Yes, but I may have found a problem, I got the 1.1 version of the modpack when it is 1.3 currently, can it be that ? I would be quite ashamed to have wasted your time l^^'
i dont think thats it
but go ahead and try
updating
I just clicked on download server pack
oh wait
did u run the installer
the forge server installer
For the forge server ?
Yes
and selected the server type
ok yeah download the new pack and run it again
Do i get rid of the old server files ?
yeah
I suppose they're not useful anymore
okay thanks
unless u had stuff
delete everything
make sure u change this to the location ur server is at
so inside the Above+and+Beyond-1.3-Server folder
Just to be sure, I can do it in a completely empty file
yeah, but do it in the server pack folder
after u extracted the zip
Okay, so, i downloaded the modpack with the good version, extracted the files and installed directly in the same folder, accepted EULA, created the same .bat as before and took took down what you said wasn't available with this version and tried to link it with those version of java (one after the other)
1.8 i downloaded by the java website because I encountered the problem where only having extracted the java downloaded with adoptium didn't let me use .jar files
Even when trying out the "open with..." Java didn't appear
I tried right now cutting out the XX flags from the .bat
ok looking at it
i tried downloading it myself
and its an issue with forge and java
for that specific forge and java version
GitHub
Incompatibility between modlauncher 8.1.x (mc 1.16) and Java 8 u321...
The latest update to Java 8 applied a change to the sun.security.util.ManifestEntryVerifier class constructor, adding a parameter to it. This breaks binary compatibility with modlauncher 8.1.x code...
looks like u just need to downgrade to a java 8 veresion before u321
It does things
Like, a lot of things, maybe it is working
š®
Thanks man
Don't know if my friend can join but thanks you, haha
If I want to have 6gb of ram allocated I just need to change the other thing by that in the .bat if i'm correct
-Xms6144M -Xmx6144M
!solved
post closed!
The post/thread has been closed!
Requested by blovarsk#0