Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to set RAM of server. "Adv. terminal features r not available in this environment."(1.20.1/47.2.0)

Featured Replies

Posted

I can play my server & others can connect to it but it cannot load certain chunks & times out because it's bottlenecked by the default 4GB. I know this to be the case because when copy+pastaing the exact server world into curseforge singleplayer with 8G+, all the heavy chunks load in fine. 
I have JavaSDK 17.0.9 x64-bit & reinstalled twice already as well as trying with Java 8 also installed & without. 
I tried using: java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %*
pause
but all that gives me is: Error: Could not find or load main class java
Caused by: java.lang.ClassNotFoundException: java 
Any ideas or help would be appreciate. 

Make sure you are using Java 17 by setting the path into your script

"C:\Program Files\Java\jdk-17.0.9\bin\javaw.exe" -Xmx8G @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %*
pause

 

Try my Modpack

spacer.png

>>Link to Curseforge<<

  • Author

Hm. I did try adding that in the user_jvm_args.txt but I get this: 
Error: Could not find or load main class C:Program FilesJavajdk-17.0.9binjavaw.exe
Caused by: java.lang.ClassNotFoundException: C:Program FilesJavajdk-17.0.9binjavaw.exe
Press any key to continue . . .

I tried both with "\jdk-17\" (as it appears in the program files) as well as "\jdk-17.0.9\" 
No luck. am I placing it in the wrong file? Could the second part be incorrect? 

  • Author

I didn't. The quotation marks are still around the file path first part. & tried with quotation marks both jdk-17 & -17.0.9. Just double-checked.  

  • Author

That's what's so odd. Because I shift-clicked to get the file path & it literally is the same exact thing: (copy + pasted from folder) "C:\Program Files\Java\jdk-17\bin\javaw.exe"

  • Author

Yep. I just don't know. I get this still when I run the batch. 
Error: Could not find or load main class C:Program FilesZuluzulu-17binjavaw.exe
Caused by: java.lang.ClassNotFoundException: C:Program FilesZuluzulu-17binjavaw.exe
Press any key to continue . . .

I also double-checked & made sure that I was using the 64-bit one for my computer & that the file path was correct. It was. Is it my actual run.bat that could be the issue? Or do I have messed up associations from having downloaded different javas even though I uninstalled them through control panel? idk. I'm not that savvy. 

  • Author

Okay. Thank you. I think it works now. I added the jdk-17 path to the batch instead of the jvm arguments txt file. The windows command prompt is just blank, but when I close the native windows command prompt, the java command prompt opens & loads the server. If that won't cause issues then I'm all good. 

  • Author

Okay. I think I got it. Thank you for the help though. I realized I need both scripts in the batch.  

Edited by Foobert
I was wrong.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.