Jump to content

Recommended Posts

Posted

Downloaded forge for 1.18.2 latest client. then went ahead and got the server version too and put it in a folder. ran the .bat you get with it and it tells me 
 


B:\create pack>REM Forge requires a configured set of both JVM and program arguments.

B:\create pack>REM Add custom JVM arguments to the user_jvm_args.txt

B:\create pack>REM Add custom program arguments {such as nogui} to this file in the next line before the  or

B:\create pack>REM  pass them to this script directly

B:\create pack>java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.18.2-40.1.68/win_args.txt
Error: Could not find or load main class @user_jvm_args.txt

B:\create pack>pause
Press any key to continue . . .
 

which I know your supposed to get that, but your supposed to get more. And so im also not getting the eula and config folder ans stuff liek that. I have been messing around with java versions recently for another dumb issue I had maybe its related. I have java sedk 18.0.1.1 64 bit only installed now. Still no good. What am I doing wrong, if anything.


Thank you ❤️

Posted

Then you do not start the server with java 17.

Replace the java keyword in the run.bat file with the full path of the java 17 executable (java.exe).
If the path contains a space you need to put it into quotes.

Posted

if this is your path to java 17 the run.bat file should look like this:

// here should be the "@echo off" line and the "REM" lines
"C:\Program Files\Java\jdk-17.0.4\bin\java.exe" @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19-41.0.61/win_args.txt %*
pause
  • Thanks 1
  • 8 months later...
Posted

Hey, I got the same error, did the same like @Luis_ST did, it worked somehow, but now i've got an other error: 
Error: could not open `libraries/net/minecraftforge/forge/1.19.4-45.0.43/win_args.txt'

I hope anybody is able to help me with this problem

  • 5 months later...
  • 4 months later...
Posted

I got this same error. i fixed it by installing java sdk 17. then deleting my whole server folder. then making a new one and download necsesary stuff from the server.jar file. and it worked like a charm.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.