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
Admincraft Meta
Admincraft Meta•2y ago
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
Blovarsk
BlovarskOP•2y ago
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
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
QarthO
QarthO•2y ago
"C:\Program Files (x86)\Java\jre-1.8\bin\java.exe" -Xms4096M -Xmx4096M --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 forge-1.16.5-36.2.20.jar --nogui

pause
"C:\Program Files (x86)\Java\jre-1.8\bin\java.exe" -Xms4096M -Xmx4096M --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 forge-1.16.5-36.2.20.jar --nogui

pause
ProGamingDk
ProGamingDk•2y ago
you need to incase it in ""
Blovarsk
BlovarskOP•2y ago
all of it ?
ProGamingDk
ProGamingDk•2y ago
the path part
QarthO
QarthO•2y ago
yeah replace java with "ur path" with " around the path also, if u put
pause
pause
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 = 4gb
Blovarsk
BlovarskOP•2y ago
I'm doing it I've used your website and added my path with " " around it and put pause at the end
QarthO
QarthO•2y ago
šŸ‘
Blovarsk
BlovarskOP•2y ago
But then it does the same thing
QarthO
QarthO•2y ago
well if u have pause at the end it wont instantly close
Blovarsk
BlovarskOP•2y ago
Nothing happens except the quick flash of the application in the taskbar
QarthO
QarthO•2y ago
make sure u save the file properly it wont close if u have pause
Blovarsk
BlovarskOP•2y ago
"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.
QarthO
QarthO•2y ago
put pause on a new line ^ updated
Blovarsk
BlovarskOP•2y ago
okay There's no error in the CMD
QarthO
QarthO•2y ago
what does it show
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
it says the error right there ^ use this
ProGamingDk
ProGamingDk•2y ago
there is no server.jar in that folder
Blovarsk
BlovarskOP•2y ago
Ah, yes, it seems i'm quite stupied
QarthO
QarthO•2y ago
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
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
are you sue thats the proper name of the jar file
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
My server folder
QarthO
QarthO•2y ago
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
Blovarsk
BlovarskOP•2y ago
yzq, oky
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
ur allocating 4gb of ram but it seems u dont have 4gb
Blovarsk
BlovarskOP•2y ago
Well, I currently have 32 Gb installed on my PC, and ~20 currently not used
QarthO
QarthO•2y ago
ok then you probably downloaded 32bit java i think that has a maxmium of 1 or 2gb
Blovarsk
BlovarskOP•2y ago
Maybe, it didn't specify on java website so I'll go on oracle
QarthO
QarthO•2y ago
i'd recommend using adoptium instead of oracles !java
Blovarsk
BlovarskOP•2y ago
Any reason ?
Discount Milk
Discount Milk•2y ago
Pretty sure that's the 32 bit Java error
QarthO
QarthO•2y ago
^
Discount Milk
Discount Milk•2y ago
Being as it's in program files (x68)
QarthO
QarthO•2y ago
yup
Discount Milk
Discount Milk•2y ago
!adoptium
Carl-bot
Carl-bot•2y ago
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
QarthO
QarthO•2y ago
ah there it is i was tryna look for the canned response
Discount Milk
Discount Milk•2y ago
Use Java 11 64 bit for 1.16
QarthO
QarthO•2y ago
do we hvae a list of those
Blovarsk
BlovarskOP•2y ago
Just wondering, JDR or JRE ? JDK*
QarthO
QarthO•2y ago
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.
QarthO
QarthO•2y ago
u want the jdk the development kit jdk = java development kit
Blovarsk
BlovarskOP•2y ago
Okay, and then I extract it whenever I want
QarthO
QarthO•2y ago
yup, where ever u want and just update ur batch file that points to that
Discount Milk
Discount Milk•2y ago
Yes, tagged you in #commands
Blovarsk
BlovarskOP•2y ago
Okay, slowly advancing, lol, thanks guys for keeping up with me
No description
QarthO
QarthO•2y ago
oh mb
Blovarsk
BlovarskOP•2y ago
I've just extracted the file, didn't do anything other than that
QarthO
QarthO•2y ago
yeah remove that flag its not available in java 11 --add-modules=jdk.incubator.vector ^ remove that
Blovarsk
BlovarskOP•2y ago
things happen
QarthO
QarthO•2y ago
šŸ˜„ server booming? (the good boom)
Blovarsk
BlovarskOP•2y ago
Mmmayyybe....?
Blovarsk
BlovarskOP•2y ago
No description
ProGamingDk
ProGamingDk•2y ago
no that means it crashed lmao !logs
Carl-bot
Carl-bot•2y ago
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
Blovarsk
BlovarskOP•2y ago
lol
QarthO
QarthO•2y ago
well good news is it crashing is most likely due to a mod and not java so original topic has been solved šŸ™‚
Blovarsk
BlovarskOP•2y ago
Let's go !
QarthO
QarthO•2y ago
now onto the the mod issue D:
QarthO
QarthO•2y ago
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
Blovarsk
BlovarskOP•2y ago
Wait, i'm trying to figure out wich log I need to send
QarthO
QarthO•2y ago
upload ur latest.logs here serverfolder/logs/latest.log
Admincraft Meta
Admincraft Meta•2y ago
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
Requested by blovarsk#0
ProGamingDk
ProGamingDk•2y ago
try another version of antiqueatlas
Blovarsk
BlovarskOP•2y ago
I've just exctrated these
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
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 ?
ProGamingDk
ProGamingDk•2y ago
yes and look for a version supporting ur mc version
Blovarsk
BlovarskOP•2y ago
Yes of course Guess it crashed again
Blovarsk
BlovarskOP•2y ago
I installed the latest version of antique atlas for 1.16.5
QarthO
QarthO•2y ago
can u remove all of the mods and see if the server boots up
Blovarsk
BlovarskOP•2y ago
Bu why would the modpack extracted for the servers would not work for it but work when I go into single player ? Yes
QarthO
QarthO•2y ago
well serverpacks are different from modpacks
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
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
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
hmmm maybe we go back to java 8
Blovarsk
BlovarskOP•2y ago
can I have the two versions together ?
QarthO
QarthO•2y ago
u can have as many java installs as u want on a pc
Blovarsk
BlovarskOP•2y ago
Or is it better that I uninstall the 11 version
QarthO
QarthO•2y ago
but it doesnt hurt to uninstall, but wait a sec its weird java 11 aint working, ima do some research !javaver
Carl-bot
Carl-bot•2y ago
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
QarthO
QarthO•2y ago
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
Blovarsk
BlovarskOP•2y ago
Do I try with java 8 nonetheless ?
QarthO
QarthO•2y ago
sure just make sure u get 64bit
Blovarsk
BlovarskOP•2y ago
Yes lol You're traumatized
QarthO
QarthO•2y ago
well i dont think u wanna run a modded server with 1gb of ram up to you šŸ˜›
ProGamingDk
ProGamingDk•2y ago
4 gb is the max for 32 oh nvm :d
Blovarsk
BlovarskOP•2y ago
I change the path, but what would be a good amount of ram for 2 players ?
ProGamingDk
ProGamingDk•2y ago
4 gb for modded i would do like 6
QarthO
QarthO•2y ago
its 2gb actually for user processes its diffrent on windows irc
ProGamingDk
ProGamingDk•2y ago
weird limit for me was 4 (windows multimc)
Blovarsk
BlovarskOP•2y ago
No description
QarthO
QarthO•2y ago
No description
QarthO
QarthO•2y ago
aight bro what pack did u download ima see if u just got a shit forge jar
Blovarsk
BlovarskOP•2y ago
By pack what do you mean ?
QarthO
QarthO•2y ago
u said u download a serverpack right? from curseforge
Blovarsk
BlovarskOP•2y ago
Yes, the above and beyond
QarthO
QarthO•2y ago
can u link the version u downloaded also did u update the java path location in the .bat file
Blovarsk
BlovarskOP•2y ago
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^^'
QarthO
QarthO•2y ago
i dont think thats it but go ahead and try updating
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
I just clicked on download server pack
QarthO
QarthO•2y ago
oh wait did u run the installer the forge server installer
Blovarsk
BlovarskOP•2y ago
For the forge server ? Yes and selected the server type
QarthO
QarthO•2y ago
ok yeah download the new pack and run it again
Blovarsk
BlovarskOP•2y ago
Do i get rid of the old server files ?
QarthO
QarthO•2y ago
yeah
Blovarsk
BlovarskOP•2y ago
I suppose they're not useful anymore okay thanks
QarthO
QarthO•2y ago
unless u had stuff delete everything
QarthO
QarthO•2y ago
No description
QarthO
QarthO•2y ago
make sure u change this to the location ur server is at so inside the Above+and+Beyond-1.3-Server folder
Blovarsk
BlovarskOP•2y ago
Just to be sure, I can do it in a completely empty file
QarthO
QarthO•2y ago
yeah, but do it in the server pack folder after u extracted the zip
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
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)
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
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
QarthO
QarthO•2y ago
ok looking at it i tried downloading it myself and its an issue with forge and java for that specific forge and java version
QarthO
QarthO•2y ago
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...
QarthO
QarthO•2y ago
looks like u just need to downgrade to a java 8 veresion before u321
Blovarsk
BlovarskOP•2y ago
It does things Like, a lot of things, maybe it is working
QarthO
QarthO•2y ago
😮
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
No description
Blovarsk
BlovarskOP•2y ago
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
Admincraft Meta
Admincraft Meta•2y ago
post closed!
The post/thread has been closed!
Requested by blovarsk#0

Did you find this page helpful?