Anonomys Posted June 7, 2020 Posted June 7, 2020 (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 : Reveal hidden contents 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, 2020 by Anonomys Quote 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!
sciwhiz12 Posted June 7, 2020 Posted June 7, 2020 What version of Forge and what IDE are you using? Quote
Anonomys Posted June 7, 2020 Author Posted June 7, 2020 1.15.2 Quote 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!
sciwhiz12 Posted June 7, 2020 Posted June 7, 2020 On 6/7/2020 at 1:14 PM, sciwhiz12 said: what IDE are you using? Expand Quote
Budschie Posted June 7, 2020 Posted June 7, 2020 The problem is, that, as it says in the exception message, an environment variable isn't set properly. Quote
Budschie Posted June 7, 2020 Posted June 7, 2020 I think assetDirectory should point to your asset directory, which is most probably not the case. Quote
Budschie Posted June 7, 2020 Posted June 7, 2020 (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 June 7, 2020 by Budschie Quote
sciwhiz12 Posted June 7, 2020 Posted June 7, 2020 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 1 Quote
sciwhiz12 Posted June 7, 2020 Posted June 7, 2020 The second error is, if I am correct, from running the Forge dev client/server on Java 9+. It can be safely ignored. Quote
Anonomys Posted June 7, 2020 Author Posted June 7, 2020 okay thanks. Quote 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!
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.