Started by
HansO
on
Topic category: Troubleshooting, bugs, and solutions
I recently downloaded Mcreator and have so far managed to get it to the point in the setup where it says "Caching Decompiled Code" in the upper left hand corner. I do have a slow internet connection, but I left it for 6 hours and nothing happened. It just keeps saying "Setting up Mcreator," no errors or anything, and my JAVA_HOME path is set properly. I am on Ubuntu 18.04. I need help getting past this point and it would also be helpful if someone told me what "Caching Decompiled Code" does.
What are the contents of the console tab?
compWorkspace --refresh-dependencies Build info: MCreator 1.8.0, 64-bit, 15931 MB, Linux, JVM 1.8.0_181 ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Task completed with return code 1 in 10678 milliseconds
I only just saw this now that you have mentioned it. But isn't /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java the correct directory?
No, the correct one should point to JDK, not JRE. Install JDK and modify your JAVA_HOME to fix this error.
When I type in 'sudo update-alternatives --config java' it gives me:
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
Press <enter> to keep the current choice[*], or type selection number:
Are any of these the correct one?
No, you need Java 8 JDK, but you only have Java 8 JRE and Java 11 JDK.
Where do I download that?
Google should have the answer for this. A quick search showed this page: https://www.digitalocean.com/community/tutorials/how-to-install-java-wi…
Or this page: https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/
The second tutorial seemed to help me just fine, thanks.
hey klemen, mine is on JDK, but it wont stop caching decompiled code, i have the same problem, but its on JDK and not JRE
Are you using 1.8.3?
hey klemen,im using 1.8.3 and its on jdk in 32 bit system
i dont know why its stack on caching decompiled code and i have the same problem
plssss!!! help me
MCreator won't work on 32-bit systems in most cases as it can't reserve enough RAM, unfortunately.
When running an eclipse task, if it shows Running "decompile", use the task manager to try to end the java or javaw process that takes up the highest memory (dedicated working set). This has a 50% chance of success. If MCreator does not pop up after the end, the workspace fails to be established. Or MCreator did not end the process, but popped up an error starting with "org.gradle", then it succeeded. This error will not affect the workspace or the module file, but the most important thing is when exporting the module. Good to run the specific task javadoc.