I recently became interested in Minecraft modding, so I downloaded MCP (Minecraft Coder Pack) and Eclipse. After running decompile.bat, I opened Eclipse using the workspace provided by MCP. At first I was given a list of errors related to missing libraries, but I easily fixed that by fixing their paths. Then I continued following the video tutorial I was using and pressed "Run" and selected "Client" as the project to run. Eclipse gave me the following error:
Must specify a URI scheme:MCP_LOC/jars
I have been Googling this for the past 20 minutes with no success. What is wrong, and how do I fix it?
I can probably still program mods for Minecraft and even recompile them with MCP, but it will be difficult to test them. Does anyone know what's wrong?
NEVER START IN ECLIPSE
Try This vid for 1.7.3
Its a nice little series about minecraft modding.
Related
I am a programming student that recently upgraded the hard drive in my laptop through a secondary service. This service was able to save and transfer over most files, but was unable to migrate over specific program files.
When trying to reinstall Eclipse I have encountered some major issues and problems I am looking to hopefully get help with.
The first issue is that through the Eclipse installer, when trying to install eclipse it would try to look for the previously used user file and spew out 100s of error messages when this failed. A workaround to get eclipse actually installed was to change the bundle pools to off.
The second and most major issue is that eclipse does not seem to recognize or have any in build libraries, as it does not even recognize what a string is. I have the JDK and JRE installed but when trying to compile is tells me that java has been installed incorrectly (which would make sense given my hack job of installing it).
Any help would be greatly appreciated. I have never had so much difficulty trying to simply install something.
Try deleting .m2 folder present inside C:/Users/<User Name>/.m2 and then reinstall Eclipse.
I was just looking at my java project in eclipse, compiled it, and after closing program all projects in my solution show billions of errors.
Example:
The import java.awt cannot be resolved
When i try to compile it show error:
A JNI error has occured, please check your installation and try again.
Any clues how to fix it? I had many problems with java in the past and i couldn't fin any fixes, almost like it was designed to fail. This language vexes me, but sometimes you just have to use it.
Edit
I also get this error while attempting to open it in IntelliJ (just downloaded it):
JDK jre.1.8.0_241 is missing
Edit
Its just Java being Java (aka not working, as usual). You have to create new project and just copy everything to it, it will work.
I am trying to download Eclipse onto my flash drive so that it can support itself if I try to use Eclipse on a computer that does not have a JDK/JRE installed and/or I do not have the permissions to install one.
I am able to download it onto the flash drive and run it fine, but the problem arises when I try to make it self-sufficient by downloading a JDK for Eclipse to use on the drive. I have tried many different solutions (yes, I am aware of the abundance of "why is eclipse telling me it cant find main class" questions), but none of them apply to me. I followed this tutorial in my endeavors, but when I run the batch file it comes up with the standard Failed to find a Main Class in "F:\eclipse\\plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar.
I know the \\ looks a bit out of place, but I know that's not the problem since I've tried editing the eclipse.ini file to fix the path but it gives the same error (just with F:\eclipse\plugins\org.[...].jar instead)
I'd really appreciate any help anyone could give. Thanks!
Eclipse has required Java 8 or newer since the Neon release, in 2016. Update your version of Java.
Android Studio 2.2.3;
Java 8;
Ubuntu 14.10;
laptop: Asus K72F.
I spent no less than twenty hours on a Udacity course, learning the basics of XML as part of an Android course.
I installed Java on my Ubuntu machine, then Android Studio IDE.
Followed instructions on the course's videos and pages.
Tried saving my first project, but never made it to the first step...
Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2
I've found no intelligible instructions on the web.
I've been using Ubuntu, Linux, Mac OS X and Unix for ten years now, and I've solved one or two hundred problems with and without the command line, most often copying and pasting from Stack Overflow pages.
I've explored menus on Android Studio, I've opened lib folders. Some posts suggested changing libraries but failed to mention which ones and how.
Another post suggested changing "overrides" but, without a sealed project, Code > Override Methods stays grey and I can't act on it ... Another vicious circle.
One post suggested downgrading to Java 7. I thought the IDE setup for the Linux community might be slightly old, so I uninstalled Java 8 and got Java 7. Got rid of the IDE folder and reinstalled Android Studio, but this time I put it in /usr/local to play it safer. No, Java 7 wasn't supported so I had to upgrade and go back to Java 8.
I've been stuck for three weeks now. Yesterday I tried installing the latest version of this IDE on Windows but there's a bug and it crashes before opening.
I would appreciate it if you could state instructions taking nothing for granted, I am an absolute beginner with Android and gradle and the jargon is overwhelmingly different from Unix.
This reminds of the time when everybody suggested opening a Terminal window but nobody said how.
Please tell me which menus I have to go to, what lines to change, or which libraries to change and where to fetch them.
Thank you for your time and trouble!
I had the same problem, but when I entered good java path, I had a different problem, searched the solution for 3 days, and finally, this video gave me the answer...
Good luck!!
https://www.youtube.com/watch?v=zhj3MY4SpHY
EDITED:
So, the process looks like this.
1) after you download android studio and extract it to either /usr/local/ or /opt/, run it. When it gradles, you'll see an error "process 'command' /usr/loca/android-studio/jre/bin/java finished with non-zero exit value 2"
2) go to File->Project Structure->SDK Location an in there uncheck "Use embedded JDK". in the input field below that checkbox, paste or choose tha path of your JDK (mine was /usr/lib/jvm/java-8-jdk).
3) Click OK, let gradle to do it's work, and when it's finished, you'll get 2 more errors (which I'm not gonna paste here) with lagre log (if you look at the log, on the beginning you should see something about unclosed quotes in aapt file in your /build-tools/25.0.0/aapt).
4) !!!! I did this step to make sure that I have the same error like in the video, so it is optional !!!!
I did a rebuild or clean. in the menu go to Build->Rebuild and start it. Your gradle should run forever so you can wait for a few minutes and if it's not finished, shut android studio down and proceed to the step 5.
If your gradle finishes, it's probablly not the error I'm tryng to expain.
5) When this is all done, opet the folder where your android apps are stored (for me the path is /home/matej/AndroidStudioProjects/MyApp/app), open your app (App name)->app->build.gradle
6) change the line "buildToolsVersion '25.0.2'" to
"buildToolsVersion '23.0.1'", save it and close
7) run the android studio again and you'll see the message where it links you to the installation of the missing build tools. click on it, install it and clean your project
8) ENJOY IN DEVELOPING :)
In my case, I had firebase database gradle versin lower than the latest one. Changing it to latest solved the issue.
Recently I have been working on coding Minecraft mods. Yesterday i updated to a 64 bit version of Java, and I began to receive an error that said something of this nature: "Java returned error = 13". I looked around, and discovered that my Eclipse was not 64 bit, so I went to Eclipse, and downloaded the latest 64 bit version. I then replaced my normal eclipse folder with the new one, and it launched fine. However, when I open Eclipse, (I open the exact same workspace as I did before all of this happened), I don't see anything in the Package Explorer view. Nothing at all. Typically it says MDK Example or something like that, and within that are all of my packages, etc.
Here is my question: How can I make it to where I see all of my files in the package explorer like they used to? I am using the same Workspace...
Just a warning: I code a lot, and I believe that now I'm quite skilled at it, however I am not good with computers themselves (hence why I find myself in this predicament). If I need to completely start over, I can, and I can copy over my code. It would be a nuisance but if that is all that is left to do I will do so.
Thank you for reading! Please help if you can :)
I remember encountering a similar problem after having switched the location of my workspace.
Try the following: Choose a different location for your workspace and then choose File>Import>General>"Existing Projects into Workspace".