A
Admincraftā€¢17mo ago
Blovarsk

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

Did you find this page helpful?