Posted June 7, 20205 yr 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 June 7, 20205 yr 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!
June 7, 20205 yr Author 1.15.2 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!
June 7, 20205 yr The problem is, that, as it says in the exception message, an environment variable isn't set properly.
June 7, 20205 yr I think assetDirectory should point to your asset directory, which is most probably not the case.
June 7, 20205 yr 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 June 7, 20205 yr by Budschie
June 7, 20205 yr 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
June 7, 20205 yr The second error is, if I am correct, from running the Forge dev client/server on Java 9+. It can be safely ignored.
June 7, 20205 yr Author okay thanks. 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!
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.