Jump to content

Recommended Posts

Posted (edited)

So, I bought a new pc re-imported everything from my old one, and when I tried to run my mod I just saw this

Spoiler

Exception in thread "main" java.lang.IllegalArgumentException: Environment variable 'assetDirectory' must be set to a valid path.
	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:70)

I also got this :


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.minecraftforge.userdev.LaunchTesting (file:/C:/Users/Victor/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.15.2-31.1.30_mapped_snapshot_20200331-1.15.1/forge-1.15.2-31.1.30_mapped_snapshot_20200331-1.15.1-recomp.jar) to method java.lang.ClassLoader.initializePath(java.lang.String)
WARNING: Please consider reporting this to the maintainers of net.minecraftforge.userdev.LaunchTesting
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

 

Can anybody help me, because this is my first time seeing this error message.

Edited by Anonomys

This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you!

Posted (edited)

I remember that it was a pain to switch the location of the mod files back when I developed in MC version 1.12.2, because Eclipse had some problems finding the right folders etc.

But that shouldn't be a problem anymore.

Edited by Budschie
Posted

It seems that you moved the files, but you haven't refreshed your launch files for your IDE.

Remove the old launch files, then run:

For Eclipse: gradlew genEclipseRuns

For IDEA: gradlew genIntellijRuns

For VS Code: gradlew genVSCodeRuns

  • Like 1

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.