I wanted to use a mod in minecraft, but it had an error (the version was incorrectly specified in the file) and therefore did not work. So I decompiled the mod file and changed the version in the main class or whatever you call it, but now because of my limited Java knowledge I don't know how to compile the folder with the files again. I can't install JDK for whatever reason. I only find editors online for a single file.
Guaranteed the specified version was not wrong, but for a different Minecraft version than you use it. You don't decompile any foreign plugins or mods without the prognosis.
In another version of Minecraft, umpteen classes change, only changing the version does nothing for you.
You compose with Eclipse or IntelliJ. If you have no idea, leave it.
The version was certainly wrong. 1.8.1.8 was specified and this version simply does not exist. Instead, you would only have to specify 1.8 to make them available for all 1.8 versions. The fact that you compile with Eclipse is completely new to me. I always thought you needed the Java Development Kit because that's how it has always been explained to me. Why shouldn't I decompile files? It is not forbidden and does not harm anyone. Not particularly helpful, but thanks for your answer anyway.
There you are on the wrong track. The version name of a plugin / mod has nothing to do with the Minecraft version. Each proger assigns its own names. For which Minecraft version the plugin / mod was written, 99.9% of the description shows.
You can decompile everything, just not change it and recompile it and possibly still output it as your own. You can also find the provisions on the page where you got the plugin / mod from.
What you compile with is a matter of taste. If you know, why are you asking?
By version I meant of course the Minecraft version and not the mod. I ask because as I said the JDK doesn't work for me. When installing, even if I select my HDD as the installation directory, I always get the message that there's not enough space on my SSD. Doesn't make sense, but that's the way it is. Compiling online could only compile one file as far as I found it, which you even had to write yourself in an editor. Somehow there has to be a way how the files are compiled back as Jar and that without JDK and after searching for me.