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.

Error: Could not find or load main class net.minecraftforge.userdev.LaunchTesting

Featured Replies

Posted

this keeps coming up wen I try to runClient 1.15.2 build

Quote

Error: Could not find or load main class net.minecraftforge.userdev.LaunchTesting

 ACtC-3eARdNZlXu5RUHwitNmj1G1vjbwvtPOXWh1

 

Edited by derekrneilson

  • Author
11 hours ago, diesieben07 said:
  1. Change your mod ID. Not only is it invalid (must be all lowercase), it also bad. If your mod is called "Terrain Mod 2020" then your mod ID should be "terrainmod2020" or "terrain_mod_2020". Do not abbreviate.

I did this but to no avail 

11 hours ago, diesieben07 said:

please follow Java package naming conventions.

I am now following Java package naming conventions and still didn't work but thanks for the suggestions 

TerainMod2020 – terainmod2020.java [TerainMod2020.main] IntelliJ IDEA 5_6_2020 1_59_35 PM.png

you can find my mod so far here

Edited by derekrneilson

  • Author
4 hours ago, Ugdhar said:

Use Java 8

I am now using java 8 but I am not seeing any direct difference but I updated the gradle scan 

In you mods.toml file, right after your modid:

[[mods]] #mandatory
modId="terainmod2020" mandatory   <----------
version="1.15.2-1.0.0" #mandatory

You missed a "#", it should be

#mandatory

 

  • Author
16 hours ago, poopoodice said:

In you mods.toml file, right after your modid:


[[mods]] #mandatory
modId="terainmod2020" mandatory   <----------
version="1.15.2-1.0.0" #mandatory

You missed a "#", it should be


#mandatory

 

thanks for finding that but it keeps crashing

Edited by derekrneilson

  • Author
2 hours ago, diesieben07 said:

Update Forge.

okay so I updated forge and I am still having the same err. 

 I have 8Gs of ram why dose it not aloe me to alot all 8Gs if I try it says 

org.gradle.jvmargs=-Xmx8G
Quote

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx8G
The specified size exceeds the maximum representable size.

-----------------------
Check the JVM arguments defined for the gradle process in:
 - gradle.properties in project root directory

 

Edited by derekrneilson

How much RAM do you have in your computer?

8G might be too much. 4-6G is enough.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

  • 7 months later...
  • 4 months later...

If anyone is still having problems with this, use Java 8 not just for coding, but also for gradlew genEclipseRuns/genVSCodeRuns/genIntellijRuns.

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.