Foobert Posted December 4, 2023 Posted December 4, 2023 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. Quote
TileEntity Posted December 4, 2023 Posted December 4, 2023 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 Quote Try my Modpack >>Link to Curseforge<<
Foobert Posted December 4, 2023 Author Posted December 4, 2023 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? Quote
TileEntity Posted December 4, 2023 Posted December 4, 2023 Do not remove the quotation marks Quote Try my Modpack >>Link to Curseforge<<
Foobert Posted December 4, 2023 Author Posted December 4, 2023 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. Quote
TileEntity Posted December 4, 2023 Posted December 4, 2023 Also make sure the path is correct - check your system for the Java 17 installation and copy the path to the javaw.exe Quote Try my Modpack >>Link to Curseforge<<
Foobert Posted December 4, 2023 Author Posted December 4, 2023 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" Quote
TileEntity Posted December 4, 2023 Posted December 4, 2023 Try another Java build https://www.azul.com/downloads/#zulu and set the path to C:\Program Files\Zulu\zulu-17\bin\javaw.exe Quote Try my Modpack >>Link to Curseforge<<
Foobert Posted December 4, 2023 Author Posted December 4, 2023 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. Quote
TileEntity Posted December 4, 2023 Posted December 4, 2023 Add the lines of your start bat file Quote Try my Modpack >>Link to Curseforge<<
Foobert Posted December 4, 2023 Author Posted December 4, 2023 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. 1 Quote
Foobert Posted December 5, 2023 Author Posted December 5, 2023 (edited) Okay. I think I got it. Thank you for the help though. I realized I need both scripts in the batch. Edited December 5, 2023 by Foobert I was wrong. Quote
Recommended Posts
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.